Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
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
asked Sep 23, 2019 in Python by Sammy (47.6k points)
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers


94.1k users

Browse Categories