mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-27 07:29:52 +08:00
8 lines
272 B
C++
8 lines
272 B
C++
ArrayXXf table(10, 4);
|
|
table.col(0) = ArrayXf::LinSpaced(10, 0, 90);
|
|
table.col(1) = M_PI / 180 * table.col(0);
|
|
table.col(2) = table.col(1).sin();
|
|
table.col(3) = table.col(1).cos();
|
|
std::cout << " Degrees Radians Sine Cosine\n";
|
|
std::cout << table << std::endl;
|