The Gallery is deprecated. No new Gallery components may be submitted, and modifying existing components is disabled. For more information please read the Gallery Deprecation blog post. This is a static snapshot of the Gallery for archive purposes.
See 50 more by this user. Created: 03/14/11
Last CDN Push: 05/16/12
Build Tag: gallery-2012.05.16-20-37
Project: YUI 3
License: YUI BSD
YUI Version: 3.5.1
Free for use.
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.
All code on this site is licensed under the BSD License unless stated otherwise.