{"action":"created","issue":{"url":"https://api.github.com/repos/josdejong/mathjs/issues/498","labels_url":"https://api.github.com/repos/josdejong/mathjs/issues/498/labels{/name}","comments_url":"https://api.github.com/repos/josdejong/mathjs/issues/498/comments","events_url":"https://api.github.com/repos/josdejong/mathjs/issues/498/events","html_url":"https://github.com/josdejong/mathjs/issues/498","id":114281823,"number":498,"title":"Possible issue with 2^2^2^2^2","user":{"login":"sonnyk22","id":6744710,"avatar_url":"https://avatars.githubusercontent.com/u/6744710?v=3","gravatar_id":"","url":"https://api.github.com/users/sonnyk22","html_url":"https://github.com/sonnyk22","followers_url":"https://api.github.com/users/sonnyk22/followers","following_url":"https://api.github.com/users/sonnyk22/following{/other_user}","gists_url":"https://api.github.com/users/sonnyk22/gists{/gist_id}","starred_url":"https://api.github.com/users/sonnyk22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonnyk22/subscriptions","organizations_url":"https://api.github.com/users/sonnyk22/orgs","repos_url":"https://api.github.com/users/sonnyk22/repos","events_url":"https://api.github.com/users/sonnyk22/events{/privacy}","received_events_url":"https://api.github.com/users/sonnyk22/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/josdejong/mathjs/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-30T14:36:19Z","updated_at":"2015-10-30T14:53:41Z","closed_at":null,"body":"When I enter 2^2^2^2^2 on the MathJS.org site or pass into the .eval() function, I get the Infinity result back where the answer should be 65536.  \r\n\r\n![calc1](https://cloud.githubusercontent.com/assets/6744710/10848208/22c0e4ae-7ef1-11e5-9346-50081a6175a7.png)\r\n\r\nI verfied this on other calculators as well, and I am getting back the result of 65536.\r\n\r\n![calc2](https://cloud.githubusercontent.com/assets/6744710/10848263/71ab9924-7ef1-11e5-92a5-fb1327a2a50b.png)\r\n\r\nAlso, the answer for 2^2^2^2 should be 256 as well.\r\n\r\n![calc6](https://cloud.githubusercontent.com/assets/6744710/10848318/c510c8e6-7ef1-11e5-849a-b20bf91f4255.png)\r\n\r\nCould this be a possible bug?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/josdejong/mathjs/issues/comments/152546874","html_url":"https://github.com/josdejong/mathjs/issues/498#issuecomment-152546874","issue_url":"https://api.github.com/repos/josdejong/mathjs/issues/498","id":152546874,"user":{"login":"josdejong","id":568626,"avatar_url":"https://avatars.githubusercontent.com/u/568626?v=3","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":"2015-10-30T14:53:41Z","updated_at":"2015-10-30T14:53:41Z","body":"Some applications have the power operator left-to-right associative (such as your calculator and Matlab), others have it right-to-left (such as math.js and Mathematica). \r\n\r\nhttp://www.wolframalpha.com/input/?i=2%5E2%5E2%5E2%5E2\r\n\r\nNot all math/calculator applications have the exact same behavior. In some cases there are different valid behaviors. Apparently the behavior of math.js differs at some points from your favorite calculator. Just [study the docs](http://mathjs.org/docs/expressions/syntax.html) to figure out relevant differences. "}}