fredrik-johansson / fungrim

Fungrim: the Mathematical Functions Grimoire
MIT License
113 stars 15 forks source link

Define or remove "csgn" #17

Closed mhogrefe closed 5 years ago

mhogrefe commented 5 years ago

I was browsing http://fungrim.org/topic/Inverse_tangent/ and noticed that a few formulas use a csgn function that isn't explained anywhere. Is it related to sgn? It appears in formulas/expr.py and formulas/atan.py.

If csgn is just a synonym for sgn I can create a pull request to remove it. If it's supposed to be a separate function it should be defined somewhere.

fredrik-johansson commented 5 years ago

Many basic functions and operators don't have definitions yet.

Added csgn definition in 59bd45ea108cdbbd82f6a3c38022f1cb5f8016e4

Thanks for reporting the issue!