R/a_early.R
equation.Rd
Get equation for object
equation( x, type = c("y", "general", "parametric"), output = c("markdown", "latex"), digits = 2 )
object
equation type. Can be y (default), general, or parametric
y
general
parametric
Can be markdown (default) or latex
markdown
latex
rounding digits
string
l1 <- ob_line(slope = 2, intercept = 4) c1 <- ob_circle(radius = 3) equation(c1) #> [1] "*x*<sup>2</sup> + *y*<sup>2</sup> = 3<sup>2</sup>" equation(l1) #> [1] "*y* = 2*x* + 4"