Computes the exponential of a squared argument.

View versions (1)

Interface

#include <codecogs/maths/combinatorics/arithmetic/expx2.h>

using namespace Maths::Combinatorics::Arithmetic;

Computes the exponential of a squared argument,

\exp (x^2)
(1)

while suppressing error amplification that would ordinarily arise from the inexactness of the argument x^2.

Parameters

x
the argument
sign
the optional sign of the argument. If sign < 0, the result is inverted. i.e. y= exp(-x^2).
GPL Licence — free for non commercial use. See Licence details.

Interactive Calculator

x
sign
Result