Sequence of Bisect implementations
Loading...
Searching...
No Matches
bisect.m
Go to the documentation of this file.
1%%
2clear, clc, clf
3
4%% define function
5syms x
6 f = sin(x) - 0.5 * x;
7%f = (1.234567-x)*(x+0.987654);
8
9
10%% define interval
11a = -2;
12b = 2;
13
14%% graphics
15fplot(f,[a,b]); %% old: ezplot
16hold on
17plot([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