Undetermined variable input for the ti89

  • Context: Calculators 
  • Thread starter Thread starter Yottavolt
  • Start date Start date
  • Tags Tags
    Input Variable
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 3K views
Yottavolt
Messages
2
Reaction score
0
I'm trying to create a function that will calculate any amount of resistors in parallel but I do not know how to allow an undetermined amount of arguments for input (rather than a fixed amount). Basically it would look like this pll(R1,R2,R3,Rn) where Rn would be anything from R2 to R1000 or whatever. The equation is 1/(1/R1 + 1/R2 + 1/R3 + 1/Rn).
 
Physics news on Phys.org
Either use a list as an argument, or ask the user to input resistors in a loop
 
How do I use a list as an argument?