hypotex {Tex4exams} | R Documentation |
Given the lengths of the integer legs of a right triangle, the function generates the TeX code of the length of the hypotenuse in simplified form.
hypotex(a,b)
a , b |
a pair of the integer leg lengths of a right triangle. |
The function generates the TeX code of the hypotenuse in simplified form of the radicals.
a <- sample(c(1:5),1)
b <- sample(c(1:5),1)
hypotex(a,b)