Description Usage Arguments Examples
Creates a function being a reparametrisation (with simplification) of
f1 * g
, e.g. f1(g(x))
1 | reparametrize_function_with_proto(f1, g, res.proto)
|
f1 |
function 1 |
g |
function 2 |
res.proto |
resulting function prototype with NULL body, e.g. |
1 2 3 4 5 6 7 8 9 10 11 12 13 | reparametrize_function_with_proto(
function(x) x^2,
function(y) y^3,
function(z) NULL
)
# function(z) z^6
reparametrize_function_with_proto(
function(x) x^2 + 2*x,
function(y) (y+1)^3,
function(z) NULL
)
# function(z) ((1 + z)^3 + 2) * (1 + z)^3
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.