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

Function get_u

examples/vector_fields/quiver3/quiver3_1.cpp:26–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26matplot::vector_2d get_u() {
27 matplot::vector_2d x = {
28 {-0.688247, -0.620174, -0.534522, -0.428571, -0.301511, -0.156174, 0,
29 0.156174, 0.301511, 0.428571, 0.534522, 0.620174, 0.688247},
30 {-0.744208, -0.680414, -0.596285, -0.486664, -0.348155, -0.182574, 0,
31 0.182574, 0.348155, 0.486664, 0.596285, 0.680414, 0.744208},
32 {-0.801784, -0.745356, -0.666667, -0.557086, -0.408248, -0.218218, 0,
33 0.218218, 0.408248, 0.557086, 0.666667, 0.745356, 0.801784},
34 {-0.857143, -0.811107, -0.742781, -0.639602, -0.485071, -0.267261, 0,
35 0.267261, 0.485071, 0.639602, 0.742781, 0.811107, 0.857143},
36 {-0.904534, -0.870388, -0.816497, -0.727607, -0.57735, -0.333333, 0,
37 0.333333, 0.57735, 0.727607, 0.816497, 0.870388, 0.904534},
38 {-0.937043, -0.912871, -0.872872, -0.801784, -0.666667, -0.408248, 0,
39 0.408248, 0.666667, 0.801784, 0.872872, 0.912871, 0.937043},
40 {-0.948683, -0.928477, -0.894427, -0.83205, -0.707107, -0.447214, -0,
41 0.447214, 0.707107, 0.83205, 0.894427, 0.928477, 0.948683},
42 {-0.937043, -0.912871, -0.872872, -0.801784, -0.666667, -0.408248, -0,
43 0.408248, 0.666667, 0.801784, 0.872872, 0.912871, 0.937043},
44 {-0.904534, -0.870388, -0.816497, -0.727607, -0.57735, -0.333333, -0,
45 0.333333, 0.57735, 0.727607, 0.816497, 0.870388, 0.904534},
46 {-0.857143, -0.811107, -0.742781, -0.639602, -0.485071, -0.267261, -0,
47 0.267261, 0.485071, 0.639602, 0.742781, 0.811107, 0.857143},
48 {-0.801784, -0.745356, -0.666667, -0.557086, -0.408248, -0.218218, -0,
49 0.218218, 0.408248, 0.557086, 0.666667, 0.745356, 0.801784},
50 {-0.744208, -0.680414, -0.596285, -0.486664, -0.348155, -0.182574, -0,
51 0.182574, 0.348155, 0.486664, 0.596285, 0.680414, 0.744208},
52 {-0.688247, -0.620174, -0.534522, -0.428571, -0.301511, -0.156174, -0,
53 0.156174, 0.301511, 0.428571, 0.534522, 0.620174, 0.688247}};
54 return x;
55}
56
57matplot::vector_2d get_v() {
58 matplot::vector_2d x = {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected