symbol {caracas}R Documentation

Create a symbol

Description

Find available assumptions at https://docs.sympy.org/latest/modules/core.html#module-sympy.core.assumptions.

Usage

symbol(x, ...)

Arguments

x

Name to turn into symbol

...

Assumptions like positive = TRUE

Value

A caracas_symbol

See Also

as_sym()

Examples

if (has_sympy()) {
  x <- symbol("x")
  2*x
  
  x <- symbol("x", positive = TRUE)
  ask(x, "positive")
}


[Package caracas version 2.1.1 Index]