Math.js 246 B

1234567891011121314
  1. 'use strict';
  2. module.exports = {
  3. sinh : function(a) {
  4. return (Math.exp(a) - Math.exp(-a)) / 2;
  5. },
  6. cosh : function(a) {
  7. return (Math.pow(Math.E, a) + Math.pow(Math.E, -a)) / 2;
  8. },
  9. sign : function(a) {
  10. return (a >= 0.0) ? 1 : -1;
  11. }
  12. };