Closed SPalominos closed 4 years ago
Marks some existing methods as deprecated and add new methods to have a more consistent syntax. Changes how the complex number are created. In order to have the same syntax for the creation from cartesian an polar coordinates, the creation :
new Complex(double, double); //For cartesian (x, y) coordinates Complex.createComplexFromRA(double, double); //For polar (r, φ) coordinates
is replaced by
Complex.cartesian(double, double); Complex.polar(double, double);
The method Complex.times() is also replaced by Complex.multiplyBy() in order to have the same syntax as the existing method Complex.divideBy().
Complex.times()
Complex.multiplyBy()
Complex.divideBy()
Marks some existing methods as deprecated and add new methods to have a more consistent syntax. Changes how the complex number are created. In order to have the same syntax for the creation from cartesian an polar coordinates, the creation :
is replaced by
The method
Complex.times()
is also replaced byComplex.multiplyBy()
in order to have the same syntax as the existing methodComplex.divideBy()
.