Can you calculate Pi using a Solver?
|
12-14-2019, 12:56 AM
Post: #28
|
|||
|
|||
RE: Can you calculate Pi using a Solver?
.
Self-quoting a little: (12-13-2019 11:30 PM)Valentin Albillo Wrote: Unless the Solver can work with complex numbers I don't think there's such an equation using just real numbers and no trigs. Equations whose roots are arbitrarily accurate approximations to Pi (say 34 digits) can be produced but ones returning exactly Pi (in theory, limited to 10-12 digits in practice) is a no-go IMHO. Well, to make myself clearer, the previous quotation refers to polynomials or rational functions, which indeed can't produce Pi as an exact root because Pi is transcendental. But if we involve other functions but polynomials, rational functions and trigs, there are many ways to concoct an equation whose root is exactly Pi. For instance, if your Solver admits nesting and can use the Gamma function, then this will do: Code for the HP-71B, where FNROOT (Find Root) is the "official" HP-71B's "Solver": 1 DEF FNF(X) = FNROOT(1, 1, GAMMA(FVAR) - X) 2 DISP FNROOT(3, 4, FNF(SQR(FVAR)) - 1/2) >RUN 3.14159265359 This produces as a root the theoretically exact (not an approximation) value of Pi. V. All My Articles & other Materials here: Valentin Albillo's HP Collection |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 11 Guest(s)