←to practical programming

Exercise "math"

  1. Calculate (using System.Math and/or our cmath classes): √2, ei, eiπ, ii, sin(iπ) and check that the results are correct.
  2. Extra: add to our cmath-class the hyperbolic functions sinh, cosh and the functions sqrt and abs—of complex argument—and calculate sinh(i), cosh(i), sqrt(-1), sqrt(i). Check that the results are correct.

Hints: