Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
9fe2f40
1
Parent(s):
5a98feb
=== rather than == for checking pow operator
Browse files- julia/sr.jl +1 -1
julia/sr.jl
CHANGED
@@ -606,7 +606,7 @@ function deepPow(tree::Node)::Integer
|
|
606 |
elseif tree.degree == 1
|
607 |
return 0 + deepPow(tree.l)
|
608 |
else
|
609 |
-
if binops[tree.op]
|
610 |
complexity_in_power = countNodes(tree.r)
|
611 |
is_deep_pow = (complexity_in_power > 1)
|
612 |
if is_deep_pow
|
|
|
606 |
elseif tree.degree == 1
|
607 |
return 0 + deepPow(tree.l)
|
608 |
else
|
609 |
+
if binops[tree.op] === pow
|
610 |
complexity_in_power = countNodes(tree.r)
|
611 |
is_deep_pow = (complexity_in_power > 1)
|
612 |
if is_deep_pow
|