hypotex: TeX code of the hypotenuse

View source: R/hypotex.R

hypotexR 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

simpRad, sintex, costex

Examples

a <- sample(c(1:5),1)
b <- sample(c(1:5),1)
hypotex(a,b)

Tex4exams documentation built on May 31, 2023, 8:04 p.m.

Related to hypotex in Tex4exams...