Author Topic: General help  (Read 4821 times)

0 Members and 1 Guest are viewing this topic.

Offline joao9856

  • LV3 Member (Next: 100)
  • ***
  • Posts: 73
  • Rating: +3/-0
    • View Profile
General help
« on: April 02, 2013, 05:57:24 pm »
I'd like to know if the following is possible possible:
- making a graph function without the actual graphic
- And then if that is possible can i get that graph zeros

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: General help
« Reply #1 on: April 02, 2013, 07:18:29 pm »
joao, do you mean using Basic to display a linear cartesian representation of an equation?
In that case, yes it is possible but it would be slow, and impractical.
Keep trying.

Offline Hooloovoo

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 225
  • Rating: +22/-0
    • View Profile
Re: General help
« Reply #2 on: April 02, 2013, 09:24:52 pm »
Do you mean like storing y1=x^2-1 from a program? Yes, you can use strings. so "x^2-1"->str1:dispgraph would show the graph. If you do not want to show the graph, you can just do solve(y1,x,1). solve( is under [math] and has the syntax solve(equation,variable,guess).
"My world is Black & White. But if I blink fast enough, I see it in Grayscale." -tr1p1ea
Spoiler For some of the calcs I own:



(actually I have quite a few more than this, but I don't feel like making bars for them all.)

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: General help
« Reply #3 on: April 02, 2013, 09:29:05 pm »
Do you mean like storing y1=x^2-1 from a program? Yes, you can use strings. so "x^2-1"->str1:dispgraph would show the graph. If you do not want to show the graph, you can just do solve(y1,x,1). solve( is under [math] and has the syntax solve(equation,variable,guess).

This is a better answer to your question.
I need to anticipate the experience levels of newbs..
Keep trying.

Offline joao9856

  • LV3 Member (Next: 100)
  • ***
  • Posts: 73
  • Rating: +3/-0
    • View Profile
Re: General help
« Reply #4 on: April 03, 2013, 04:30:15 am »
Sorry i forgot to say i'm using a Ti-Nspire, and i don't think that that one calc as dispgraph
« Last Edit: April 03, 2013, 04:30:34 am by joao9856 »

Offline Hooloovoo

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 225
  • Rating: +22/-0
    • View Profile
Re: General help
« Reply #5 on: April 03, 2013, 12:54:35 pm »
Ah, I see. You cannot display data to the screen while the program is running. You cannot directly assign an equation to f1, for example, but you can set f1=myfunc, and in the program set x^2-1-> myfunc. However, you cannot then access f1. If you just want to find the zeros, then the solve( for CAS or the nsolve( for non-CAS is what you are looking for.
"My world is Black & White. But if I blink fast enough, I see it in Grayscale." -tr1p1ea
Spoiler For some of the calcs I own:



(actually I have quite a few more than this, but I don't feel like making bars for them all.)

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: General help
« Reply #6 on: April 03, 2013, 01:14:54 pm »
I suggest using jacobly's emu for programming using your Nspire. Because Nspire basic is pretty much nonsense.
Keep trying.

Offline ElementCoder

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 611
  • Rating: +42/-2
    • View Profile
Re: General help
« Reply #7 on: April 03, 2013, 01:27:28 pm »
If finding zeroes is your only goal then you can just do "nSolve(x^2+3x+4 = 0, x)" for example (without the quotes). If you want to be able to enter arbitrary values as well do the following (assuming you are on a touchpad / CX):
Go to doc>Insert>Program Editor>New, enter a name and select "Function" as the type. Press ok, you will see the following:
Code: [Select]
Func name()=

EndFunc
Now change it to the following (replacing the equation with whatever your function is):
Code: [Select]
Func name(x)=
x^2+3x
EndFunc
You can also add more variables to it, but that will unable you to plot it. To use it you simply call name(3) for example. To solve for zeroes use "nSolve(name(x)10, x)" on non-CAS or "solve(name(x)=0,x)" on CAS.
« Last Edit: April 03, 2013, 01:29:01 pm by ElementCoder »

Some people need a high five in the face... with a chair.
~EC

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: General help
« Reply #8 on: April 03, 2013, 03:15:13 pm »
I suggest using jacobly's emu for programming using your Nspire. Because Nspire basic is pretty much nonsense.
Well he would need to keep in mind that in 84+ mode he can't send/receive programs so that can be a problem. Also there might still be bugs.

But yeah for non-math stuff Nspire BASIC isn't very reliable. You might be fine for school material, but if you ever go further, it might be best to use Lua (there are some on-calc tools)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: General help
« Reply #9 on: April 03, 2013, 11:32:00 pm »
I suggest using jacobly's emu for programming using your Nspire. Because Nspire basic is pretty much nonsense.
TI-Nspire BASIC is actually extremely well-adapted for math purposes (which the poster is asking about), because that's exactly what it was designed for.

The only reason many people don't like it is because it's nearly impossible to make a decent game with it. Because that's like trying to make a graphical game with Mathematica or doing your calculus homework on a game console. That's the same reason you wouldn't make a calculation-heavy math program with Lua.

Sorry that this is off-topic, but I feel too many people just assume that certain features of the TI-Nspire are intrinsically awful without thinking about what they're meant to do.
« Last Edit: April 03, 2013, 11:34:20 pm by Deep Thought »




Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: General help
« Reply #10 on: April 04, 2013, 06:51:38 am »
I've had some major troubles writing even math programs with the Nspire's basic. I was almost always able to make the program in question work on my Casio calc, or even my PIC18F46K20 processor. Maybe I just don't know enough about the Nspires...?

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: General help
« Reply #11 on: April 04, 2013, 10:09:21 am »
I suggest using jacobly's emu for programming using your Nspire. Because Nspire basic is pretty much nonsense.
TI-Nspire BASIC is actually extremely well-adapted for math purposes (which the poster is asking about), because that's exactly what it was designed for.

The only reason many people don't like it is because it's nearly impossible to make a decent game with it. Because that's like trying to make a graphical game with Mathematica or doing your calculus homework on a game console. That's the same reason you wouldn't make a calculation-heavy math program with Lua.

Sorry that this is off-topic, but I feel too many people just assume that certain features of the TI-Nspire are intrinsically awful without thinking about what they're meant to do.

Sorry. :P I have looked at the language, but I don't have my Nspire juuuust yet....
Keep trying.

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: General help
« Reply #12 on: April 09, 2013, 10:07:48 am »
I suggest using jacobly's emu for programming using your Nspire. Because Nspire basic is pretty much nonsense.
TI-Nspire BASIC is actually extremely well-adapted for math purposes (which the poster is asking about), because that's exactly what it was designed for.

The only reason many people don't like it is because it's nearly impossible to make a decent game with it. Because that's like trying to make a graphical game with Mathematica or doing your calculus homework on a game console. That's the same reason you wouldn't make a calculation-heavy math program with Lua.

Sorry that this is off-topic, but I feel too many people just assume that certain features of the TI-Nspire are intrinsically awful without thinking about what they're meant to do.
Exactly my thoughts, Deep :D Nspire basic is extremely useful if you do math. (only problem being PTT mode blocking libs <_<)
I'm not a nerd but I pretend: