Ellipsoid surface area
|
08-05-2022, 04:40 PM
(This post was last modified: 08-06-2022 09:23 PM by Albert Chan.)
Post: #5
|
|||
|
|||
RE: Ellipsoid surface area
Extended RFD(x,y,z) for complex numbers, replaced comparison test with equality (with fuzzy factor)
Code: RFD(x,y,z) // return RF(x,y,z), RD(x,y,z) Previously, recursed arguments quadrupled in size. Arguments (x,y,z) now scaled to be similar in size. If we uncomment print(...) code, we get (x,y,z), convergence trend. If x==y==z, then (k = √(xy)+√(yz)+√(xz)) == (x+y+z) CAS> ellipsoid_area(2,4,9) → 283.427384268 Code: k k+(x+y+z-k)/5 (x+y+z) k seems to converge 4x faster, than (x+y+z), but from opposite side. Extrapolate this, we have (k + (x+y+z-k)/5) converge at doubled rate. Trivia: HP Prime float equality is really approximately equal (about 12 digits) CAS> 9*(1+1e-12) → 9.00000000001 CAS> Ans>9., Ans==9. → [1, 1] If our convergence test were "rx+k == k", we may lose needed recursions. Test is written as "rx+k-k == 0", to ensure what we meant, bits equality. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Ellipsoid surface area - Albert Chan - 05-28-2021, 12:37 AM
RE: Ellipsoid surface area - Albert Chan - 05-28-2021, 08:05 PM
RE: Ellipsoid surface area - Albert Chan - 05-30-2021, 06:04 PM
RE: Ellipsoid surface area - Albert Chan - 05-31-2021, 01:38 AM
RE: Ellipsoid surface area - Albert Chan - 08-05-2022 04:40 PM
RE: Ellipsoid surface area - Albert Chan - 08-05-2022, 04:51 PM
|
User(s) browsing this thread: 2 Guest(s)