|
このファイルの ベクター画像 (SVG) が利用できます。 使う目的に対し、元画像よりもSVGがより優れている場合、SVG画像を使用して下さい。
|
|
概要
Graph of (x + 3)(x − 1)2, used to illustrate Brent's method. Created by Jitse Niesen in Matlab.
ライセンス
| Public domainPublic domainfalsefalse
|
|
この作品の著作権者である私は、この作品についての権利を放棄しパブリックドメインとします。これは全世界で適用されます。 一部の国では、これが法的に可能ではない場合があります。その場合は、次のように宣言します。 私は、あらゆる人に対して、法により必要とされている条件を除き、如何なる条件も課すことなく、あらゆる目的のためにこの著作物を使用する権利を与えます。
|
Matlab code
f = @(x) (x+3).*(x-1).^2;
xs = linspace(-5,2.5);
ys = f(xs);
% x-axis
clf; hold on;
plot([-5 3], [0 0], 'k');
for k = -4:2
if k ~= 0
plot([k k], [0.7 -0.7], 'k');
text(k, -1, int2str(k), 'HorizontalAlignment', 'center', ...
'VerticalAlignment', 'top', 'FontSize', 12);
end;
end;
% y-axis
plot([0 0], [-35 15], 'k');
for k = -30:5:10
if k ~= 0
plot([0.1 -0.1], [k k], 'k');
text(-0.15, k, int2str(k), 'HorizontalAlignment', 'right', ...
'VerticalAlignment', 'middle', 'FontSize', 12);
end;
end;
% graph
plot(xs,ys, 'Linewidth',3);
axis([-4.5 2.1 -31 11]);
axis off;
print -dpng 'brent_tmp.png';
system('convert -trim +repage brent_tmp.png brent.png');