Skip to content

Latest commit

 

History

History

ex7.14

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
I added a postfix unary factorial operator, '!', requiring changes to parsePrimary in parse.go.

I'm using the gamma function to compute factorials so floats can be handled and error handling avoided, which I'm not sure is correct mathematically and could expose floating point peculiarities but seems ok for the values I've tried.