Hi,
I'm tryng to learn programming using Ti84+
I have tried with the famous Quadratic equation, but how can I have fraction instead of decimal? or to have the two.
I believe you use the Frac function. If memory serves, it looks something like ►Frac.
john7911 wrote:
Hi,
I'm tryng to learn programming using Ti84+
I know a book that might help you. Wink
Quote:
I have tried with the famous Quadratic equation, but how can I have fraction instead of decimal? or to have the two.
As comicIDIOT suggested, you can use the ►Frac token like this:
Code:
PROGRAM:QUAD
:Prompt A,B,C
:Disp ((-B+√(B²-4AC))/(2A))►Frac
:Disp ((-B-√(B²-4AC))/(2A))►Frac
:Pause
Thank you
It workes Wink
I will buy the book asap it looks great Smile
Glad to hear that it works. Don't hesitate to ask any other TI-BASIC questions you may have, as we're always happy to help.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement