Simple and raw conversion to yacas

# S3 method for matrix
as.Sym(x, ...)

Arguments

x

An R character matrix.

...

Not used

Examples

x <- matrix(c("a", "2", "4", "c", "d", "6"), 3, 2)
x
#>      [,1] [,2]
#> [1,] "a"  "c" 
#> [2,] "2"  "d" 
#> [3,] "4"  "6" 
y <- as.Sym(x)
y
#> Yacas matrix:
#>      [,1] [,2]
#> [1,] a    c   
#> [2,] 2    d   
#> [3,] 4    6   
Eval(y, list(a = 3, c = 3, d = 3))
#>      [,1] [,2]
#> [1,]    3    3
#> [2,]    2    3
#> [3,]    4    6