powered by
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)
The function generates the TeX code of the hypotenuse in simplified form of the radicals.
a pair of the integer leg lengths of a right triangle.
simpRad, sintex, costex
simpRad
sintex
costex
a <- sample(c(1:5),1) b <- sample(c(1:5),1) hypotex(a,b)
Run the code above in your browser using DataLab