Revision history [back]

Weird behaviour/bug with pi and rational exponents

When I type this:

print numerical_approx((4/pi())^(2/1))
print numerical_approx((4/3.14159265358979)^(2/1))


I get

sage: 3.90303389783585e2585827972
1.62113893827741


(note the letter "e" in the 1st line)

This happens on my notebook, on the COCALC server there is a crash.

Has anyone else seen this ? What is the problem there ?

 2 retagged FrédéricC 3790 ●3 ●36 ●75

Weird behaviour/bug with pi and rational exponents

When I type this:

print numerical_approx((4/pi())^(2/1))
print numerical_approx((4/3.14159265358979)^(2/1))


I get

sage: 3.90303389783585e2585827972
1.62113893827741


(note the letter "e" in the 1st line)

This happens on my notebook, on the COCALC server there is a crash.

Has anyone else seen this ? What is the problem there ?