Generating 'Sweave' Code for 'R/exams' Questions in Mathematics
Rational number sequence to polynomial in TeX code
Sequence of rational numbers into comma separated string
Sequence of numbers into a string of TeX code with plus minus signs.
Convert a matrix into a comma separated string.
Triangle leg values to TeX code of the cosine value
Display the cycle notation of the permutation
Delete the first zero in the output remainder of 'polydiv'
Convert a decimal number into exactly 4 decimal places.
Convert a decimal number into exactly n decimal places.
Apply the Gram-Schmidt process to orthogonize a group of 3 vectors
TeX code of the hypotenuse
Count the number of total inversions of a permutation
Generating a vector of inversions for a permutation
Converting a matrix into TeX code of a matrix without brackets
Converting a matrix into TeX code of a matrix with square brackets
Convert multiple decimals into tex code of vertical fractions
Orthogonal projection of y onto x
Lists permutations of a vector with distinct entries
Matrix representation of the cycles of a permutation.
Order of permutation
TeX code for positivity of randomized values
Converting a matrix into a comma separated string
Convert a decimal into TeX code of vertical fractions
Convert a decimal into TeX code of vertical fractions with the sign in...
Convert a matrix into its transpose in TeX code
Show minus sign in front of fractions
Simplify square roots of positive integers
Triangle leg values to TeX code of the cosine value
Convert multiple decimals into TeX code of back slash fractions
When using the R package 'exams' to write mathematics questions in 'Sweave' files, the output of a lot of R functions need to be adjusted for display in mathematical formulas. Specifically, the functions were accumulated when writing questions for the topics of the mathematics courses College Algebra, Precalculus, Calculus, Differential Equations, Introduction to Probability, and Linear Algebra. The output of the developed functions can be used in 'Sweave' files.