←to practical programming

Exercise "complex"

Calculate, using our cmath class, -1, i, ei, e, ii, ln(i), sin() and compare with manually calculated results.

Extra: add to our cmath-class the hyperbolic functions sinh, cosh of complex argument—and calculate sinh(i), cosh(i). Check that the results are correct.

Hints: