←to practical programming

Exercise "complex"

Calculate, using our cmath class, √-1, √i, ei, eiπ, ii, ln(i), sin(iπ) 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: