John Lindal![]()
Mathematical functions for complex numbers, equivalent to the built-in Math functions and gallery-math
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-complexnumber', function(Y) {
var i = Y.ComplexMath.sqrt(-1);
var two_complex = Y.ComplexMath.sqrt(4);
var five_complex = Y.ComplexMath.abs(new Y.ComplexNumber(3,4));
var minus_one_complex = Y.ComplexMath.exp(new Y.ComplexNumber(0, Math.PI/2);
});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