{"action":"created","issue":{"url":"https://api.github.com/repos/josdejong/mathjs/issues/930","repository_url":"https://api.github.com/repos/josdejong/mathjs","labels_url":"https://api.github.com/repos/josdejong/mathjs/issues/930/labels{/name}","comments_url":"https://api.github.com/repos/josdejong/mathjs/issues/930/comments","events_url":"https://api.github.com/repos/josdejong/mathjs/issues/930/events","html_url":"https://github.com/josdejong/mathjs/issues/930","id":251676048,"number":930,"title":"isNaN for compexes. ","user":{"login":"balagge","id":13258533,"avatar_url":"https://avatars0.githubusercontent.com/u/13258533?v=4","gravatar_id":"","url":"https://api.github.com/users/balagge","html_url":"https://github.com/balagge","followers_url":"https://api.github.com/users/balagge/followers","following_url":"https://api.github.com/users/balagge/following{/other_user}","gists_url":"https://api.github.com/users/balagge/gists{/gist_id}","starred_url":"https://api.github.com/users/balagge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balagge/subscriptions","organizations_url":"https://api.github.com/users/balagge/orgs","repos_url":"https://api.github.com/users/balagge/repos","events_url":"https://api.github.com/users/balagge/events{/privacy}","received_events_url":"https://api.github.com/users/balagge/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-08-21T14:33:41Z","updated_at":"2017-08-21T18:21:28Z","closed_at":null,"body":"I do not know if this is a bug or some intended behavior, but I guess it is a bug.\r\nThe utility function `isNaN()` works for Complexes:\r\n```\r\n'Complex': function (x) {\r\n      return Number.isNaN(x.re) && Number.isNaN(x.im);\r\n    },\r\n```\r\n\r\nHere, the `&&` should be `||`.\r\n\r\nBetter still, complex.js offers an `isNaN()` method (which returns `isNaN(this['re']) || isNaN(this['im'])`) btw.\r\n\r\nSo it could also be:\r\n\r\n```\r\n'Complex': function (x) {return x.isNaN();}\r\n```"},"comment":{"url":"https://api.github.com/repos/josdejong/mathjs/issues/comments/323816280","html_url":"https://github.com/josdejong/mathjs/issues/930#issuecomment-323816280","issue_url":"https://api.github.com/repos/josdejong/mathjs/issues/930","id":323816280,"user":{"login":"josdejong","id":568626,"avatar_url":"https://avatars1.githubusercontent.com/u/568626?v=4","gravatar_id":"","url":"https://api.github.com/users/josdejong","html_url":"https://github.com/josdejong","followers_url":"https://api.github.com/users/josdejong/followers","following_url":"https://api.github.com/users/josdejong/following{/other_user}","gists_url":"https://api.github.com/users/josdejong/gists{/gist_id}","starred_url":"https://api.github.com/users/josdejong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josdejong/subscriptions","organizations_url":"https://api.github.com/users/josdejong/orgs","repos_url":"https://api.github.com/users/josdejong/repos","events_url":"https://api.github.com/users/josdejong/events{/privacy}","received_events_url":"https://api.github.com/users/josdejong/received_events","type":"User","site_admin":false},"created_at":"2017-08-21T18:21:28Z","updated_at":"2017-08-21T18:21:28Z","body":"Thanks for reporting, this is indeed a bug. It's fixed now in the `develop` branch."}}
{"actor":{"display_login":"josdejong"}}