corywalker / expreduce

An experimental computer algebra system written in Go
MIT License
381 stars 25 forks source link

Incorrect priority for the factorial operator #185

Open balthild opened 5 years ago

balthild commented 5 years ago
In[1]:= 3+2+1
Out[1]= 6

In[2]:= 3+2+1!
Out[2]= 720

In[3]:= 3+2+(1!)
Out[3]= 6

In common practice, the factorial operator has a higher priority than infix operators.