numeric computing assignments

3
 Numerical Computing Lab Assignment Bi-Section Method 

Upload: adeel-ahmed-durrani

Post on 04-Oct-2015

213 views

Category:

Documents


0 download

DESCRIPTION

Numeric Computing Assignments

TRANSCRIPT

Numerical Computing

Lab Assignment Bi-Section Method

Bi-Section MethodFormulasf(x) = x3-10Error = 0.5 * ((x2 - x1)/xm)xm = (x1 + x2 )/2Variables:x1 = 2x2 = 3E = 0.01

ABCDEFG

1x1x2f(x1)f(x2)xmf(xm)E

223-2172.55.6250.2

322.5-25.6252.251.3906250.111111

422.25-21.3906252.125-0.40430.058824

52.1252.25-0.40431.3906252.18750.4675290.028571

62.1252.1875-0.40430.4675292.156250.0252990.014493

72.1252.15625-0.40430.0252992.140625-0.191070.007299

Formulas used in Excel Sheet as per given values and formulas:A2= 2B2 = 3f(x1) =(A2^3)-10f(x2) =(B2^3)-10xm =(A2+B2)/2f(xm) =(E2^3)-10Error (E) =0.5*((B2-A2)/E2)Formulas used in second row for x1 & x2 valuesA3=IF(C2*F2