You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working with Complex numbers there now helper methods for dealing with NaN and Infinity values. For example with double it is possible check is value is NaN or Infinity
API
This is an example of how the API could look like.
I'm almost sure that only one sane way to return NaN is to return (NaN, NaN). For Infinity is more likely personal opinion. I think that current implementation of Complex really model just single Infinity which happens to be represented in different ways. so I propose (+Inf, +Inf)
Overview
When working with Complex numbers there now helper methods for dealing with NaN and Infinity values. For example with
double
it is possible check is value isNaN
orInfinity
API
This is an example of how the API could look like.
/cc: @tannergooding
The text was updated successfully, but these errors were encountered: