Post Reply 
root of a quadratic equation
08-22-2015, 08:07 PM
Post: #9
RE: root of a quadratic equation
(08-22-2015 09:41 AM)tigger Wrote:  These two equations help to solve a root of a quadratic equation:

<< 3 PICK / SWAP ROT -2 * / DUP SQ ROT - SQRT DUP2 * ROT ROT - >>

* and - at the end should be - and +, respectively:

<< 3 PICK / SWAP ROT -2 * / DUP SQ ROT - SQRT DUP2 - ROT ROT + >>

On the HP 50g, we can use

<< PICK3 / SWAP ROT -2 * / DUP SQ ROT - SQRT DUP2 - UNROT + >>

and save a few bytes. This is 50-byte long, 5 bytes shorter than my attempt at this above.

Gerson.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
root of a quadratic equation - tigger - 08-22-2015, 09:41 AM
RE: root of a quadratic equation - Hlib - 08-22-2015, 11:06 PM
RE: root of a quadratic equation - tigger - 08-22-2015, 05:17 PM
RE: root of a quadratic equation - Hlib - 08-22-2015, 06:55 PM
RE: root of a quadratic equation - Gerson W. Barbosa - 08-22-2015 08:07 PM



User(s) browsing this thread: 1 Guest(s)