Last Updated 04/18/2017

Sage Essentials
Section 1: Numerical Calculations

Numerical Approximations

Example 3

If we want fewer or more digits of accuracy than the default number which is 15 digits we can add an extra argument to the n() command as shown below.

Try this! Output the first 4 digits of π and the first 35 digits of e.


← Previous Example Next Example →