The shoutbox is currently out of service. Join us on Discord instead.
You can help CodeWalrus stay online by donating here.

TI 84 plus program to TI 89

Started by jpw579, April 11, 2016, 03:39:10 pm

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jpw579

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

DJ Omnimaga

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. :)

Lionel Debroux

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 :)
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TIEmu and TILP.
Co-admin of TI-Planet.

jpw579

Thank you for the welcome :D. Any help yall could lend would be greatly appreciated.

Thanks
jpw

princetonlion.tibd

April 12, 2016, 02:32:49 am #4 Last Edit: April 13, 2016, 01:07:42 am by princetonlion.tibd
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.
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)

DJ Omnimaga

April 12, 2016, 03:01:38 am #5 Last Edit: April 12, 2016, 03:03:11 am by DJ Omnimaga
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.

princetonlion.tibd

Maybe, the things I found on google when I searched "NInt TI-83+" say that Fnint is the same.
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)

DJ Omnimaga

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.

Powered by EzPortal