Ryacas0 allows one to use the yacas computer algebra package entirely from within R. It takes an R expression, an R one line function or a yacas string and returns an R expression or a variety of other formats. It can be used for symbolic mathematics, exact arithmetic, ASCII pretty printing and R to TeX conversions. The main command is yacas and ?yacas provides some information on installation and startup.

Details

The following are sources of information on "Ryacas0":

DESCRIPTION filelibrary(help = Ryacas0)
List of demo filesdemo(package = "Ryacas0")
Demo filedemo("Ryacas0")
Demodemo("Ryacas0-PrettyPrinter")
Demodemo("Ryacas0-Function")
Demodemo("Ryacas0-Sym")
Demodemo("Ryacas0-Expr")
List Vignettesvignette(package = "Ryacas0")
Vignettevignette("Ryacas0")
This Filepackage?Ryacas0
Help files?yacas, ?yacasTranslations, ?yacmode, ?Sym
Help files - Windows?yacasInstall
NewsRShowDoc("NEWS", package = "Ryacas0")
AcknowledgementsRShowDoc("THANKS", package = "Ryacas0")
Wish ListRShowDoc("WISHLIST", package = "Ryacas0")
Home pagehttps://github.com/r-cas/ryacas0/

Note

There is a note in the help file of the yacas command that discusses a number of installation and startup issues.

Examples


print(yacas(expression(integrate(1/x, x))))
#> yacas_expression(log(x))
print(yacas("Integrate(x)1/x"))
#> yacas_expression(log(x))
x <- Sym("x"); Integrate(1/x, x)
#> yacas_expression(log(x))
acos(Sym("1/2"))
#> yacas_expression(pi/3)