Can you calculate Pi using a Solver (on the prime)?
12-18-2019, 01:24 PM
Post: #6
 Albert Chan Senior Member Posts: 851 Joined: Jul 2018
RE: Can you calculate Pi using a Solver (on the prime)?
This shows (on XCas) that FNROOT can not be nested

XCas>FNF(v):={local FVAR; purge(FVAR); print(v); FNROOT(Gamma(FVAR)=v,FVAR=0..1)[0]}

XCas>m := makelist(FNF, 1.75, 1.8, 0.01)
v:1.75
v:1.76
v:1.77
v:1.78
v:1.79
v:1.8
→ [0.506546500849,0.503607372216,0.500706197505,0.497842178366,0.495014540318,0.492​222531811]

XCas>map(m, Gamma) ﻿ ﻿ ﻿ ﻿ ﻿ ﻿ ﻿ ﻿ ﻿ ﻿ ﻿ ﻿ ﻿ ﻿ ﻿ ﻿ ﻿ ﻿ ﻿ ﻿ ﻿ ﻿ ﻿ ﻿ ﻿ ﻿﻿// confirm FNF = Gamma-1, at least for domain [1.75,1.8]
→ [1.75,1.76,1.77,1.78,1.79,1.8]

XCas>FNROOT(FNF(sqrt(x))=0.5, x=3) ﻿ ﻿ ﻿// unable to get value of sqrt(x) into FNF
v:sqrt(x)
"Error: Invalid dimension"
 « Next Oldest | Next Newest »

 Messages In This Thread Can you calculate Pi using a Solver (on the prime)? - Stevetuc - 12-17-2019, 08:08 AM RE: Can you calculate Pi using a Solver (on the prime)? - Valentin Albillo - 12-17-2019, 03:54 PM RE: Can you calculate Pi using a Solver (on the prime)? - Stevetuc - 12-17-2019, 04:16 PM RE: Can you calculate Pi using a Solver (on the prime)? - Valentin Albillo - 12-18-2019, 03:02 AM RE: Can you calculate Pi using a Solver (on the prime)? - Stevetuc - 12-18-2019, 05:51 AM RE: Can you calculate Pi using a Solver (on the prime)? - Albert Chan - 12-18-2019 01:24 PM

User(s) browsing this thread: 1 Guest(s)