Skip to content

Commit f31c4a4

Browse files
committed
Fix pow_abs2 not being defined
1 parent 585a2c0 commit f31c4a4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/test_simplification.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,9 @@ x1, x2, x3 = Node("x1"), Node("x2"), Node("x3")
5151
pow_abs2(x, y) = abs(x)^y
5252

5353
operators = OperatorEnum(;
54-
binary_operators=(+, *, -, /, pow_abs2),
55-
unary_operators=(custom_cos, exp, sin),
56-
define_helper_functions,
54+
binary_operators=(+, *, -, /, pow_abs2), unary_operators=(custom_cos, exp, sin)
5755
)
56+
@extend_operators operators
5857
tree = (
5958
((x2 + x2) * ((-0.5982493 / pow_abs2(x1, x2)) / -0.54734415)) + (
6059
sin(

0 commit comments

Comments
 (0)