{"action":"created","issue":{"url":"https://api.github.com/repos/hausen/math.diff.js/issues/3","labels_url":"https://api.github.com/repos/hausen/math.diff.js/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/hausen/math.diff.js/issues/3/comments","events_url":"https://api.github.com/repos/hausen/math.diff.js/issues/3/events","html_url":"https://github.com/hausen/math.diff.js/issues/3","id":122365642,"number":3,"title":"Parentheses don't work as expected","user":{"login":"owenversteeg","id":1836017,"avatar_url":"https://avatars.githubusercontent.com/u/1836017?v=3","gravatar_id":"","url":"https://api.github.com/users/owenversteeg","html_url":"https://github.com/owenversteeg","followers_url":"https://api.github.com/users/owenversteeg/followers","following_url":"https://api.github.com/users/owenversteeg/following{/other_user}","gists_url":"https://api.github.com/users/owenversteeg/gists{/gist_id}","starred_url":"https://api.github.com/users/owenversteeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owenversteeg/subscriptions","organizations_url":"https://api.github.com/users/owenversteeg/orgs","repos_url":"https://api.github.com/users/owenversteeg/repos","events_url":"https://api.github.com/users/owenversteeg/events{/privacy}","received_events_url":"https://api.github.com/users/owenversteeg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-15T21:03:14Z","updated_at":"2015-12-16T14:21:17Z","closed_at":null,"body":"As the title says. The demo version works with version 1.7.0, so somewhere between 2.4.0 and 1.7.0 math.diff.js broke. I'd assume somewhere around the 2.0 release.\r\n\r\nSimple things work, for example: ``math.diff(math.parse('e^x'), 'x').toString()``\r\n\r\nSlightly more complex things, however, break: ``math.diff(math.parse('e^(2*x)'), 'x').toString()`` returns \"0\".\r\n\r\n[edit] After realizing that this is only because of parentheses and the addition of ParenthesisNode I renamed the title."},"comment":{"url":"https://api.github.com/repos/hausen/math.diff.js/issues/comments/165123119","html_url":"https://github.com/hausen/math.diff.js/issues/3#issuecomment-165123119","issue_url":"https://api.github.com/repos/hausen/math.diff.js/issues/3","id":165123119,"user":{"login":"owenversteeg","id":1836017,"avatar_url":"https://avatars.githubusercontent.com/u/1836017?v=3","gravatar_id":"","url":"https://api.github.com/users/owenversteeg","html_url":"https://github.com/owenversteeg","followers_url":"https://api.github.com/users/owenversteeg/followers","following_url":"https://api.github.com/users/owenversteeg/following{/other_user}","gists_url":"https://api.github.com/users/owenversteeg/gists{/gist_id}","starred_url":"https://api.github.com/users/owenversteeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owenversteeg/subscriptions","organizations_url":"https://api.github.com/users/owenversteeg/orgs","repos_url":"https://api.github.com/users/owenversteeg/repos","events_url":"https://api.github.com/users/owenversteeg/events{/privacy}","received_events_url":"https://api.github.com/users/owenversteeg/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T14:21:17Z","updated_at":"2015-12-16T14:21:17Z","body":"Oh, never mind, for some reason it still doesn't work. With the latest version (2.5.0) of Math.js and the latest math.diff.js, ``math.diff(math.parse('e^(2*x)'), 'x').toString()`` still returns 0."}}