{"action":"created","issue":{"url":"https://api.github.com/repos/giovaniceotto/RocketPy/issues/11","repository_url":"https://api.github.com/repos/giovaniceotto/RocketPy","labels_url":"https://api.github.com/repos/giovaniceotto/RocketPy/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/giovaniceotto/RocketPy/issues/11/comments","events_url":"https://api.github.com/repos/giovaniceotto/RocketPy/issues/11/events","html_url":"https://github.com/giovaniceotto/RocketPy/issues/11","id":369060180,"node_id":"MDU6SXNzdWUzNjkwNjAxODA=","number":11,"title":"Extrapolation for Linear Interpolated Function objects not working correctly","user":{"login":"giovaniceotto","id":572483,"node_id":"MDQ6VXNlcjU3MjQ4Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/572483?v=4","gravatar_id":"","url":"https://api.github.com/users/giovaniceotto","html_url":"https://github.com/giovaniceotto","followers_url":"https://api.github.com/users/giovaniceotto/followers","following_url":"https://api.github.com/users/giovaniceotto/following{/other_user}","gists_url":"https://api.github.com/users/giovaniceotto/gists{/gist_id}","starred_url":"https://api.github.com/users/giovaniceotto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giovaniceotto/subscriptions","organizations_url":"https://api.github.com/users/giovaniceotto/orgs","repos_url":"https://api.github.com/users/giovaniceotto/repos","events_url":"https://api.github.com/users/giovaniceotto/events{/privacy}","received_events_url":"https://api.github.com/users/giovaniceotto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"giovaniceotto","id":572483,"node_id":"MDQ6VXNlcjU3MjQ4Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/572483?v=4","gravatar_id":"","url":"https://api.github.com/users/giovaniceotto","html_url":"https://github.com/giovaniceotto","followers_url":"https://api.github.com/users/giovaniceotto/followers","following_url":"https://api.github.com/users/giovaniceotto/following{/other_user}","gists_url":"https://api.github.com/users/giovaniceotto/gists{/gist_id}","starred_url":"https://api.github.com/users/giovaniceotto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giovaniceotto/subscriptions","organizations_url":"https://api.github.com/users/giovaniceotto/orgs","repos_url":"https://api.github.com/users/giovaniceotto/repos","events_url":"https://api.github.com/users/giovaniceotto/events{/privacy}","received_events_url":"https://api.github.com/users/giovaniceotto/received_events","type":"User","site_admin":false},"assignees":[{"login":"giovaniceotto","id":572483,"node_id":"MDQ6VXNlcjU3MjQ4Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/572483?v=4","gravatar_id":"","url":"https://api.github.com/users/giovaniceotto","html_url":"https://github.com/giovaniceotto","followers_url":"https://api.github.com/users/giovaniceotto/followers","following_url":"https://api.github.com/users/giovaniceotto/following{/other_user}","gists_url":"https://api.github.com/users/giovaniceotto/gists{/gist_id}","starred_url":"https://api.github.com/users/giovaniceotto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giovaniceotto/subscriptions","organizations_url":"https://api.github.com/users/giovaniceotto/orgs","repos_url":"https://api.github.com/users/giovaniceotto/repos","events_url":"https://api.github.com/users/giovaniceotto/events{/privacy}","received_events_url":"https://api.github.com/users/giovaniceotto/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-10-11T10:42:27Z","updated_at":"2018-10-11T15:09:14Z","closed_at":null,"author_association":"OWNER","body":"There is an error when naturally extrapolating linear interpolated Function objects.\r\n\r\nHere is the code to reproduce the error:\r\n\r\n```\r\nxData = np.linspace(0, 2, 40)\r\nyData = sum([((-1)**(i))*(xData**(2*i+1))/(2*i+1) for i in range(3)])\r\nF = Function(np.array([xData, yData]).T, interpolation='linear', extrapolation='natural')\r\nFunction(F.getValue).plot(-1,3, forceData=True)\r\nFunction(F.getValueOpt).plot(-1,3, forceData=True)\r\nFunction(F.getValueOpt2).plot(-1,3, forceData=True)\r\n```\r\n\r\nThe getValueOpt method throws an error, while the getValue method gives a wrong results. The getValueOpt2 is the only one wit a correct implementation."},"comment":{"url":"https://api.github.com/repos/giovaniceotto/RocketPy/issues/comments/428992300","html_url":"https://github.com/giovaniceotto/RocketPy/issues/11#issuecomment-428992300","issue_url":"https://api.github.com/repos/giovaniceotto/RocketPy/issues/11","id":428992300,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODk5MjMwMA==","user":{"login":"giovaniceotto","id":572483,"node_id":"MDQ6VXNlcjU3MjQ4Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/572483?v=4","gravatar_id":"","url":"https://api.github.com/users/giovaniceotto","html_url":"https://github.com/giovaniceotto","followers_url":"https://api.github.com/users/giovaniceotto/followers","following_url":"https://api.github.com/users/giovaniceotto/following{/other_user}","gists_url":"https://api.github.com/users/giovaniceotto/gists{/gist_id}","starred_url":"https://api.github.com/users/giovaniceotto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giovaniceotto/subscriptions","organizations_url":"https://api.github.com/users/giovaniceotto/orgs","repos_url":"https://api.github.com/users/giovaniceotto/repos","events_url":"https://api.github.com/users/giovaniceotto/events{/privacy}","received_events_url":"https://api.github.com/users/giovaniceotto/received_events","type":"User","site_admin":false},"created_at":"2018-10-11T15:09:14Z","updated_at":"2018-10-11T15:09:14Z","author_association":"OWNER","body":"Working on this in the [function_arithmetic_operations](https://github.com/giovaniceotto/RocketPy/tree/functions_arithmetic_operations) branch."}}
{"actor":{"display_login":"giovaniceotto"}}