Update mathFunctions.js