threed-beam-fea/ext/eigen-3.3.4/doc/snippets/Cwise_atan.cpp

3 lines
65 B
C++

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