Python Forum
please help me convert this formula via the math module
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
please help me convert this formula via the math module
#2
** is the power operator, not ^. You can also use the power operator for roots x ** (1/2) is square root and x ** (1/3) is cubed root. For Euler's number (e) you will need to look at the math library. You'll also find functions for ex (exp(x)), xy (pow(x, y). There is no function for roots, but you can use pow() with a fraction for the exponent.

https://docs.python.org/3/library/math.html
tinx_ss likes this post
Reply


Messages In This Thread
RE: please help me convert this formula via the math module - by deanhystad - Apr-10-2024, 12:51 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Math Module import Jack_Sparrow 3 6,476 Apr-30-2018, 01:41 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020