as.yac_symbol: Coerce to an Object of Class 'yac_symbol'

Description Usage Arguments Author(s) See Also Examples

View source: R/as.yac_symbol.R

Description

The function checks if x is of class yac_symbol. If the test is TRUE, it returns x. otherwise, it applies Ryacas::ysym() to x and returns the result.

Usage

1
2
3

Arguments

x

Object.

Author(s)

Ivan Jacob Agaloos Pesigan

See Also

Other assert functions: as.tex(), as.yac_symbol.mat()

Examples

1
2
3
4
5
6
x <- 1:5
as.yac_symbol(x)
as.yac_symbol(Ryacas::ysym(x))
y <- 6:10
as.ysym(y)
as.ysym(Ryacas::ysym(y))

jeksterslab/yacR documentation built on Feb. 27, 2021, 3:45 a.m.