Post Reply 
WP34S - f SLV used with user selectable variables
04-27-2015, 03:47 PM (This post was last modified: 04-29-2015 12:14 AM by CR Haeger.)
Post: #1
WP34S - f SLV used with user selectable variables
Hello,

I am looking for a way to use the WP34S and f SLV to solve for a user select-able variable in an equation. As a test example, I wrote a short routine (A) that allows for solving for R1, R2 or Req in a parallel resistor equation. I am not sure if this is a practical or the most user friendly way to do this. Feel free to comment, correct or upgrade this!

Code:

Solves for R1, R2 or Req where Req = 1/(1/R1 +1/R2)
R00:  Input register (variable) to solve for (1,2 or 3)
R01:  R1 value
R02:  R2 value
R03:  Req value

LBL A          //  Label A
STO → 00          //  Stores current x value into Rxx using value stored in R00
RCL 01          //  R1
RCL 02          //  R2
||          //  1/(1/R1 +1/R2), keystrokes: g ÷
RCL 03          //  Req
-          //  1/(1/R1 +1/R2) - Req
RTN          //


1000 STO 01 700 STO 03 // store known values (R1, Req in this case)
2 STO 00 // variable to solve for (R2)
1000 5000 f SLV A //initial guesses and then solve A
⇒ 2333.33 // solution 700 =1/(1/1000 +1/2333)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
WP34S - f SLV used with user selectable variables - CR Haeger - 04-27-2015 03:47 PM



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