Find available assumptions at https://docs.sympy.org/latest/modules/core.html#module-sympy.core.assumptions.
symbol(x, ...)
A caracas_symbol
Name to turn into symbol
Assumptions like positive = TRUE
as_sym()
if (has_sympy()) {
x <- symbol("x")
2*x
x <- symbol("x", positive = TRUE)
ask(x, "positive")
}
Run the code above in your browser using DataLab