Ask Your Question
0

How to remove scientific notation when numerically approximating

asked 2019-07-25 05:35:07 +0100

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
0

answered 2019-07-28 21:14:27 +0100

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

Stats

Asked: 2019-07-25 05:35:07 +0100

Seen: 279 times

Last updated: Jul 28 '19