please use turbowarp for this lmao or you will be waiting a while https://turbowarp.org/1197148190?stuck this is a project that can do numerical integrals to arbitrary precision (tho its somewhat limited). it uses the tanh-sinh quadrature rule to evaluate the integral quickly. there are some caveats however: - it is *very* slow even for reasonable accuracy. even running this in turbowarp to calculate 50 digits of some basic integrals takes a few seconds. - the integrand cannot have any discontinuities and it has to be relatively smooth. thats why some functions have been taken out of this project, since this strategy alone wont be able to integrate them. - infinite bounds are not allowed. as of now only numbers in decimal format are allowed in the integration bounds. doing pi or e in them isnt supported right now (unless you type it in yourself). some test integrals ∫[0, 1] ln(x) dx = -1 ∫[1, 2] 1/x dx = ln(2) = 0.693147... ∫[0, 1] exp(x) dx = e - 1 = 1.718281... ∫[0, 1] sqrt(x) dx = 2/3 = 0.666666... ∫[-1, 1] 2*sqrt(1-x^2) dx = pi = 3.14159... ∫[0, 1] pi*sin(pi*x) dx = 2 allowed functions are + - * / ! ^ sqrt ln log exp sin cosh tanh asin acos atan sinh cosh tanh asinh acos atanh erf. this is mainly an experimental project. if its possible to optimize things further, make the integrator faster/able to handle more cases, or if there is a bug, just let me know. further reading: https://en.wikipedia.org/wiki/Tanh-sinh_quadrature