Solver Calculate diagonal of a rectangle
Algebra
->
Customizable Word Problem Solvers
->
Geometry
-> Solver Calculate diagonal of a rectangle
Log On
Ad:
Over 600 Algebra Word Problems at edhelper.com
Word Problems: Geometry
Word
Solvers
Solvers
Lessons
Lessons
Answers archive
Answers
Source code of 'Calculate diagonal of a rectangle'
This Solver (Calculate diagonal of a rectangle)
was created by by
ichudov(507)
:
View Source
,
Show
,
Put on YOUR site
About ichudov
:
I am not a paid tutor, I am the owner of this web site!
==section input Calculate the length of the diagonal in a rectangle with one side *[input side1=3] cm and another side *[input side2=4] cm. ==section solution Two sides of a rectangle and the diagonal form a right triangle. The diagonal is the hypotenuse. Since, according to the pythagorean theorem, the length of the hypotenuse is the square root of the sum of squares of the sides, we have *[assign diagonal=sqrt( $side1^2 + $side2^2 ) ] {{{diagonal = sqrt( $side1^2 + $side2^2 ) = $diagonal}}} ==section output diagonal ==section check side1=3 side2=4 diagonal=5