, f(x), x=a=x0, x=b=xn OX (. 10.1).
[ a,b ] n .
xi=xi-1+h, i=1,2...,n, yi=f(xi).
. , h, y0 , y1 .. yn-1.
. , y0, y1 .., h.
, f(x) [a,b]. , , .
Mathcad , . :
:
z=
:
f(x)=0
: 1) , .. [a,b] OX, ; 2) .
. .
3-x-ln(x)=0.
3-x=ln(x) y=3-x y=ln(x) (. 10.2). , , [1,3]. : f(1)=3-1-ln(1)>0, f(3)=3-3-ln(3)<0. , - , [1,3], =1, =3.
, Mathcad Excel.
, ( ), , .
Mathcad .
. , ( ) . f(x)=0, .
, , / - / .
solve. solve , , .
|
|
simplify . .
root. :
x:=1
f(x):=3-x-ln(x)
:
root(f(x),x)=
Excel , , VBA .
, Excel . , , 1 , 1 − : =3-1-Log(A1).
/ . : 1, − 0, − 1. 1 .