You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -405,7 +405,7 @@ public override Operand Calculate(AlgorithmEngine work)
405
405
varargs1=func1.Calculate(work);if(args1.Type!=OperandType.NUMBER){args1=args1.ToNumber("Function '{0}' parameter is error!","Cot");if(args1.IsError){returnargs1;}}
406
406
vard=Math.Tan((double)args1.NumberValue);
407
407
if(d==0){
408
-
returnOperand.Error("Function 'Cot' div 0 error!");
408
+
returnOperand.Error("Function '{0}' div 0 error!","Cot");
409
409
}
410
410
returnOperand.Create(1.0/d);
411
411
}
@@ -426,7 +426,7 @@ public override Operand Calculate(AlgorithmEngine work)
426
426
varargs1=func1.Calculate(work);if(args1.Type!=OperandType.NUMBER){args1=args1.ToNumber("Function '{0}' parameter is error!","Sec");if(args1.IsError){returnargs1;}}
427
427
vard=Math.Cos((double)args1.NumberValue);
428
428
if(d==0){
429
-
returnOperand.Error("Function 'Sec' div 0 error!");
429
+
returnOperand.Error("Function '{0}' div 0 error!","Sec");
430
430
}
431
431
returnOperand.Create(1.0/d);
432
432
}
@@ -447,7 +447,7 @@ public override Operand Calculate(AlgorithmEngine work)
447
447
varargs1=func1.Calculate(work);if(args1.Type!=OperandType.NUMBER){args1=args1.ToNumber("Function '{0}' parameter is error!","Csc");if(args1.IsError){returnargs1;}}
448
448
vard=Math.Sin((double)args1.NumberValue);
449
449
if(d==0){
450
-
returnOperand.Error("Function 'Csc' div 0 error!");
450
+
returnOperand.Error("Function '{0}' div 0 error!","Csc");
451
451
}
452
452
returnOperand.Create(1.0/d);
453
453
}
@@ -1203,8 +1203,8 @@ public override Operand Calculate(AlgorithmEngine work)
1203
1203
varo2=FunctionUtil.F_base_GetList(args2,list2);
1204
1204
if(o1==false){returnOperand.Error("Function '{0}' parameter {1} is error!","CovarIanceS",1);}
1205
1205
if(o2==false){returnOperand.Error("Function '{0}' parameter {1} is error!","CovarIanceS",2);}
0 commit comments