Author Topic: Graphing in Ti-Nspire Basic?  (Read 4803 times)

0 Members and 1 Guest are viewing this topic.

Offline pokemonrules9

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 16
  • Rating: +2/-0
    • View Profile
Graphing in Ti-Nspire Basic?
« on: February 22, 2012, 09:26:50 pm »
My teacher approached me recently asking about a program for the nspire.  she showed me one program on the Ti-84 thats kind of hard to explain, but it basically had to do with graphing.  She asked me if I could do a similar program for the nspire, as it has to do with what we are currently learning.  Our class only has nspires, and she wants to make it interactive with the class.  I told her at first that it probably wouldn't be possible in the nspires basic language, but I told her I would look into it.  Does anyone have any types of ideas that I could go about doing such a thing?  I was considering trying in lua, but I wanted to see if there was an easier alternative.
« Last Edit: February 22, 2012, 10:02:41 pm by pokemonrules9 »

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: Graphing in Ti-nSpire Basic?
« Reply #1 on: February 22, 2012, 09:34:54 pm »
What exactly did it have to do with graphing?
Inequalities?
Conics?

Try to explain what graphing program it is and what it does, even if it's kinda hard to explain. Just give us something more specific than graphing.  ;)

If you're trying a Lua version of whatever it is, I could help.  :)

Offline pokemonrules9

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 16
  • Rating: +2/-0
    • View Profile
Re: Graphing in Ti-nSpire Basic?
« Reply #2 on: February 22, 2012, 09:46:47 pm »
Well, right now we are learning about population growth, and using matrices to find populations year after year. From what she briefly explained and showed me, i believe it would have to do with graphing a few points as a shape, and showing what happens to that shape after time? I think? I'm not really quite sure, so I'll send her an e-mail.  And i would definitely appreciate your help in lua, since I have only made a couple simple programs :P

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Graphing in Ti-Nspire Basic?
« Reply #3 on: February 22, 2012, 10:57:26 pm »
I know of a few ways to accomplish this.

Graphing stats: Have the program store the stats into two lists, and have the statistics page set up.

Graphing funcs: Have the program use define to define a y function, and have a graph page set up.

You can do regressions and then fetch the equation from the multi-string output to do one of the above, since that sounds sort of like what you're doing.

Oh, and this is in basic.
« Last Edit: February 22, 2012, 10:58:28 pm by willrandship »

Offline pokemonrules9

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 16
  • Rating: +2/-0
    • View Profile
Re: Graphing in Ti-Nspire Basic?
« Reply #4 on: March 17, 2012, 11:02:14 am »
I got a pretty late response!  So this is what I have to do...

Spoiler For Spoiler:
"Identify a scaling factor, a rotation angle, and a translation amount in the x and y direction.
It makes a matrix involving those factors.
 
You have a matrix of ordered pairs (that form a kite for example)
The program applies to transformation matrix to that kite, and graphs it.
 
Pressing enter you get more kites, and you can see them scale down in size, rotate, and translate.  Eventually they converge to a set point."

It doesn't need to be exactly like this, but this is the general idea... Sound possible without using lua?

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: Graphing in Ti-Nspire Basic?
« Reply #5 on: March 17, 2012, 01:56:40 pm »
Graphing funcs: Have the program use define to define a y function, and have a graph page set up.
I also have had this question. How could I use "define" to set up a y function?

Offline jwalker

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 660
  • Rating: +13/-0
  • Almost everything I have released includes a 'WZ'
    • View Profile
Re: Graphing in Ti-Nspire Basic?
« Reply #6 on: March 17, 2012, 05:34:32 pm »
ive done quite a bit of ti-nspire basic, ill see what i can do
<a href="http://www.nerdtests.com/ft_cg.php?im">
<img src="http://www.nerdtests.com/images/ft/cg.php?val=9612" alt="My computer geek score is greater than 41% of all people in the world! How do you compare? Click here to find out!"> </a>

Support Casio-Scene against the attacks of matt @ matpac.co.uk ! For more information: Casio-Scene shuts down & Matt actions threads

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Graphing in Ti-Nspire Basic?
« Reply #7 on: March 18, 2012, 01:09:39 am »
look for the define block in the second library page, the one separated into sections. That can be inserted in, or(I think this way is CAS only) I think you can just store an expression of undefined x variables into a y var that is set to show.

Also, matrix-based kite drawing can be approximated using lists and the graph viewer, since you can connect them with lines and those lines can go up, down, forward or backward. The line is traced through the list values, not in order of size.

ie:
{0,1,2,3} -> l1
{3,2,2,1} -> l2

set up would have a point at 0,3, one at 1,2, another at 2,2, and one at 3,1, with a line connecting them in that order. You can easily alter lists in basic, and this change will be reflected on the tables.

Unfortunately you can't use matrixes directly since the data table application doesn't let you use them. (How would you represent different number values, for example?)
« Last Edit: March 18, 2012, 01:13:00 am by willrandship »

Offline Jonius7

  • python! Lua!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1918
  • Rating: +82/-18
  • Still bringing new dimensions to the TI-nspire...
    • View Profile
    • TI Stadium
Re: Graphing in Ti-Nspire Basic?
« Reply #8 on: March 26, 2012, 09:41:30 am »
Unfortunately you can't use matrixes directly since the data table application doesn't let you use them. (How would you represent different number values, for example?)

You can't?
I thought you could refer to the variable that the matrix is stored in (with also row number and column number) and then use that.
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist ;)
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler For Extra To-Be-Sorted Clutter:

Spoiler For Relegated Projects:
TI-nspire BASIC
Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God (stalled while I go and learn some Axe)

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Graphing in Ti-Nspire Basic?
« Reply #9 on: March 28, 2012, 09:03:57 pm »
I meant use it for plotting in the list/data app, not altering them or using them in general.

also, for altering them, if you store the appropriate size of list you only need row number.