Skip to content

Commit

Permalink
docs: improve docs for StructuredExpression
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Jul 22, 2024
1 parent ffe1461 commit f441535
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/StructuredExpression.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ and then combine them together in a new expression, `f_plus_g`,
using a constructor function that simply adds them together:
```julia
kws = (;
binary_operators=[+, -, *, /],
unary_operators=[-, cos, exp],
variable_names=["x", "y"],
)
f = parse_expression(:(x * x - cos(2.5f0 * y + -0.5f0)); kws...)
g = parse_expression(:(exp(-(y * y))); kws...)
Expand Down

0 comments on commit f441535

Please sign in to comment.