Commit e8fd4a2d authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix #32330

parent 95d99912
......@@ -503,7 +503,7 @@ Complex.prototype = {
return c.toString();
},
Cos:function () {
if ( i ) {
if ( this.img ) {
var a = Math.cos( this.real ) * Math.cosh( this.img );
this.img = -( Math.sin( this.real ) * Math.sinh( this.img ) );
this.real = a;
......@@ -525,7 +525,7 @@ Complex.prototype = {
var a = this.real, b = this.img,
c = comp.real, d = comp.img,
f = 1 / (c * c + d * d)
f = 1 / (c * c + d * d);
if( Math.abs(f) == Infinity ){
return new cError( cErrorType.not_numeric );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment