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
Definition: bisect.m:2
clf define function syms x f
Definition: bisect.m:6
b
Definition: bisect.m:12
graphics fplot(f,[a, b])
clear
Definition: bisect.m:2
define interval a
Definition: bisect.m:11