Ask Your Question

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 ?

click to hide/show revision 2
retagged

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 ?