Hej all! (Sweden Joke)

I recently optimised my Ti-85 Programme with a function (see var "Q")

Code:
ClLCD
RectC
Q=(~B+{1,~1}*sqrt(B^^2-4*A*C)/(2*A
Disp "Quadratic","ax^^2+bx+c"
Prompt A,B,C,D
round(Q,D
Disp Ans(1
Disp Ans(2


Note : D is digits of precision

How would I do the same thing with sequential functions or y-vars of any type (on the Ti-83+)?

like...the u, v , and w things.

EDIT :
With some help with people in SAX, I got this code :

Code:
ClrHome
a+bi
Disp "Quadratic","ax^^2+bx+c
Prompt A,B,C,D
round((~B+{1,~1}sqrt(B^^2-4AC))/2/A,D
Disp Ans(1),Ans(2

However, I get garbage output.
for A=1 : B=2 : C=-3 : D=0 :
I get : x={7,-9},
When I should get : x={1,-3}
Change

Code:

round((~B+{1,~1}(B^^2-4AC))/2/A,D

Back to:

Code:
round((~B+{1,~1}sqrt(B^^2-4AC))/(2A
KaluW_ wrote:
Change

Code:

round((~B+{1,~1}(B^^2-4AC))/2/A,D

Back to:

Code:
round((~B+{1,~1}(B^^2-4AC))/(2A


we've got it figured out on SAX, i forgot a √
  
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