Ask Your Question

How to remove scientific notation when numerically approximating

asked 2019-07-24 22:35:07 -0600

idkman gravatar image

Hello, I want to approximate values of the j invariant, but the output is stuck in scientific notation mode. I type in "numerical_approx(elliptic_j(sqrt(-5)))" and in return get:

"1.26453890947514e6 - 1.08723198724187e-9*I"

The scientific notation is extremely annoying, is there any way I could get an output without scientific notation? Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2019-07-28 14:14:27 -0600

tmonteil gravatar image

You can do:

sage: a = numerical_approx(elliptic_j(sqrt(-5)))
sage: a.str(no_sci=2)
'1264538.9094751414 - 0.0000000010872319872418675*I'
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2019-07-24 22:35:07 -0600

Seen: 45 times

Last updated: Jul 28 '19