Le lundi 3 juillet 2017 16:39:54 UTC+2, Fjordforsk A/S a écrit :

> Hi, how does one write 10^(-8) ?
> Is it as the conventional way 10**(-8) or is it 10exp(-8) ?

Typing either 10**(-8) or 10^(-8) will produce a rational.
Note that you don't need the parentheses and could also
type 10**-8 or 10^-8.

If you want a floating point number, you could type 1e-8.

Checking the parents of 10^-8 and 1e-8, you will see that
one lives in Rational Field (also known as QQ) and the other
in Real Field with 53 bits of precision (also known as RR).

sage: 10**(-8)
1/100000000
sage: 10^(-8)
1/100000000
sage: 10**-8
1/100000000
sage: 10^-8
1/100000000
sage: 1e-8
1.00000000000000e-8
sage: (10^-8).parent()
Rational Field
sage: (1e-8).parent()
Real Field with 53 bits of precision

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to