simpRad {Tex4exams} | R Documentation |
SimpRad uses the package 'numbers' to simplify square roots of positive integers.
simpRad(n)
n |
a positive integer. |
The function returns a string of TeX code for radical in simplified form.
The function used functions 'primFactors' and 'radical' from the package of 'numbers'.
radical, primeFactors
n <- sample(c(4:100),1)
simpRad(n)