{"action":"created","comment":{"url":"https://api.github.com/repos/radusqrt/help-the-kids/pulls/comments/177736892","pull_request_review_id":107661286,"id":177736892,"diff_hunk":"@@ -0,0 +1,32 @@\n+function [x i] = BisectionMethod(f, a, b, tol, max_iter)\n+\tfor i = 1 : max_iter\n+\t\tx = (a + b) / 2;\n+\t\tfact = feval(f, a) * feval(f, x);\n+\n+\t\t% if the product is negative, the root is in \n+\t\t% between a and m\n+\t\tif fact < 0\n+\t\t\tb = x;\n+\n+\t\t% if the product is negative, the root is in \n+\t\t% between b and x\n+\t\telseif fact > 0\n+\t\t\ta = x;\n+\n+\t\t% if the product is null, the root is found\n+\t\telse\n+\t\t\treturn;\n+\t\tendif\n+\n+\t\t% if the root is unknown, the new_m is calculated\n+\t\tnew_x = (a + b) / 2;\n+\n+\t\t% if the relative absolute error is lower than tolerance,\n+\t\t% bisection method reached convergence limit","path":"MN/Algoritmi/Metode-Iterative/Ecuatii-Neliniare/bisection_method.m","position":25,"original_position":25,"commit_id":"c56c411163e87af9697e98816a5b3043ed973145","original_commit_id":"c56c411163e87af9697e98816a5b3043ed973145","user":{"login":"radusqrt","id":8861522,"avatar_url":"https://avatars2.githubusercontent.com/u/8861522?v=4","gravatar_id":"","url":"https://api.github.com/users/radusqrt","html_url":"https://github.com/radusqrt","followers_url":"https://api.github.com/users/radusqrt/followers","following_url":"https://api.github.com/users/radusqrt/following{/other_user}","gists_url":"https://api.github.com/users/radusqrt/gists{/gist_id}","starred_url":"https://api.github.com/users/radusqrt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radusqrt/subscriptions","organizations_url":"https://api.github.com/users/radusqrt/orgs","repos_url":"https://api.github.com/users/radusqrt/repos","events_url":"https://api.github.com/users/radusqrt/events{/privacy}","received_events_url":"https://api.github.com/users/radusqrt/received_events","type":"User","site_admin":false},"body":"then the bisection method","created_at":"2018-03-28T12:49:16Z","updated_at":"2018-03-28T12:51:04Z","html_url":"https://github.com/radusqrt/help-the-kids/pull/16#discussion_r177736892","pull_request_url":"https://api.github.com/repos/radusqrt/help-the-kids/pulls/16","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/radusqrt/help-the-kids/pulls/comments/177736892"},"html":{"href":"https://github.com/radusqrt/help-the-kids/pull/16#discussion_r177736892"},"pull_request":{"href":"https://api.github.com/repos/radusqrt/help-the-kids/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/radusqrt/help-the-kids/pulls/16","id":177456191,"html_url":"https://github.com/radusqrt/help-the-kids/pull/16","diff_url":"https://github.com/radusqrt/help-the-kids/pull/16.diff","patch_url":"https://github.com/radusqrt/help-the-kids/pull/16.patch","issue_url":"https://api.github.com/repos/radusqrt/help-the-kids/issues/16","number":16,"state":"open","locked":false,"title":"Metoda Bisectiei","user":{"login":"missCleare","id":37804247,"avatar_url":"https://avatars2.githubusercontent.com/u/37804247?v=4","gravatar_id":"","url":"https://api.github.com/users/missCleare","html_url":"https://github.com/missCleare","followers_url":"https://api.github.com/users/missCleare/followers","following_url":"https://api.github.com/users/missCleare/following{/other_user}","gists_url":"https://api.github.com/users/missCleare/gists{/gist_id}","starred_url":"https://api.github.com/users/missCleare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/missCleare/subscriptions","organizations_url":"https://api.github.com/users/missCleare/orgs","repos_url":"https://api.github.com/users/missCleare/repos","events_url":"https://api.github.com/users/missCleare/events{/privacy}","received_events_url":"https://api.github.com/users/missCleare/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-26T14:02:04Z","updated_at":"2018-03-28T12:51:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"296ec2181b79c0cf5731d50e8f167eb78138f2cd","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/radusqrt/help-the-kids/pulls/16/commits","review_comments_url":"https://api.github.com/repos/radusqrt/help-the-kids/pulls/16/comments","review_comment_url":"https://api.github.com/repos/radusqrt/help-the-kids/pulls/comments{/number}","comments_url":"https://api.github.com/repos/radusqrt/help-the-kids/issues/16/comments","statuses_url":"https://api.github.com/repos/radusqrt/help-the-kids/statuses/c56c411163e87af9697e98816a5b3043ed973145","head":{"label":"missCleare:master","ref":"master","sha":"c56c411163e87af9697e98816a5b3043ed973145","user":{"login":"missCleare","id":37804247,"avatar_url":"https://avatars2.githubusercontent.com/u/37804247?v=4","gravatar_id":"","url":"https://api.github.com/users/missCleare","html_url":"https://github.com/missCleare","followers_url":"https://api.github.com/users/missCleare/followers","following_url":"https://api.github.com/users/missCleare/following{/other_user}","gists_url":"https://api.github.com/users/missCleare/gists{/gist_id}","starred_url":"https://api.github.com/users/missCleare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/missCleare/subscriptions","organizations_url":"https://api.github.com/users/missCleare/orgs","repos_url":"https://api.github.com/users/missCleare/repos","events_url":"https://api.github.com/users/missCleare/events{/privacy}","received_events_url":"https://api.github.com/users/missCleare/received_events","type":"User","site_admin":false},"repo":{"id":126837213,"name":"help-the-kids","full_name":"missCleare/help-the-kids","owner":{"login":"missCleare","id":37804247,"avatar_url":"https://avatars2.githubusercontent.com/u/37804247?v=4","gravatar_id":"","url":"https://api.github.com/users/missCleare","html_url":"https://github.com/missCleare","followers_url":"https://api.github.com/users/missCleare/followers","following_url":"https://api.github.com/users/missCleare/following{/other_user}","gists_url":"https://api.github.com/users/missCleare/gists{/gist_id}","starred_url":"https://api.github.com/users/missCleare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/missCleare/subscriptions","organizations_url":"https://api.github.com/users/missCleare/orgs","repos_url":"https://api.github.com/users/missCleare/repos","events_url":"https://api.github.com/users/missCleare/events{/privacy}","received_events_url":"https://api.github.com/users/missCleare/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/missCleare/help-the-kids","description":"Repository with the purpose of helping the young ones in need on their path to achieving the programmer wisdom.","fork":true,"url":"https://api.github.com/repos/missCleare/help-the-kids","forks_url":"https://api.github.com/repos/missCleare/help-the-kids/forks","keys_url":"https://api.github.com/repos/missCleare/help-the-kids/keys{/key_id}","collaborators_url":"https://api.github.com/repos/missCleare/help-the-kids/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/missCleare/help-the-kids/teams","hooks_url":"https://api.github.com/repos/missCleare/help-the-kids/hooks","issue_events_url":"https://api.github.com/repos/missCleare/help-the-kids/issues/events{/number}","events_url":"https://api.github.com/repos/missCleare/help-the-kids/events","assignees_url":"https://api.github.com/repos/missCleare/help-the-kids/assignees{/user}","branches_url":"https://api.github.com/repos/missCleare/help-the-kids/branches{/branch}","tags_url":"https://api.github.com/repos/missCleare/help-the-kids/tags","blobs_url":"https://api.github.com/repos/missCleare/help-the-kids/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/missCleare/help-the-kids/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/missCleare/help-the-kids/git/refs{/sha}","trees_url":"https://api.github.com/repos/missCleare/help-the-kids/git/trees{/sha}","statuses_url":"https://api.github.com/repos/missCleare/help-the-kids/statuses/{sha}","languages_url":"https://api.github.com/repos/missCleare/help-the-kids/languages","stargazers_url":"https://api.github.com/repos/missCleare/help-the-kids/stargazers","contributors_url":"https://api.github.com/repos/missCleare/help-the-kids/contributors","subscribers_url":"https://api.github.com/repos/missCleare/help-the-kids/subscribers","subscription_url":"https://api.github.com/repos/missCleare/help-the-kids/subscription","commits_url":"https://api.github.com/repos/missCleare/help-the-kids/commits{/sha}","git_commits_url":"https://api.github.com/repos/missCleare/help-the-kids/git/commits{/sha}","comments_url":"https://api.github.com/repos/missCleare/help-the-kids/comments{/number}","issue_comment_url":"https://api.github.com/repos/missCleare/help-the-kids/issues/comments{/number}","contents_url":"https://api.github.com/repos/missCleare/help-the-kids/contents/{+path}","compare_url":"https://api.github.com/repos/missCleare/help-the-kids/compare/{base}...{head}","merges_url":"https://api.github.com/repos/missCleare/help-the-kids/merges","archive_url":"https://api.github.com/repos/missCleare/help-the-kids/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/missCleare/help-the-kids/downloads","issues_url":"https://api.github.com/repos/missCleare/help-the-kids/issues{/number}","pulls_url":"https://api.github.com/repos/missCleare/help-the-kids/pulls{/number}","milestones_url":"https://api.github.com/repos/missCleare/help-the-kids/milestones{/number}","notifications_url":"https://api.github.com/repos/missCleare/help-the-kids/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/missCleare/help-the-kids/labels{/name}","releases_url":"https://api.github.com/repos/missCleare/help-the-kids/releases{/id}","deployments_url":"https://api.github.com/repos/missCleare/help-the-kids/deployments","created_at":"2018-03-26T13:58:42Z","updated_at":"2018-03-27T20:28:54Z","pushed_at":"2018-03-27T20:28:53Z","git_url":"git://github.com/missCleare/help-the-kids.git","ssh_url":"git@github.com:missCleare/help-the-kids.git","clone_url":"https://github.com/missCleare/help-the-kids.git","svn_url":"https://github.com/missCleare/help-the-kids","homepage":null,"size":120,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"radusqrt:master","ref":"master","sha":"0b79da2550c0365cf104fc6918f5c7fbe334e80d","user":{"login":"radusqrt","id":8861522,"avatar_url":"https://avatars2.githubusercontent.com/u/8861522?v=4","gravatar_id":"","url":"https://api.github.com/users/radusqrt","html_url":"https://github.com/radusqrt","followers_url":"https://api.github.com/users/radusqrt/followers","following_url":"https://api.github.com/users/radusqrt/following{/other_user}","gists_url":"https://api.github.com/users/radusqrt/gists{/gist_id}","starred_url":"https://api.github.com/users/radusqrt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radusqrt/subscriptions","organizations_url":"https://api.github.com/users/radusqrt/orgs","repos_url":"https://api.github.com/users/radusqrt/repos","events_url":"https://api.github.com/users/radusqrt/events{/privacy}","received_events_url":"https://api.github.com/users/radusqrt/received_events","type":"User","site_admin":false},"repo":{"id":111743400,"name":"help-the-kids","full_name":"radusqrt/help-the-kids","owner":{"login":"radusqrt","id":8861522,"avatar_url":"https://avatars2.githubusercontent.com/u/8861522?v=4","gravatar_id":"","url":"https://api.github.com/users/radusqrt","html_url":"https://github.com/radusqrt","followers_url":"https://api.github.com/users/radusqrt/followers","following_url":"https://api.github.com/users/radusqrt/following{/other_user}","gists_url":"https://api.github.com/users/radusqrt/gists{/gist_id}","starred_url":"https://api.github.com/users/radusqrt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radusqrt/subscriptions","organizations_url":"https://api.github.com/users/radusqrt/orgs","repos_url":"https://api.github.com/users/radusqrt/repos","events_url":"https://api.github.com/users/radusqrt/events{/privacy}","received_events_url":"https://api.github.com/users/radusqrt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/radusqrt/help-the-kids","description":"Repository with the purpose of helping the young ones in need on their path to achieving the programmer wisdom.","fork":false,"url":"https://api.github.com/repos/radusqrt/help-the-kids","forks_url":"https://api.github.com/repos/radusqrt/help-the-kids/forks","keys_url":"https://api.github.com/repos/radusqrt/help-the-kids/keys{/key_id}","collaborators_url":"https://api.github.com/repos/radusqrt/help-the-kids/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/radusqrt/help-the-kids/teams","hooks_url":"https://api.github.com/repos/radusqrt/help-the-kids/hooks","issue_events_url":"https://api.github.com/repos/radusqrt/help-the-kids/issues/events{/number}","events_url":"https://api.github.com/repos/radusqrt/help-the-kids/events","assignees_url":"https://api.github.com/repos/radusqrt/help-the-kids/assignees{/user}","branches_url":"https://api.github.com/repos/radusqrt/help-the-kids/branches{/branch}","tags_url":"https://api.github.com/repos/radusqrt/help-the-kids/tags","blobs_url":"https://api.github.com/repos/radusqrt/help-the-kids/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/radusqrt/help-the-kids/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/radusqrt/help-the-kids/git/refs{/sha}","trees_url":"https://api.github.com/repos/radusqrt/help-the-kids/git/trees{/sha}","statuses_url":"https://api.github.com/repos/radusqrt/help-the-kids/statuses/{sha}","languages_url":"https://api.github.com/repos/radusqrt/help-the-kids/languages","stargazers_url":"https://api.github.com/repos/radusqrt/help-the-kids/stargazers","contributors_url":"https://api.github.com/repos/radusqrt/help-the-kids/contributors","subscribers_url":"https://api.github.com/repos/radusqrt/help-the-kids/subscribers","subscription_url":"https://api.github.com/repos/radusqrt/help-the-kids/subscription","commits_url":"https://api.github.com/repos/radusqrt/help-the-kids/commits{/sha}","git_commits_url":"https://api.github.com/repos/radusqrt/help-the-kids/git/commits{/sha}","comments_url":"https://api.github.com/repos/radusqrt/help-the-kids/comments{/number}","issue_comment_url":"https://api.github.com/repos/radusqrt/help-the-kids/issues/comments{/number}","contents_url":"https://api.github.com/repos/radusqrt/help-the-kids/contents/{+path}","compare_url":"https://api.github.com/repos/radusqrt/help-the-kids/compare/{base}...{head}","merges_url":"https://api.github.com/repos/radusqrt/help-the-kids/merges","archive_url":"https://api.github.com/repos/radusqrt/help-the-kids/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/radusqrt/help-the-kids/downloads","issues_url":"https://api.github.com/repos/radusqrt/help-the-kids/issues{/number}","pulls_url":"https://api.github.com/repos/radusqrt/help-the-kids/pulls{/number}","milestones_url":"https://api.github.com/repos/radusqrt/help-the-kids/milestones{/number}","notifications_url":"https://api.github.com/repos/radusqrt/help-the-kids/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/radusqrt/help-the-kids/labels{/name}","releases_url":"https://api.github.com/repos/radusqrt/help-the-kids/releases{/id}","deployments_url":"https://api.github.com/repos/radusqrt/help-the-kids/deployments","created_at":"2017-11-22T23:50:00Z","updated_at":"2018-03-27T19:25:35Z","pushed_at":"2018-03-27T20:28:53Z","git_url":"git://github.com/radusqrt/help-the-kids.git","ssh_url":"git@github.com:radusqrt/help-the-kids.git","clone_url":"https://github.com/radusqrt/help-the-kids.git","svn_url":"https://github.com/radusqrt/help-the-kids","homepage":null,"size":119,"stargazers_count":1,"watchers_count":1,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":16,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/radusqrt/help-the-kids/pulls/16"},"html":{"href":"https://github.com/radusqrt/help-the-kids/pull/16"},"issue":{"href":"https://api.github.com/repos/radusqrt/help-the-kids/issues/16"},"comments":{"href":"https://api.github.com/repos/radusqrt/help-the-kids/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/radusqrt/help-the-kids/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/radusqrt/help-the-kids/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/radusqrt/help-the-kids/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/radusqrt/help-the-kids/statuses/c56c411163e87af9697e98816a5b3043ed973145"}},"author_association":"NONE"}}
{"actor":{"display_login":"radusqrt"}}