Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (47.6k points)

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.

1 Answer

0 votes
by (106k points)

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))

Related questions

0 votes
1 answer
0 votes
1 answer
asked Sep 23, 2019 in Python by Sammy (47.6k points)
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...