Learn R Programming

caracas (version 2.1.1)

symbol: Create a symbol

Description

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

Usage

symbol(x, ...)

Value

A caracas_symbol

Arguments

x

Name to turn into symbol

...

Assumptions like positive = TRUE

See Also

as_sym()

Examples

Run this code
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