sintex: Triangle leg values to TeX code of the cosine value
Description
Convert a sine value into TeX code with simplification on the radical from the hypotenuse, where the input (a,b) are the integer lengths of the legs of the right triangle with a the vertical leg, b the horizontal leg. The simplification is provided by another function 'simpRad' in the same package.
Usage
sintex(a,b)
Value
The function returns a string of TeX code for the value of the associated sine.
Arguments
a
The vertical length of the right triangle, which can be negative.
b
The horizontal length of the right triangle, which can be negative.
Details
Given integer lengths of the legs of a triangle, the function returns a string of TeX code for the value of the associated sine.