simpRad {Tex4exams} | R Documentation |
Simplify square roots of positive integers
Description
SimpRad uses the package 'numbers' to simplify square roots of positive integers.
Usage
simpRad(n)
Arguments
n |
a positive integer. |
Value
The function returns a string of TeX code for radical in simplified form.
Note
The function used functions 'primFactors' and 'radical' from the package of 'numbers'.
See Also
radical, primeFactors
Examples
n <- sample(c(4:100),1)
simpRad(n)
[Package Tex4exams version 0.1.2 Index]