Граф коммитов

6 Коммитов

Автор SHA1 Сообщение Дата
Stephan T. Lavavej 65d98ffaba
Fix complex's Sufficient Additional Overloads (#791)
* Fixes GH-785, which reported that `arg(real)` was implemented as `return 0;`
but `arg(complex)` does actual work for complex numbers with
zero imaginary parts.

* `norm` should upgrade to `double` before squaring. The difference
is observable because `double`'s range is vast.

* `conj` and `proj` should return `complex`.

* `conj(real)` should behave exactly like `conj(complex)`, returning
an imaginary part of negative zero. The difference is technically
observable.

* `proj(real)` should behave exactly like `proj(complex)`, mapping
negative infinity to positive infinity.

* Test that float/double/long double aren't "upgraded".

* Tests pass for Clang, emit warnings for MSVC.
2020-05-05 13:36:07 -07:00
Daniil Goncharov 2bc5f9bc71
P0415R1 constexpr For <complex> (Again) (#367)
Fixes #16 and fixes #190.

Co-authored-by: Curtis.Bezault <curtbezault@gmail.com>
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2020-04-30 02:13:55 -07:00
statementreply 06dc0eb841
Fix formula in complex asinh, acosh and acos. (#401) 2020-02-05 22:55:14 -08:00
Daniil Goncharov b73a0b19a2 <complex> fix pow overload (#383)
Fixes #325.
2020-01-24 11:58:29 -08:00
Michael Schellenberger Costa 3b0a1c9cfa Consistently use "int = 0" SFINAE (#226)
Fixes #187.

Add TRANSITION comments for #248 and #249, blocked by compiler bugs.

Add `_Enabled` names. When we don't have `enable_if_t`, this makes the
template parameter's purpose clearer. When we do have `enable_if_t`
but without `= 0`, this makes it somewhat clearer that we haven't
forgotten the default argument (it's simply elsewhere).
2019-11-01 18:15:37 -07:00
Stephan T. Lavavej 219514876e Initial commit. 2019-09-04 15:57:56 -07:00