تم الحل ✓
categoryرياضيات
schoolبكالوريوس
event_available2026-07-14
السؤال
Transcribed Image Text:
Bisection
To find 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; tolerance TOL; maximum number of iterations No.
OUTPUT approximate solution p or message of failure.
Step 1 Set i = 1;
FA = f (a).
Step 2 While i ≤No do Steps 3-6.
Step 3 Set pa+(b-a)/2; (Compute pi.)
FP = f(p).
Step 4 If FP=0 or (b-a)/2 < TOL then
OUTPUT (p); (Procedure completed successfully.)
STOP.
Step 5 Set i=i+1.
Step 6 If FA FP > 0 then set a = p; (Compute a¡, b;.)
FA = FP
else set b=p. (FA is unchanged.)
Step 7 OUTPUT (Method failed after No iterations, No =', No);
(The procedure was unsuccessful.)
STOP.
check_circle الجواب — حل مفصل خطوة بخطوة
hourglass_top
🔒
الحل الكامل متاح للمشتركين
اشترك في أرشيف الأسئلة لعرض هذا الحل وآلاف الحلول المفصلة خطوة بخطوة من معلمين معتمدين.