摘要:
function Complex(real, imaginary) { this.x = real; // The real part of the number this.y = imaginary; // The imaginary part of the number } ;Complex.prototype.magnitude = function( ) { return Math.sqrt(this.x*this.x + this.y*this.y); };Complex.prototype.negative = function( ) { ... 阅读全文
posted @ 2012-07-17 15:53
rorodo
阅读(241)
评论(0)
推荐(0)