| 1 | initial version |
When you write:
sage: math.exp(2)
7.38905609893065
you rely on the exp function provided by Python math numerical library.
When you write:
sage: exp(2) e^2
you rely on the Sage exp function, which by default returns a symbolic expressions. Tou can get its numerical value (with arbitrary precision) as:
sage: exp(2).n()
7.38905609893065
sage: exp(2).n(digits=100)
7.389056098930650227230427460575007813180315570551847324087127822522573796079057763384312485079121795
| 2 | No.2 Revision |
When you write:
sage: math.exp(2)
7.38905609893065
you rely on the exp function provided by Python math numerical library.
When you write:
sage: exp(2)
you rely on the Sage exp function, which by default returns a symbolic expressions. Tou can get its numerical value (with arbitrary precision) as:
sage: exp(2).n()
7.38905609893065
sage: exp(2).n(digits=100)
7.389056098930650227230427460575007813180315570551847324087127822522573796079057763384312485079121795
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.