Note that -1.5 ^ -1.5
is not being parsed as you probably expect:
julia> parse("-1.5 ^ -1.5")
:(-(1.5 ^ -1.5))
When in doubt, check how your expression is parsed with parse
, in any case use parentheses to avoid ambiguities.
Note that -1.5 ^ -1.5
is not being parsed as you probably expect:
julia> parse("-1.5 ^ -1.5")
:(-(1.5 ^ -1.5))
When in doubt, check how your expression is parsed with parse
, in any case use parentheses to avoid ambiguities.