Sequence of Bisect implementations
bisect.m
Go to the documentation of this file.
1
%%
2
clear
,
clc
, clf
3
4
%% define
function
5
syms x
6
f
= sin(x) - 0.5 * x;
7
%
f
= (1.234567-x)*(x+0.987654);
8
9
10
%% define interval
11
a
= -2;
12
b
= 2;
13
14
%% graphics
15
fplot
(
f
,[
a
,
b
]); %% old: ezplot
16
hold on
17
plot([
a
,
b
],[0,0],
'-r'
)
18
clc
clc
Definition:
bisect.m:2
f
clf define function syms x f
Definition:
bisect.m:6
b
b
Definition:
bisect.m:12
fplot
graphics fplot(f,[a, b])
clear
clear
Definition:
bisect.m:2
a
define interval a
Definition:
bisect.m:11
bisect.m
Generated by
1.9.1