forward_computation | R Documentation |
Performs the function calculation forwards in graph
forward_computation(dag, values)
dag |
to perform calculations in |
values |
a named list of symbols and their values |
ast <- infer_ast("cos(2*x1 + x2) + x2^2") dag <- make_dag(ast) dag <- collect_leaves(dag) dag <- forward_computation(dag, values = list(x1 = 1, x2 = 2)) dag eval(expression(cos(2*x1 + x2) + x2^2), list(x1 = 1, x2 = 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.