| 2 | #include <matplot/matplot.h> |
| 3 | |
| 4 | int main() { |
| 5 | using namespace matplot; |
| 6 | |
| 7 | auto xt = [](double t) { return exp(-t / 10.) * sin(5 * t); }; |
| 8 | auto yt = [](double t) { return exp(-t / 10.) * cos(5 * t); }; |
| 9 | auto zt = [](double t) { return t; }; |
| 10 | fplot3(xt, yt, zt, std::array<double, 2>{-10, 10}); |
| 11 | |
| 12 | show(); |
| 13 | return 0; |
| 14 | } |