- 1
cardano function
does anyone know how to make the cardano formula be the python.
1 Answer
+ 1
You just construct the formula from a series of math operations.
https://en.m.wikipedia.org/wiki/Cubic_equation
Try it yourself, if you are stuck, please share your code and explain what gives you trouble.
Exponentiation in python
# x squared:
x**2
Roots:
# cube root of x
x**(1/3)