hello

I'm trying to take the exponent of negative x squared...

e^-x^2 .... I was wondering if this was possible in C?

I have been playing with something like this:

x = -1 * x;

exp ( pow ( x , 2 ) ) ;

but i just get: 2.71828

for when i input a value of 1 for x.

it should be: .367879

thank you.

and thanks Rashakil Fol for helping me the %d, %f, I overlooked that.