symbols: Initiate Symbols

Description Usage Arguments Value Examples

Description

Symbols can be initiated with sym or syms_init

Usage

1
2
3
sym(name, ...)

syms_init(..., .envir = parent.frame(), .quite = FALSE)

Arguments

...

For sym, pass the assumptions of the symbol. For syms_init, arguments with a name will be treated as assumptions, while arguments without a name are substituted as symbol names to initiate. See example.

.envir

The environment to initiate the symbols.

.quite

Logical value to indicate whether to show messages when initiating the symbols

Value

sym returns a sympy symbol. syms_init invisibly returns a list of the initiated symbols.

Examples

1
2
3
4
5
x <- sym("x", real = TRUE)
syms_init(y, z, positive = TRUE, .quite = TRUE)
x
y
class(x)

Marlin-Na/symbolicR.old documentation built on May 18, 2019, 2:34 a.m.