انت هنا الان : شبكة جامعة بابل > موقع الكلية > نظام التعليم الالكتروني > مشاهدة المحاضرة

Lecture2 Matlab

Share |
الكلية كلية التربية للعلوم الصرفة     القسم  قسم الرياضيات     المرحلة 3
أستاذ المادة حوراء عباس فاضل       17/10/2018 20:19:30
Bisection Algorithm

To ?nd a solution to f (x) = 0 given the continuous function f on the interval [a, b], where f (a) and f (b) have opposite signs:

INPUT endpoints a, b; ?, and maximum number of iterations n.
OUTPUT approximate solution p or message of failure.

Bisection Algorithm:
Step 1 input i =1:n, a, b;
Step 2 Set pi = (bi + ai)/2;
Step 3 If f(p) = 0 or (b ? a) < ?, then
OUTPUT (pi); (Procedure completed successfully.)
STOP.
Step 4 Set i = i + 1.
Step 5 If f(a) · f(p) < 0 then set b = p;
else set a = p.
Step 6 OUTPUT (‘Method failed after n iterations);
STOP.
Bisection Algorithm

To ?nd a solution to f (x) = 0 given the continuous function f on the interval [a, b], where f (a) and f (b) have opposite signs:

INPUT endpoints a, b; ?, and maximum number of iterations n.
OUTPUT approximate solution p or message of failure.

Bisection Algorithm:
Step 1 input i =1:n, a, b;
Step 2 Set pi = (bi + ai)/2;
Step 3 If f(p) = 0 or (b ? a) < ?, then
OUTPUT (pi); (Procedure completed successfully.)
STOP.
Step 4 Set i = i + 1.
Step 5 If f(a) · f(p) < 0 then set b = p;
else set a = p.
Step 6 OUTPUT (‘Method failed after n iterations);
STOP.


المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .
الرجوع الى لوحة التحكم