home *** CD-ROM | disk | FTP | other *** search
- Pythagorean theoreme
- --------------------------------------------------
- Version: 1.5, 980214
- Creator: Daniel Bergman.
- Description: The program calculates the unknown side in a right-angled triangle.
- The calculator will ask for lengths for A, B and C. A & B are the catheti,
- C is the hypotenuse. Input 0 as value for the unknown side.
- Comments: "\/" is the square root.
- Known bugs: None.
- Size: 81 bytes.
-
- For more games and programs, please visit http://ti80.burtrask.net.
-
- PROGRAM:PYTHAG
- INPUT"A?",A
- INPUT"B?",B
- IF (A)(B
- GOTO 0
- INPUT"C?",C
- IF A
- DISP \/(C^2-A^2
- IF B
- DISP \/(C^2-B^2
- STOP
- LBL 0
- \/(A^2-B^2
-
- --------------------------------------------------------------------
- Copyright (C) 1998 by Daniel Bergman & Mattias MorΘn
- http://ti80.burtrask.net