summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/builtin_float_pow.py
blob: 98998bdc7c3fe2d4983bfe4f8c2aa7d16b8e5696 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# 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")))