Learn R Programming

Ryacas (version 1.1.5)

y_fn: Prepare simple yacas call

Description

Prepare simple yacas call

Usage

y_fn(x, fn, ...)

Arguments

x

parameter to function fn

fn

function with parameter x

...

additional arguments to fn

Examples

Run this code
y_fn("x^2 - 1", "TeXForm")
yac_str(y_fn("x^2 - 1", "TeXForm"))

y_fn("x^2 - 1", "Factor")
yac_str(y_fn("x^2 - 1", "Factor"))

cmd <- "x^2 - 1 == 0" %>% y_fn("Solve", "x")
cmd
sol <- yac_str(cmd)
sol
yac_str(y_rmvars(sol))

Run the code above in your browser using DataLab