dfdx / Espresso.jl

Expression transformation package

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`x^0` does not simplify?

cortner opened this issue · comments

Interesting package.

julia> simplify( :( x^0 ) )
:(x ^ 0)

Is this intended? If so, then why?

EDIT: I can see that all I need to do is @simple_rule (x^0) 1, my question is just why this was omitted.

It wasn't omitted, just nobody defined it :)
I've added it to master, thanks for suggestion!