Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Roondak

Pages: 1 2 [3] 4 5
31
TI-BASIC / Re: [Nspire] Buggy Inflection Point Code
« on: October 29, 2013, 10:46:32 pm »

32
TI-BASIC / Re: [Nspire] Buggy Inflection Point Code
« on: October 29, 2013, 05:45:51 pm »
Managed to fix it, found about zeros(), much better than solve here.
New code if anyone wants to see it:
Code: [Select]
Define inflect(ex)=
Func
:Local ansx,di2,di3,ex,xvals,out,i
:derivative(ex,x,2)→di2
:derivative(di2,x)→di3
:xvals:=zeros(di2,x)
:out:={}
:For i,1,dim(xvals)
:  If di3≠0|x=xvals[i] Then
:    out[dim(out)+1]:=xvals[i]
:    out[dim(out)+1]:=di2|x=xvals[i]
:  ElseIf (di2|x=xvals[i]+1.E−5)*(di2|x=xvals[i]-1.E−5)<0 Then
:    out[dim(out)+1]:=xvals[i]
:    out[dim(out)+1]:=di2|x=xvals[i]
:  EndIf
:EndFor
:If out={} Then
:  Return "No inflection points found."
:EndIf
:out:=list▶mat(out,2)
:Return out
:EndFunc

33
Gaming Discussion / Re: best sonic the hedgehog game
« on: October 26, 2013, 02:03:07 pm »
I've spent so much time on Sonic DX and Shadow the Hedgehog... such good games (especially compared to secret rings/black knight).

34
TI-BASIC / [Nspire] Buggy Inflection Point Code
« on: October 24, 2013, 10:35:35 pm »
I've been programming an inflection point solver in Nspire BASIC, and my code seems to have an odd bug in it. If x^4+cx+d, where c and d are constants (ex. x^4+3x), is entered, the program spits out an error of nsolve not having an equation in the first argument, and I can't figure out why.

Code: [Select]
Define inflect(ex)=
Func
:Local ansx,di2,di3,ex,i,out
:derivative(ex,x,2)→di2
:derivative(di2,x)→di3
:ansx:=10^(99)
:out:={}
:For i,1,10
:  nSolve(di2=0,x=ansx,−10^(99),ansx-10^(−7))→ansx
:  If ansx="No solution found" Then
:    Exit
:  EndIf
:  If 0≠di3|x=ansx Then
:    out[2*i-1]:=ansx
:    out[2*i]:=ex|x=ansx
:  EndIf
:EndFor
:Return out
:EndFunc
ex is the expression entered, di2 and di3 are the second and third derivatives respectively, out is the output, ansx is the last x value found, and i is the for loop variable.

Also, any suggestions on how to make my code more efficient and such would be nice.

EDIT: Attached program below.

35
TI-BASIC / Re: [Nspire] Func EndFunc
« on: October 24, 2013, 10:28:12 pm »
No, in fact its purpose is that you can can define a function right from the Calculator app, which can come in handy sometimes.
However, from the program editor, you choose either one (program or function) and you'll have to stick with it :P
Thanks! I didn't realize you could define a multi-line function from the calculator app.

36
Introduce Yourself! / Re: aloha
« on: October 22, 2013, 02:28:55 am »
Welcome to Omni! I joined for basically the same reason.

37
TI-BASIC / [Nspire] Func EndFunc
« on: October 22, 2013, 02:23:16 am »
On the Nspire, there's an option to add a Func...EndFunc into your program. My question is why? Can I use it to define a multiline function in my program or function?

Was wondering this because functional programming.

38
News / Re: New TI-Nspire OS 3.6 with extra lockdown
« on: October 17, 2013, 07:19:48 pm »
It seems that 3.2 docs can be opened with 3.1, 3.1 just deletes the offending stuff as far as I can tell. The warning is what tells you that the deletion will happen.
The 3.6 doc I created could not be opened with 3.1, but opening it and saving in the Student Software made it work.

39
News / Re: New TI-Nspire OS 3.6 with extra lockdown
« on: October 17, 2013, 07:07:16 am »
Just some Nspire BASIC programming. You know, the calculator and such. It also had a note in it.

It originally wouldn't let me re-open it in 3.1, so I sent it to the computer software, opened it with that, and sent it back and it was 3.1 style again (even though my student software is 3.2).

40
News / Re: New TI-Nspire OS 3.6 with extra lockdown
« on: October 16, 2013, 10:02:11 pm »
Tried it out on my CAS CX with nlaunch, it turned my 5KB document into a 7KB document. When I "downgraded" the document, it went back to 5KB.

41
Humour and Jokes / Re: 9001 signs you're addicted to calcs and Omni
« on: October 14, 2013, 08:04:57 am »
6563: Your 3YO can program his or her calcs and is proficient in a variety of languages.

Edit: Stupid smartphone buttons!

42
News / Re: HP Prime can now be pre-ordered worldwide!
« on: October 14, 2013, 01:08:17 am »
I'm in Ontario. It's basically bring a graphing calc if you have/can afford one. Z80 Ti calcs start at about 120CAD, Nspire cx cas at 160CAD, and 68k at 200CAD. Teachers here will let students use a 3.1 ndless Nspire for tests if they have one.

But again, small sample size, so don't jump to conclusions.

43
News / Re: HP Prime can now be pre-ordered worldwide!
« on: October 14, 2013, 12:24:04 am »
As a Canadian, I haven't heard of any local highschool that forces updates on calcs, though I'm drawing on an extremely low sample size.

44
News / Re: New TI-Nspire OS 3.6 with extra lockdown
« on: October 14, 2013, 12:08:10 am »
Released Ndless 3.6 Switching Pack for the TI-Nspire CX CAS with Boot2 3.1:
http://tiplanet.org/forum/viewtopic.php?f=43&t=13214

Put both 3.1 and 3.6 OSes in your TI-Nspire CX CAS and switch between them when needed.
Switch to 3.6 when you want to benefit from the latest features...
Switch to 3.1 when you want to use Ndless programs.

New easy installation tutorial in only 10 easy steps.

Enjoy.
Switch back and forth with renaming a file and reseting? Sounds awesome. Going to install that and use the new ui and 3.2 lua games.

45
Humour and Jokes / Re: 9001 signs you're addicted to calcs and Omni
« on: October 13, 2013, 11:17:31 pm »

I think you are judging people too fast here or are misunderstanding. The life issues in question had absolutely nothing to do with Omnimaga nor calculators. I will not go into details, but basically people were constantly infringing on my life freedoms via harrassment tactics, judging me and it reached insane extents in late 2009, at one point which I even felt stalked.

In late 02-03 I was much more into calculators than I am right now, yet my life was perfectly fine. The only reason why I wasn't active online back then was because I had no computer at home.
I'm sorry for judging DJ, I should have understood that that was a hard time and I shouldn't have made jokes about it. (Am being sincere here)

Pages: 1 2 [3] 4 5