Potentially calls doit().

as_expr(x, first_doit = TRUE)

# S3 method for caracas_symbol
as.expression(x, ...)

# S3 method for caracas_solve_sys_sol
as.expression(x, ...)

Arguments

x

caracas_symbol

first_doit

Try doit() first

...

not used

Examples

if (has_sympy()) {
  v <- vector_sym(2)
  x <- as_expr(v)
  x
  y <- as.expression(v)
  y
}
#> expression(matrix(c(v1, v2), nrow = 2))