Description Usage Arguments Examples
View source: R/implicit-product.R
Make implicit products explicit
1 2 3 4 5 | make_products_explicit(
x,
allowed_functions = getGroupMembers("Math"),
allowed_constants = c("pi")
)
|
x |
user input |
allowed_functions |
functions (sequence of characters) that should not have products, e.g. |
1 2 3 4 5 6 7 8 | make_products_explicit("2x")
make_products_explicit("2(1+2)")
make_products_explicit("x(y)")
make_products_explicit("(1+2)3") # Not allowed by definition
make_products_explicit("(1+2)x") # Is allowed
make_products_explicit("x(2+1) + sin(y)")
make_products_explicit("sin(2+1) + x(y+1)")
make_products_explicit("(2x)(y+1)")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.