diff options
Diffstat (limited to 'example.cpp')
-rw-r--r-- | example.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/example.cpp b/example.cpp index e72d65b..3a00f58 100644 --- a/example.cpp +++ b/example.cpp @@ -21,6 +21,8 @@ int main(int argc, char *argv[]) { std::cout << "u * v = " << u * v << std::endl; std::cout << std::endl; + u += v; + // three dimensional vectors std::cout << "three dimensional (double) vectors" << std::endl; @@ -37,6 +39,8 @@ int main(int argc, char *argv[]) { std::cout << "spherical(a) = " << a.spherical() << std::endl; std::cout << std::endl; + a -= b; + // two dimensional vector std::cout << "two dimensional (complex) vectors" << std::endl; @@ -52,5 +56,7 @@ int main(int argc, char *argv[]) { std::cout << "polar(j) = " << j.polar() << std::endl; std::cout << std::endl; + j *= 10; + return 0; } |