threed-beam-fea/ext/eigen-3.2.7/doc/snippets/Cwise_tan.cpp

3 lines
58 B
C++

Array3d v(M_PI, M_PI/2, M_PI/3);
cout << v.tan() << endl;