HP42s first major program (Double Integral) Best way to approach?
|
05-31-2020, 01:59 AM
Post: #33
|
|||
|
|||
RE: HP42s first major program (Double Integral) Best way to approach?
Borrowing my AGM2 method of calculating ellipse perimeter, but factor out AGM.
Code: local sqrt, pi = math.sqrt, math.pi We can get *both* K(m), E(m) from 1 call of agm(), thus bore-hole removed volume. see equation 12: https://mathworld.wolfram.com/SteinmetzSolid.html Code: function KE(m) -- return K(m), E(m), m < 1 lua> a, b, c = 24*2, 29*2, 12*2 -- all diameters lua> hv(c,b) - hv(c,a) -- assumed penetrating pipe both side 4651.24643661709 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)