TI-89 HomeGames ArchiveTitanium GamesGames How ToProgramsFAQForumTI-89 WikiLinks

Unlimited Input

 
Post new topic   Reply to topic    Your TI-89 Resource Forum Index -> BASIC Programming
Author Message
Yottavolt



Joined: 11 Jul 2009
Posts: 1

PostPosted: July 11, 2009 8:48 PM    Post subject: Unlimited Input Reply with quote

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
View user's profile Send private message
jmurphy1337



Joined: 03 Jan 2010
Posts: 4

PostPosted: January 3, 2010 8:53 PM    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:    View previous topic : View next topic  
Post new topic   Reply to topic    Your TI-89 Resource Forum Index -> BASIC Programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Contact Us | Privacy Policy | Disclaimer | Trademarks

Copyright ©2006 All rights reserved.


Free Greeting Cards | Girly Myspace Layouts | Myspace Unblocker |