Post Reply 
HP 30b Programming
03-28-2024, 02:17 AM
Post: #9
RE: HP 30b Programming
The program that I gave was for a function that cannot produce a result for the -2 and +2 roots as they occur where a change of sign indicating a root in between is an impossibility due to square root of a negative number results for x<-2, x>+2.

Here is a program to find roots of x^3 -5*x^2 -2x/7

RCL 1
3
Y^X
RCL 1
X^2
5
*
-
RCL 1
2
*
7
/
-
RCL 2
-
Stop

Since I am looking for f(x)=0, I store 0 in register 2.

Find the 3 roots:

Storing guess “1” of -.1 to register 1, solve variable 1 instantly produces the root near -.057

Storing guess “2” of 1 to register 1, solve variable 1 instantly produces the root of 0

Storing guess “3” of 4 to register 1, solve variable 1 instantly produces the root near 5.057
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP 30b Programming - lrdheat - 03-12-2024, 04:35 AM
RE: HP 30b Programming - BruceH - 03-12-2024, 08:58 PM
RE: HP 30b Programming - rprosperi - 03-13-2024, 12:13 PM
RE: HP 30b Programming - Pierre - 03-12-2024, 11:06 PM
RE: HP 30b Programming - Eddie W. Shore - 03-13-2024, 12:47 PM
RE: HP 30b Programming - lrdheat - 03-24-2024, 02:53 AM
RE: HP 30b Programming - lrdheat - 03-24-2024, 03:11 AM
RE: HP 30b Programming - lrdheat - 03-28-2024 02:17 AM
RE: HP 30b Programming - Katie Wasserman - 03-28-2024, 02:13 PM
RE: HP 30b Programming - ctrclckws - 03-28-2024, 07:45 PM



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