Pythonの`Decimal`は高精度だが、メモリ消費が多く、パフォーマンスが低下するため、精度が重要でない場合は`float`を推奨。 複素数は`complex`クラスで扱い、標準の数学関数の代わりに`cmath`モジュールを使用して計算を行う。 `bool`クラスは`int`のサブクラスで ...
Complex number is a number with combination of real and imaginary part. It is denoted by a + ib where a is the real part of the number and b is the imaginary part. i is the representation of imaginary ...