isaacg1 / pyth

Pyth, an extremely concise language. Try it here:
https://pyth.herokuapp.com/
MIT License
262 stars 57 forks source link

Better infinities and abs. #115

Closed orlp closed 9 years ago

orlp commented 9 years ago

This is a feature available in Pyth 5, but we might want to backport for the time being.

Four overloads:

This mean we can also remove infinity from the list of mathematical constants .n, and remove .a.

isaacg1 commented 9 years ago

I added some other things to .a specifically vector length, so I'm going to keep it around. The other uses don't seem common enough to warrant this, so I'll leave it out for now.