Back
How can i write x.append(1-e^(-value1^2/2*value2^2)) in python 2.7?
I don't know how to use a power operator and e.
You can use the below-mentioned code for using Euler’s number and power operation in Python 2.7:-
import math x.append(1 - math.exp( -0.5 * (value1*value2)**2))
import math
x.append(1 - math.exp( -0.5 * (value1*value2)**2))
31k questions
32.8k answers
501 comments
693 users