HP-35’s x^y Why?
|
11-03-2021, 06:22 PM
Post: #37
|
|||
|
|||
RE: HP-35’s x^y Why?
(11-03-2021 03:21 PM)Albert Chan Wrote: Does HP71B has XROOT (or equivalent ?) First try ... y^(1/n) = y^float(1/n) * y^ε , where ε = 1/n - float(1/n) = (1 - n*float(1/n)) / n Correction y^ε = exp(ε*ln(y)) ≈ 1 + ε*ln(y) Code: function surd(y,n) -- nthroot of y lua> surd(-8, 3) -2 lua> surd(-8, 3.1) -NaN lua> surd(12345,3) 23.111618749807267 lua> 12345 ^ (1/3) 23.111618749807263 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)