MCPcopy Create free account
hub / github.com/alandefreitas/matplotplusplus / main

Function main

examples/line_plot/fplot3/fplot3_2.cpp:4–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include <matplot/matplot.h>
3
4int 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}

Callers

nothing calls this directly

Calls 2

fplot3Function · 0.85
showFunction · 0.85

Tested by

no test coverage detected