(11C/15C) Extended power function
|
04-05-2021, 10:53 AM
(This post was last modified: 04-05-2021 10:55 AM by Nihotte(lma).)
Post: #1
|
|||
|
|||
(11C/15C) Extended power function
(11C/15C) Extended power function
Hi, A long time ago, I had to solve some equations like f(t) = 2 + XROOT(3, (1 - 5t)) = 0 where XROOT(3, -8)=-2 But the HP15C (or the HP11C) could not handle -8^(1/3) without returning ERROR 0, out of the complex mode So, I composed a function to compute Y^X with Y and X as decimal or natural numbers It gave the following program for the HP15C (The program also runs on the HP11C by using CF 0, SF 0 or F?0 instead of CF 8, SF 8 and F?8) Code:
With this usage : -8 ENTER 3 1/x GSB E returns -2 Further, A is the function to solve So, 0 ENTER 0 f SOLVE A returns 1.8 after running near a minute Keep you safe ! |
|||
04-23-2021, 03:50 PM
(This post was last modified: 04-23-2021 04:25 PM by Nihotte(lma).)
Post: #2
|
|||
|
|||
RE: (11C/15C) Extended power function
(04-05-2021 10:53 AM)Nihotte(lma) Wrote: (11C/15C) Extended power function I have found out a copy of the decision tree which clarifies the process of the function. Here is a restitution, below: Y^x ----- Code:
By extension, you can unterstand that you should generalize the use of the F?0 flag between HP11C and HP15C and just authorize g SF 8 before running the search, in the case you want to avoid the ERROR 0 and open the resulting to the complex solution (x is even and Y is negative). So, just read CF 0, SF 0 and F?0 in the initial code ! Keep you safe ! Laurent |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)