fun_math: Add math.js

Description Usage Arguments Details Examples

Description

Add a Add function to be evaluated by math.js.

Usage

1
fun_math(p, fun, ...)

Arguments

p

Plot as initialised by funplot.

fun

Function to plot.

...

Any other parameter, see fun_add.

Details

funplot uses interval-arithmetic math by default, unfortunately some functions are not implemented yet because of the underlying complexity, for this reason you can always evaluate a function with http://mathjs.org/.

Examples

1
2
3
4
5
6
funplot() %>%
 fun_math("gamma(x)")

funplot() %>%
 fun_math("atan2(x, x ^ 2) / pi", samples = 4000) %>%
 fun_y(domain = list(-1, 1))

JohnCoene/funplot documentation built on May 26, 2019, 7:28 a.m.