{"action":"created","issue":{"url":"https://api.github.com/repos/ftsf/picolove/issues/3","labels_url":"https://api.github.com/repos/ftsf/picolove/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/ftsf/picolove/issues/3/comments","events_url":"https://api.github.com/repos/ftsf/picolove/issues/3/events","html_url":"https://github.com/ftsf/picolove/issues/3","id":106448098,"number":3,"title":"More maths differences ","user":{"login":"gingerbeardman","id":49612,"avatar_url":"https://avatars.githubusercontent.com/u/49612?v=3","gravatar_id":"","url":"https://api.github.com/users/gingerbeardman","html_url":"https://github.com/gingerbeardman","followers_url":"https://api.github.com/users/gingerbeardman/followers","following_url":"https://api.github.com/users/gingerbeardman/following{/other_user}","gists_url":"https://api.github.com/users/gingerbeardman/gists{/gist_id}","starred_url":"https://api.github.com/users/gingerbeardman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gingerbeardman/subscriptions","organizations_url":"https://api.github.com/users/gingerbeardman/orgs","repos_url":"https://api.github.com/users/gingerbeardman/repos","events_url":"https://api.github.com/users/gingerbeardman/events{/privacy}","received_events_url":"https://api.github.com/users/gingerbeardman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-14T23:34:51Z","updated_at":"2015-09-15T08:15:38Z","closed_at":null,"body":"Contrast the following cart in pico8 and picolove\r\n\r\nhttp://www.lexaloffle.com/bbs/?tid=2464\r\n\r\n![14153 p8](https://cloud.githubusercontent.com/assets/49612/9864426/69098b06-5b41-11e5-843f-1381ba2ee0d8.png)\r\n\r\nIt's set to tween using ```ease_in_out_cubic```which gets great results in pico8, but bad results in picolove. Other easing functions are also affected. \r\n\r\n```lua\r\nfunction ease_in_out_cubic(t,b,c,d)  -- cubic easing in/out - acceleration until halfway, then deceleration\r\n  t /= d/2\r\n  if (t < 1) return c/2*t*t*t + b\r\n  t -= 2\r\n  return c/2*(t*t*t + 2) + b\r\nend\r\n```\r\nI've ruled out short operators by manually expanding them. No difference.\r\n\r\nPerhaps an issue with expression parsing?\r\n"},"comment":{"url":"https://api.github.com/repos/ftsf/picolove/issues/comments/140316571","html_url":"https://github.com/ftsf/picolove/issues/3#issuecomment-140316571","issue_url":"https://api.github.com/repos/ftsf/picolove/issues/3","id":140316571,"user":{"login":"ftsf","id":141492,"avatar_url":"https://avatars.githubusercontent.com/u/141492?v=3","gravatar_id":"","url":"https://api.github.com/users/ftsf","html_url":"https://github.com/ftsf","followers_url":"https://api.github.com/users/ftsf/followers","following_url":"https://api.github.com/users/ftsf/following{/other_user}","gists_url":"https://api.github.com/users/ftsf/gists{/gist_id}","starred_url":"https://api.github.com/users/ftsf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ftsf/subscriptions","organizations_url":"https://api.github.com/users/ftsf/orgs","repos_url":"https://api.github.com/users/ftsf/repos","events_url":"https://api.github.com/users/ftsf/events{/privacy}","received_events_url":"https://api.github.com/users/ftsf/received_events","type":"User","site_admin":false},"created_at":"2015-09-15T08:15:38Z","updated_at":"2015-09-15T08:15:38Z","body":"Thanks, good find!\r\n\r\nThe problem is with `t /= d/2`\r\n\r\nThis expands to `t = t / d/2` when it should expand to `t = t / (d/2)`"}}