The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
Python math powers?
11-15-2021, 02:14 PM
Post: #1
Python math powers?
CASIO fx-CG50 MicroPython v1.9.4 (but may not be specific to this calculator and Python version)

125**(1/3)
4.99999999999999

pow(125,1/3)
4.99999999999999

(-125)**(1/3)
(2.500000000000001+4.330127018922194j)

abs((-125)**(1/3))
5.00000000000001

pow(-125,1/3)
ValueError: math domain error

(-27)**(1/3)
(1.5+2.598076211353316j)

abs((-27)**(1/3))
3.0

- Rob

"I count on old friends to remain rational"
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Python math powers? - robve - 11-15-2021 02:14 PM
RE: Python math powers? - Guenter Schink - 11-15-2021, 09:57 PM
RE: Python math powers? - toml_12953 - 11-15-2021, 10:31 PM



User(s) browsing this thread: 1 Guest(s)