John Lindal![]()
Augments built-in JavaScript Math namespace with additional functions.
For more mathematical functions, see http://yuilibrary.com/gallery/show/number
For complex numbers, see http://yuilibrary.com/gallery/show/complexnumber
Example usage.
<script src="http://yui.yahooapis.com/3.5.1/build/yui/yui-min.js"></script>YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.05.16-20-37'
}).use('gallery-math', function(Y) {
var list = [1,2,3];
var sum = Math.add(1,2,3);
var sum2 = Math.add(list);
var prod = Math.multiply(1,2,3);
var prod2 = Math.multiply(list);
var a = Math.sinh(2); // hyperbolic functions
var b = Math.cosh(2);
var c = Math.tanh(2);
var r = Math.parallel(100, 300, 200); // parallel resistors
});No forum posts for this module.
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info