R/smfrac.R

Defines functions smfrac

Documented in smfrac

## Convert a list of decimals into back slash fractions

smfrac <- function(z){
  n <- length(z)
  y <- paste0(fractional(z[1]))
  i <- 2
  while (i <= n){
    y <- paste0(y,",",fractional(z[i]))
    i <- i+1
  }
  return(y)
}

Try the Tex4exams package in your browser

Any scripts or data that you put into this service are public.

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