symbol(x, ...)

Arguments

x

Name to turn into symbol

...

Assumptions like positive = TRUE

Value

A caracas_symbol

See also

Examples

if (has_sympy()) {
  x <- symbol("x")
  2*x
  
  x <- symbol("x", positive = TRUE)
  ask(x, "positive")
}
#> [1] TRUE