This forum is in permanent archive mode. Our new active community can be found here.

Help with a ti-85 calc program.

edited January 2009 in Technology
i'm having trouble with a very simple program on my ti-85 (im just starting to learn how to prog) and i was wondering if i could get some help.
The program finds the volume of a circle by first prompting you for the radious.

:Disp "Cradius Calc"
:Prompt R
:4/3*3.14R^3->L
:Disp ,L
:End

Every time i try to run this it tells me Error 07 Syntax

Comments

  • ......
    edited January 2009
    The program finds the volume of a circle by first prompting you for the radious.
    A circle has no volume. What you are calculating is the volume of a sphere. There's a dimension in difference. Either way, double check your syntax to the manual, and use π for π.
    I suspect that comma in ":Disp ,L" to be the problem.
    EDIT: If you still can't find the problem, hit the 'block comment' link in the top right of this post for my suspicion.
    Post edited by ... on
  • :Disp "Cradius Calc"
    :Prompt R
    :4/3*3.14R^3->L
    :Disp ,L
    :End
    try (4/3*3.14*(R^3))->L
    and Disp L
  • Speaking from my experience with 83/84 programming, it might also be that END line that's causing the problem (in addition to Disp,L). I've only used END to signify the end of a conditional clause (IF, OR, THEN, etc). END is definitely not needed denote the end of a program, since the program will terminate automatically when it gets to the end.
  • Yeah I'm pretty sure the END isn't necessary either. The general command for stopping a program is STOP.
  • Speaking from my experience with 83/84 programming, it might also be that END line that's causing the problem (in addition to Disp,L). I've only used END to signify the end of a conditional clause (IF, OR, THEN, etc). END is definitely not needed denote the end of a program, since the program will terminate automatically when it gets to the end.
    Ahhhhh, of course. It's been a very long time since I cut any TI code.
Sign In or Register to comment.