hypotex {Tex4exams} | R Documentation |
TeX code of the hypotenuse
Description
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.
Usage
hypotex(a,b)
Arguments
a , b |
a pair of the integer leg lengths of a right triangle. |
Value
The function generates the TeX code of the hypotenuse in simplified form of the radicals.
See Also
Examples
a <- sample(c(1:5),1)
b <- sample(c(1:5),1)
hypotex(a,b)
[Package Tex4exams version 0.1.2 Index]