ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 29 Jul 2021 02:21:07 +0200Calculation with arbitrary precisionhttps://ask.sagemath.org/question/58144/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.ApprenticeThu, 29 Jul 2021 02:21:07 +0200https://ask.sagemath.org/question/58144/