Exemplo n.º 1
0
 /// <summary>
 /// Computes the cosine of a double double value.
 /// </summary>
 /// <param name="x">The argument of the cosine.</param>
 /// <returns>The value of cos(x).</returns>
 /// <remarks><para>Unlike <see cref="MoreMath.Cos(double)"/>, this function does not currenly do range reduction with a value
 /// of pi even more accurate than <see cref="DoubleDouble.Pi"/>. Therefore, beyond the first few periods, results can slowly
 /// loose accuracy, particularly near zeros, at the rate of about one digit per order of magnitude of the argument.</para></remarks>
 public static DoubleDouble Cos(DoubleDouble x)
 {
     return(DoubleDoubleMath.Cos(x));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Computes the sine of a double double value.
 /// </summary>
 /// <param name="x">The argument of the sine.</param>
 /// <returns>The value of sin(x).</returns>
 /// <remarks><para>Unlike <see cref="MoreMath.Sin(double)"/>, this function does not currenly do range reduction with a value
 /// of pi even more accurate than <see cref="DoubleDouble.Pi"/>. Therefore, beyond the first few periods, results can slowly
 /// loose accuracy, particularly near zeros, at the rate of about one digit per order of magnitude of the argument.</para></remarks>
 public static DoubleDouble Sin(DoubleDouble x)
 {
     return(DoubleDoubleMath.Sin(x));
 }