UNPKG

mazze.js

Version:

next gen javascript math library!

17 lines (15 loc) 462 B
// const defaultFunctions = require('./default') // module.exports = { // cubeTSA: function(side) { // let ans = +4 * (defaultFunctions.sq(side)) // return ans // }, // cuboidTSA: function(l, b, h){ // let ans = +2 * (+(+l * +b) + +(+b * +h) + +(+h * +l)) // return ans // }, // sphereTSA: function(r){ // let ans = +4 * +(+22 / +7) * +r // return ans.toFixed(4) // } // }