04-27-2015, 03:47 PM
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!
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)
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)