CodeWalrus

Development => Calculators => Calculator News, Coding, Help & Talk => Topic started by: jpw579 on April 11, 2016, 03:39:10 PM

Title: TI 84 plus program to TI 89
Post by: jpw579 on April 11, 2016, 03:39:10 PM
Hello I need help making a program from a TI 84 run on a TI 89. Can anyone familiar with the programming language tell me how to get it to work?

:Program : CPDT
:Disp: " Form 1 or 2"
:Input Y
:Prompt (A,B,C,D,L,U)
:If Y=1: fnInt(AE-3+BE-5x+CE-8X^2+DE-12X^3,X,L,U) sto H
:If y(does not equal to) 1:fnInt(AE-3+BE-5X+CE-8X^2,X,L,U) sto H
:Disp "DELTA H",H


Thanks so much
Title: Re: TI 84 plus program to TI 89
Post by: Dream of Omnimaga on April 11, 2016, 03:48:49 PM
Heya, I think @princetonlion.tibd or @Lionel Debroux might be able to help. I am not at home right now, so I can't help right now, but perhaps I could later if I remember my TI-89 basic. This program is definitively doable on the TI-89.

Welcome to the forums, by the way. :)
Title: Re: TI 84 plus program to TI 89
Post by: Lionel Debroux on April 11, 2016, 04:17:12 PM
I did TI-68k BASIC for less than a year, 15 years ago, and my latest (very small) TI-Basic program was made for school purposes, so no later than 8 years and a half ago. However, I agree that converting that program from TI-Z80 BASIC to TI-68k BASIC is straightforward, even if I can't do it right now :)
Title: Re: TI 84 plus program to TI 89
Post by: jpw579 on April 11, 2016, 04:40:54 PM
Thank you for the welcome :D. Any help yall could lend would be greatly appreciated.

Thanks
jpw
Title: Re: TI 84 plus program to TI 89
Post by: princetonlion.tibd on April 12, 2016, 02:32:49 AM
I'll try when I have the time, hopefully in a few hours now.(It might be a bit sloppy, plus I haven't done 68k in a while)  And I don't know if V200 code style is the same as on the 89.



Local A,B,C,D,L,U,H
Disp" Form 1 or 2"
Input Y
Prompt A,B,C,D,L,U
If Y=1
nInt(AE-3+BE-5x+CE-8X^2+DE-12X^3,X,L,U) sto H
If y(does not equal to) 1
nInt(AE-3+BE-5X+CE-8X^2,X,L,U) sto H


:Disp "DELTA H",H


I couldn't find fnint. I think nint is the same thing. This is also probably the only actual code I've done in close to a year x.x[/size]
(I haven't tested the math part, but I think it works)[/size][size=0px][/font]

EDIT: Didn't notice it clumped in the code box.
Title: Re: TI 84 plus program to TI 89
Post by: Dream of Omnimaga on April 12, 2016, 03:01:38 AM
So I tried converting the program to TI-89 format, but unfortunately I cannot find the equivalent of the fnInt() command on 68K calculators. Other than those commands, the code is very similar, though:


cpdt()
Prgm
Disp "Form 1 or 2"
Input Y
Prompt A
Prompt B
Prompt C
Prompt D
Prompt L
Prompt U

<????>

Disp "DELTA H",H
EndPrgm


Maybe this is the command that is needed? http://tibasicdev.wikidot.com/68k:integral But I think the fact the TI-89 is a CAS calculator might play a role in what answer you get, so it's better to be careful.
Title: Re: TI 84 plus program to TI 89
Post by: princetonlion.tibd on April 12, 2016, 03:04:20 AM
Maybe, the things I found on google when I searched "NInt TI-83+" say that Fnint is the same.
Title: Re: TI 84 plus program to TI 89
Post by: Dream of Omnimaga on April 12, 2016, 10:54:07 PM
Quote from: princetonlion.tibd on April 12, 2016, 02:32:49 AM
I'll try when I have the time, hopefully in a few hours now.(It might be a bit sloppy, plus I haven't done 68k in a while)  And I don't know if V200 code style is the same as on the 89.
I missed your post, but yes V200 code is the same as on the 89. Even ASM games might sometimes run on both, aside from screen size issues.