Create a symbol from a string

eval_to_symbol(x)

Arguments

x

String to evaluate

Value

A caracas_symbol

Examples

if (has_sympy()) {
   x <- symbol('x')
   (1+1)*x^2
   lim(sin(x)/x, "x", 0)
}
#> c: 1