Re: [numbers] Complex missing some C++ standards

2019-12-30 Thread Alex Herbert
On Mon, 30 Dec 2019, 02:23 Gilles Sadowski, wrote: > Hi. > > Le dim. 29 déc. 2019 à 23:25, Alex Herbert a > écrit : > > > > I’ve dropped the static equals methods and reciprocal and pushed the > updated class with MathJax. > > > > I put MathJax in whenever possible. This may be a bit too much. T

Re: [numbers] Complex missing some C++ standards

2019-12-29 Thread Gilles Sadowski
Hi. Le dim. 29 déc. 2019 à 23:25, Alex Herbert a écrit : > > I’ve dropped the static equals methods and reciprocal and pushed the updated > class with MathJax. > > I put MathJax in whenever possible. This may be a bit too much. The rendered > javadoc looks good but the javadoc rendered by my ID

Re: [numbers] Complex missing some C++ standards

2019-12-29 Thread Alex Herbert
I’ve dropped the static equals methods and reciprocal and pushed the updated class with MathJax. I put MathJax in whenever possible. This may be a bit too much. The rendered javadoc looks good but the javadoc rendered by my IDE without MathJax support can be very unreadable. Have a look at th

Re: [numbers] Complex missing some C++ standards

2019-12-28 Thread Gilles Sadowski
Hi. 2019-12-29 1:15 UTC+01:00, Alex Herbert : > > >> On 21 Dec 2019, at 11:42, Gilles Sadowski wrote: >> >>> ... >> >> So, would you suggest that no "Number"-like class should ever throw >> an exception (but instead return the equivalent of "Double.NaN”)? > > Yes. As it was the method could throw

Re: [numbers] Complex missing some C++ standards

2019-12-28 Thread Alex Herbert
> On 21 Dec 2019, at 11:42, Gilles Sadowski wrote: > >> ... > > So, would you suggest that no "Number"-like class should ever throw > an exception (but instead return the equivalent of "Double.NaN”)? Yes. As it was the method could throw for some invalid input and not others. This is incons

Re: [numbers] Complex missing some C++ standards

2019-12-21 Thread Gilles Sadowski
Hi. 2019-12-21 1:07 UTC+01:00, Alex Herbert : > > >> On 20 Dec 2019, at 23:45, Gilles Sadowski wrote: >> >> Le sam. 21 déc. 2019 à 00:05, Alex Herbert > > a écrit : >>> >>> Looking at the c++ standard [1] we are missing this function: >>> >>> norm() = a^2 + b^2 >>

Re: [numbers] Complex missing some C++ standards

2019-12-20 Thread Alex Herbert
> On 20 Dec 2019, at 23:45, Gilles Sadowski wrote: > > Le sam. 21 déc. 2019 à 00:05, Alex Herbert > a écrit : >> >> Looking at the c++ standard [1] we are missing this function: >> >> norm() = a^2 + b^2 >> >> The field norm of the complex, or the square of t

Re: [numbers] Complex missing some C++ standards

2019-12-20 Thread Gilles Sadowski
Le sam. 21 déc. 2019 à 00:05, Alex Herbert a écrit : > > Looking at the c++ standard [1] we are missing this function: > > norm() = a^2 + b^2 > > The field norm of the complex, or the square of the absolute. An example on > C++ reference states that this is faster for comparing magnitudes for ran