0

How do i do an exponential function in python

Example: 2 raised to the 4

15th Nov 2019, 6:20 PM
pixel strength
pixel strength - avatar
4 odpowiedzi
+ 6
I think it is 2**4.
15th Nov 2019, 6:27 PM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 5
This is a really simple task: print(2 ** 4) print(pow(2,4)) Both versions are giving the same result = 16
15th Nov 2019, 6:29 PM
Lothar
Lothar - avatar
+ 3
Thank you. I found .exp(4) online but i couldnt find a way to make it work to this is a big help. Thank you 🐹 Alex Tusinean 🌽 Lothar
15th Nov 2019, 6:31 PM
pixel strength
pixel strength - avatar
0
exp(4) is something different, it is e^4.
17th Nov 2019, 1:15 PM
Rora