Exemplo n.º 1
0
 public static PolynomialTerm Cos(PolynomialTerm name)
 {
     if (name.IsConstant)
     {
         return(NumberMath.RoundedCos((double)name));
     }
     else
     {
         return(IndeterminateExpression.Cos((char)name));
     }
 }
 public void RoundedCosTests(double value, double expected)
 {
     NumberMath.RoundedCos(value).AssertIsEqualTo(expected);
 }