Wednesday, April 20, 2011

Geometry: Pythagorean Theorem

Shows C squared and C just in case you want to leave it in a radical. We all get too lazy to key in everything.
e.g. you have a 1, 1, and X triangle.
: We all know it is the square root of two, but the program shows 2 and the sqrt of 2 just in case.

-- Pythagorean Theorem --
:Prompt A,B
:(A2+B2)→D
:(D)C
:Disp D,C

No comments:

Post a Comment