This is an archived, readonly copy of the UnitedTI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's
TIBASIC subforum. Some of these topics may also be directlylinked to active Cemetech topics. If you are a Cemetech member with a linked UnitedTI account, you can link UnitedTI topics here with your current Cemetech topics.
TIBasic =>
TIBASIC
Author 
Message 

Korkymann
Newbie
Joined: 30 Sep 2009 Posts: 1

Posted: 30 Sep 2009 09:01:04 pm Post subject: 


I am making a program in my TI83 plus to calculate (duh) the experience of pokemon at different levels. However, two of the formulas are piecewise functions and I am having difficulty getting my calculator to utilize them. These are the two functions I am trying to add to my program.
[attachment=2832:Erratic.png]
[attachment=2831:Fluctuating.png]
Click to show the full image
Last edited by Guest on 30 Sep 2009 09:01:53 pm; edited 1 time in total 

Back to top 


DrDnar
Member
Joined: 28 Aug 2009 Posts: 116

Posted: 30 Sep 2009 09:31:58 pm Post subject: 


To graph a piecewise function, divide each part by the test. For example, for the second one, do Code: y1=(x^3((24+abs((x+1)/3))/50))/(0<x and n<=15)
y2=(x^3((14+x)/50))/(16<=x and x<=35)
y3=(x^3((32+abs(x/2))/50))/(36<=x and x<=100) To make these into functions, multiply each part by the test add them. Note that using this method undefined parts of the function will be zero. Code: f(x)=(x^3((24+abs((x+1)/3))/50))(0<x and n<=15)+(x^3((14+x)/50))(16<=x and x<=35)+(x^3((32+abs(x/2))/50))(36<=x and x<=100) If you want to force the function to be undefined in undefined parts, add a final part that divides 0 by the test for undefinedness: Code: f(x)=(x^3((24+abs((x+1)/3))/50))(0<x and n<=15)+(x^3((14+x)/50))(16<=x and x<=35)+(x^3((32+abs(x/2))/50))(36<=x and x<=100)+0/((15<x and x<16) or (35<x and x<36) or (x<=0) or (x>100)) Good luck reading this mess. 

Back to top 


Weregoose Authentic INTJ
Super Elite (Last Title)
Joined: 25 Nov 2004 Posts: 3976

Posted: 30 Sep 2009 10:42:51 pm Post subject: 


If you're using these in a program, you could do:
p(x) = (9XX[font="verdana"]²)/E3
e(n) = sum(N[font="verdana"]≥{0,16,36:N[font="verdana"]³/50(14Ans[font="verdana"]²52Ans+62+int((N+(Ans=1))/(Ans1+3(Ans=1
The one I missed was the first one in your post. If you want, I could work on it as well.
Last edited by Guest on 05 Jul 2010 07:59:34 am; edited 1 time in total 

Back to top 



Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with likeminded coders and tech and calculator enthusiasts via the sitewide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.
»
Go to Registration page