sharkdp / insect

High precision scientific calculator with support for physical units
https://numbat.dev/
MIT License
3.18k stars 126 forks source link

Allow repeated factorial #390

Closed triallax closed 1 year ago

triallax commented 1 year ago

I know this is an edge case, but:

>>> 2!!

  Parse error at position 3: Expected end of input
sharkdp commented 1 year ago

Interesting. Note that there is also something called double-factorial: https://mathworld.wolfram.com/DoubleFactorial.html

So maybe this should be disallowed? (But with a better error message.)