Ask Your Question

Revision history [back]

Calculation with arbitrary precision

I know I can ask Sage to display the digits of Pi with arbitrary precision with n(pi, digits= 202) for example. Is it possible to ask it to perform an operation -- like a numerical integral -- to an arbitrary precision? That is, by specifying the number of significative digits.

I tried:

n(numerical_integral(exp(-1/x)/x, 0, 1 ),digits=200)

but that obviously produce the wrong answer.

Calculation with arbitrary precision

I know I can ask Sage to display the digits of Pi with arbitrary precision with n(pi, digits= 202) for example. Is it possible to ask it to perform an operation -- like a numerical integral -- to an arbitrary precision? That is, by specifying the number of significative digits.

I tried:

n(numerical_integral(exp(-1/x)/x, 0, 1 ),digits=200)

but that obviously produce the wrong answer.

I also know I can do:

integrate(e * exp(-1/x)/x,x, 0, 1 ).n(300)

but that integral seems to be computed symbolically.

Calculation with arbitrary precision

I know I can ask Sage to display the digits of Pi with arbitrary precision with n(pi, digits= 202) for example. Is it possible to ask it to perform an operation -- like a numerical integral -- to an arbitrary precision? That is, by specifying the number of significative digits.

I tried:

n(numerical_integral(exp(-1/x)/x, 0, 1 ),digits=200)

but that obviously produce the wrong answer.

I also know I can do:

integrate(e * exp(-1/x)/x,x, 0, 1 ).n(300)

but that integral seems to be computed symbolically.

Calculation with arbitrary precision

I know I can ask Sage to display the digits of Pi with arbitrary precision with n(pi, digits= 202) for example. Is it possible to ask it to perform an operation -- like a numerical integral -- to an arbitrary precision? That is, by specifying the number of significative digits.

I tried:

n(numerical_integral(exp(-1/x)/x, 0, 1 ),digits=200)

but that obviously produce the wrong answer.

I also know I can do:

integrate(e * exp(-1/x)/x,x, 0, 1 ).n(300)

but that integral seems to be computed symbolically.