| Author |
Message |
Yottavolt
Joined: 11 Jul 2009 Posts: 1
|
Posted: July 11, 2009 8:48 PM Post subject: Unlimited Input |
|
|
I'm completely new to programming ti's. I was hoping someone could tell me how a function could have unlimited (limited by memory) arguments until a closing parentheses finishes the function. I'm taking electronics technology and I'm always calculating resistors in parallel. The equation is
1/(1/R1 + 1/R2 + 1/R3 + 1/Rn). What I was hoping for was to type pll(R1,R2,R3,Rn) where Rn could be anything from the 2nd to the 1000th resistor value. Any help would obviously be appreciated. |
|
| Back to top |
|
 |
jmurphy1337
Joined: 03 Jan 2010 Posts: 4
|
Posted: January 3, 2010 8:53 PM Post subject: |
|
|
I'm not sure how to do exactly what you are describing.
However, I have a viable alternative suggestion. Make the argument a list.
ie.
eqres(res)
Func
sum(res^-1)^-1
EndFunc
And to use it you would type
eqres({1,1,2,...Rn}) |
|
| Back to top |
|
 |
|