acos [MTL Home] Programmers Guide
  Contents | Index |  Search 


Category:intervals,math Component type:function
Prototype
template <class Tnum>
interval<Tnum> acos(const interval<Tnum>& x) ;
Description
Computes the arccossin of an interval. If the lower bound of the interval is less than -1.0 or the upper bound is greater than 1.0, it will print to std error :
ArcSin argument out of range
and will return NaN.
 acos(x) = [acos(inf(x)),acos(sup(x))]
 
Definition
interval.cct
Preconditions
Complexity
Example
In mathfunc.cc:
  cout << "A:" << A << endl << endl;
  cout << "Square     :" << sqr(A) << endl;
  cout << "Square Root:" << sqrt(A) << endl;
  cout << "Tangent    :" << tan(A) << endl;
  cout << "ArcTangent :" << atan(A) << endl;
  cout << "Sine       :" << sin(A) << endl;
  cout << "Cosine     :" << cos(A) << endl;
  cout << "Arcsine    :" << asin(A) << endl;
  cout << "Arcosine   :" << acos(A) << endl;
  cout << "Log        :" << log(A) << endl;
  cout << "Ln         :" << ln(A) << endl;
  cout << "Power (A^A):" << pow(A,A) << endl;
  cout << "Exponent   :" << exp(A) << endl;

Notes
See also

[MTL Home] Copyright © 1998,1999 University of Notre Dame. All Rights Reserved.