So, I'm making a program on my TI-84 Plus that finds the area of a circle. I want it to display the approximate answer and the exact answer, but I can't get the latter to work. The code is this (I realize that it isn't very efficient):
Prompt R
ClrHome
(πR²)→A
(R²)→B
round(B,2)→B
Disp "A="
Disp ""
Disp "APPROXIMATION:"
Disp A
Disp "EXACT:"
Disp "π",B
Disp "PRESS ENTER"
Pause
However, it displays like this (when the radius is 4):
A=
APPROXIMATION:
50.27
EXACT:
π
16
PRESS ENTER
I would like to know how to make the π and 16 (in this case) be on the same line, with π before 16, and have it work for all number of digits. I've tried to use the Output( command, but if B is over 2 digits, it goes to the next line. Thanks!
Perhaps use Output(X,Y,"π") and Output(X,Y-3,B) This is how I would do this:
:Prompt R
:ClrHome
:(πR²)→A
:(R²)→B
:log(B)→C
:round(B,2)→B
:Output(1,1,"A")
:Output(3,1,"APPROXIMATION:")
:Output(3,16,A)
:Output(5,1,"EXACT:")
:Output(5,8,B)
:Output(5,11+C,"π")
:Output(7,1,"PRESS ENTER")
:Pause
Basically, once the calculations are made, in this prgm text, the program would use log(B)→C to find how many spaces to move the π to the right. After that, it would output A at the first line of text, the approximation at the third line of the Home Screen grid (for Output), and the exact approximation, in terms of π, at the fifth line of the Home Screen grid (for Output).
Hope this helps!