#include int main() { using namespace ivl; using namespace std; // scalars double x = 2.0 * sqr(pi); cout << "2 * pi^2 = " << 2 * _[pi] ->* 2 << endl; // expressions cout << "1 / inf = " << 1 / infty << endl; cout << "inf - inf = " << infty - infty << endl; // complex numbers using ivl::math::i; cout << "2 + 3i = " << 2.0 + 3.0 * i << endl; cout << "(1 + i)^2 = " << _[1.0 + i] ->* 2 << endl; cout << "cos(i) = " << cos(i) << endl; cout << "cosh(1) = " << cosh(1.0) << endl; }