Using Slider to change functions

3 views
Skip to first unread message

Ray Fox

unread,
Nov 18, 2009, 2:56:06 PM11/18/09
to tinspire
I have a basic document that uses f1(x)=a*sin(b*x-c)+d with sliders to control a, b, c, d. (File attached)
 
How do I add a slider to change to different functions, i.e. cosine, quadratic, & absolute value.
 
What other functions fit the mold?
 
Thanks in advance.
 
Ray
 
BTW: Are there keyboard shortcuts for the home, menu, pi that work in the TE-Nspire software??
 
TrigTransfrom.tns

Andy Kemp

unread,
Nov 18, 2009, 3:24:15 PM11/18/09
to tins...@googlegroups.com
You'll need to create another slider call it something like 'function'

Then create a text box and enter something like:
when(1<=function<=1,1)

Calculate this, then store it as function1

Now change your first function to be function1*a*sin(b*x-c)+d...

Now create another text field:
when(2<=function<=2,1)

calculate and store  then change function 2 etc...

However I would suggest it would be simpler to create multiple pages, with one page per function...

Sean Bird

unread,
Nov 18, 2009, 4:48:19 PM11/18/09
to tins...@googlegroups.com
I agree with the just copying what you have done, but be sure to paste it into a new PROBLEM. Then just change the function and everything is set up.
Reply all
Reply to author
Forward
0 new messages