| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|||
|
Geometric properties program
I am trying to make a heometric properties program, as i am on that unit in school. I have a pythagorean theorum program, i want to know if there are other properties that I can make a code for.
Pythagorean Theorum Code: :Input "SIDE A LENGTH?",A :Input "SIDE B LENGTH?",B :A^2+B^2 ;Disp *square root of*(Ans This code works well, any other properties i could make a code for? |
|
|||
|
maybe surface area and/or volume
|
|
|||
|
Quote:
Thanks, ill try to figure out the equation for that to put into a calculator. |
|
|||
|
And btw-
Heres my Surface/volume area code :Input "HEIGHT:_",A :Input "DEPTH:_",B :Input "LENGTH:_",C ;Disp "SURFACE AREA",(2AB)+(2AC)+(2BC) ;Disp "VOLUME",ABC Simple 5 lines of code for a simple program. Hope this helps somebody. |
|
|||
|
You could also make a program that allows you to solve for A, B, or C by using a menu. (I haven't tested this. let me know if it has errors)
Code:
:clrHome
:delVar abcd
:lbl 1
:Menu(Solve For,A,a,B,b,C,c)
:lbl A
:input "B= ",b
:input "C= ",c
:sqrt((-b**+c**))->d
//DO NOT TYPE!
//The ** is a symbol for squared. REPLACE with the
// squared sign on the calculator
//The -> means sto (used for storing variables)
//which is at the bottom-left of the calculator
//delVar at the top deletes variables a,b,c, and d
:display d
:pause
:GOTO 1
:lbl b
:input "A= ",a
:input "C= ",c
:sqrt((-a**+C**))->d
:display d
:pause
:GOTO 1
:lbl c
:input "A= ",a
:input "B= ",b
:sqrt((a**+b**))->d
:display d
:pause
:GOTO 1
|
|
||||
|
Quote:
Sorry to rain on your parade, but you have many errors in this code, and many things don't work as you wish they did. Going down the line of code, here are the errors and mistakes you have: Code:
:DelVar ABCD - This does not delete the values of variables B, C, or D. It will only delete the value of the variable A, then multiply B by C by D, because DelVar is the only command that doesn't require you to put a colon after it to make it a new line. When you do DelVar AClrHome, it will read DelVar A, do that, then act like ClrHome is on a new line of it's own. So here, you only cleared the value of variable A, and did nothing else. ... :Menu(Solve For,A,a,B,b,C,c) - Alright, here you have the syntax for command Menu(, solve(, and For( all wrong. I don't even know what the calculator is trying to interpret this as, considering you have 3 commands for very different uses all together in one line. Here's where you can find more detailed information on the Menu( command, the solve( command, and the For( command. ... :sqrt((-b**+c**))->d - And also the others like this. There isn't much of a problem here, but you are wasting memory with the unnecessary pair of parenthesis inside the √( command. ... most everything else is fine, could use improvement, but still works as it should. Now, on the otherhand, if you meant by ":Menu(Solve For,A,a,B,b,C,c" that the title of the menu was going to be "Solve For", then you should really remember to put quotation marks around Solve For, because otherwise you'll find people are going to get some errors, and think your code doesn't work. |
|
||||
|
Quote:
- Try perimeter and area for: square, rectangle, circle, triangle, parallelogram, trapezoid and surface area and volume for: cube, box, sphere, hemisphere, cone, pyramid, topless cone, topless pyramid, tori Hint, use strings where you can to reduce memory. - combine perimeter and area (input the values once and get both outputs) - also surface area and volume. Most people have problem with height and slant height and their conversions. - hope this helps falcon |
|
|||
|
Quote:
Well there was no parade to rain on but... The menu was a clear mistake and i was falling asleep as i typed it. Also i was playing around with the DelVar command and realized that (no surprise) it multiplied the variables, rather than actually deleting them. |
|
||||
|
Quote:
- One of the best "Algebra" programs for the TI-83/84 that I have seen had the main program a menu and the rest were sub programs called by the main program or menu (this makes the program modular). When you add more sub programs just add them to the menu. Easier to maintain. Example: Geographic Figures - add more figures. - hope this helps falcon |
![]() |
| Viewing: Dev Hardware Forums > SOFTWARE > TI 83/84 > Geometric properties program |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|