You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
bbb08431f3
It was raising an exception but it should return infinity.
12 lines
239 B
Python
12 lines
239 B
Python
# test builtin pow function with float args
|
|
|
|
print(pow(0.0, 0.0))
|
|
print(pow(0, 1.0))
|
|
print(pow(1.0, 1))
|
|
print(pow(2.0, 3.0))
|
|
print(pow(2.0, -4.0))
|
|
|
|
print(pow(0.0, float('inf')))
|
|
print(pow(0.0, float('-inf')))
|
|
print(pow(0.0, float('nan')))
|