Thanks, this is useful, but the $equat variable does not include minus signs, I guess it should be :
equat=$(echo ${@//[^-0-9\.\+\/\*\(\)]/ }| sed 's/[ \t]*//g')
I posted an updated version (with some precision tweaks) as a gist : https://gist.github.com/mic...