symbol: Create a symbol

View source: R/sym_symbol.R

symbolR 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")
}


caracas documentation built on June 22, 2024, 10:59 a.m.