HP42s first major program (Double Integral) Best way to approach?
|
06-02-2020, 08:23 AM
Post: #40
|
|||
|
|||
RE: HP42s first major program (Double Integral) Best way to approach?
Continuous improvement.. when I rewrite agm as
function agm2(a, b) local t = -1 local s1 = a*a do local s = s1 local k = (b-a)/2 t = t + t b = sqrt(a*b) a = a + k s1 = s + t*k*k until s == s1 return a, s end and I switch the order of the arguments in hv, I get Code: 00 { 192-Byte Prgm } Of course, if you don't need the alpa labels AGM2, EK and HV, you can replace them with numeric ones ( leave out LBL "HV" entirely), saving another 22 bytes, I think. Cheers, Werner 41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 15 Guest(s)