COSC-4P80-Assignment-2/lib/eigen-3.4.0/doc/snippets/Cwise_asin.cpp

3 lines
55 B
C++

Array3d v(0, sqrt(2.)/2, 1);
cout << v.asin() << endl;