First time here? Check out the FAQ!

Ask Your Question
0

How to remove scientific notation when numerically approximating

asked 5 years ago

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

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 5 years ago

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'
Preview: (hide)
link

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: 5 years ago

Seen: 309 times

Last updated: Jul 28 '19