01 - Introduction to ‘caracas’

library(caracas)

Quick start

x <- symbol('x')
eq <- 2*x^2 - x
eq
as.character(eq)
as_expr(eq)
tex(eq)

tex(eq)

solve_sys(eq, x)
der(eq, x)
subs(eq, x, "y")

Linear algebra

A <- matrix(c("x", 2, 0, "2*x"), 2, 2)
B <- as_sym(A)
B
Binv <- inv(B) # or solve_lin(B)
Binv
tex(Binv)

tex(Binv)

eigenval(Binv)
eigenvec(Binv)

More examples

Please find more examples in the other vignettes.