Add documentation and very simple test for array atan(), part 2

(files I forget in the previous commit).
This commit is contained in:
Jitse Niesen 2014-06-19 15:12:33 +01:00
parent 55453c51e8
commit de150b1e14
2 changed files with 3 additions and 0 deletions

View File

@ -0,0 +1,2 @@
ArrayXd v = ArrayXd::LinSpaced(5,0,1);
cout << v.atan() << endl;

View File

@ -178,6 +178,7 @@ template<typename ArrayType> void array_real(const ArrayType& m)
VERIFY_IS_APPROX(m1.asin(), asin(m1));
VERIFY_IS_APPROX(m1.acos(), acos(m1));
VERIFY_IS_APPROX(m1.tan(), tan(m1));
VERIFY_IS_APPROX(m1.atan(), atan(m1));
VERIFY_IS_APPROX(cos(m1+RealScalar(3)*m2), cos((m1+RealScalar(3)*m2).eval()));