y_fn: Prepare simple 'yacas' call

View source: R/y-fn.R

y_fnR Documentation

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

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))


Ryacas documentation built on Jan. 17, 2023, 1:11 a.m.