ram6ler / function-tree

A simple dart library for parsing strings into callable function-trees.
MIT License
23 stars 11 forks source link

Added negative bases to odd-numbered roots #10

Open DanielusG opened 1 year ago

DanielusG commented 1 year ago

In mathematics there is a root of a negative number if the index of the root is odd, but this library (actually dart's fault) returned NaN, so I applied a fix.

I did this fix very quickly, so feel free to modify it if it doesn't meet your programming criteria