-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStort2.m
81 lines (74 loc) · 1.14 KB
/
Stort2.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
clear;
clc;
clf;
t = cputime;
disp('x^2 tol=0.01');
syms x;
f = x^2;
a = 0;
b = 5;
tol = 0.01;
ezplot(f,[a-1,b+1]);
Heildi(f,a,b,tol)
disp('Sin(x2^) tol=0.01');
syms x;
f = sin(x^2);
a = 0;
b = 5;
tol = 0.01;
figure;
ezplot(f,[a-1,b+1]);
Heildi(f,a,b,tol)
disp('x^2 tol=0.001');
syms x;
f = x^2;
a = 0;
b = 5;
tol = 0.001;
figure;
ezplot(f,[a-1,b+1]);
Heildi(f,a,b,tol)
% %
% % disp('Sin(x2^) tol=0.00001');
% % syms x;
% % f = sin(x^2);
% % a = 0;
% % b = 5;
% % tol = 0.000001;
% % figure;
% % ezplot(f,[a-1,b+1]);
% % Heildi(f,a,b,tol)
% %
% % disp('x^2 tol=0.000001');
% % syms x;
% % f = x^2;
% % a = 0;
% % b = 5;
% % tol = 0.000001;
% % figure;
% % ezplot(f,[a-1,b+1]);
% % Heildi(f,a,b,tol)
% %
% % disp('Sin(x2^) tol=0.01');
% % syms x;
% % f = sin(x^2);
% % a = 0;
% % b = 5;
% % tol = 0.000001;
% % figure;
% % ezplot(f,[a-1,b+1]);
% % Heildi(f,a,b,tol)
% %t = [0:0.001:1];
% syms x;
% fx = 0.5 + 0.3*x + 3.9*x^2 - 4.7*x^3;
% fy = 1.5 + 0.3*x + 0.9*x^2 - 2.7*x^3;
% %fx = x;
% %fy = x;
% %m = subs(fx,x,t);
% %n = subs(fy,x,t);
% a = arch(fx, fy, 0, 1, 0.001);
%
% EPart(fx,fy,a,4,0.001);
%EPart(fx,fy,a,4,0.001);
%animate(fx,fy)
%e = cputime-t