Join us on Discord!
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

Dream of 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. :)
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

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

#4
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.
  • Calculators owned: TI-83+, TI-84 + CSE, Voyager 200, TI-Nspire
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)

Dream of Omnimaga

#5
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.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

princetonlion.tibd

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

Dream of 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.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Powered by EzPortal