Image:Brent method example.png

From Wikipedia, the free encyclopedia

Wikimedia Commons logo This is a file from the Wikimedia Commons. The description on its description page there is shown below.
Commons is a freely licensed media file repository. You can help.

[edit] Summary

Graph of (x + 3)(x − 1)2, used to illustrate Brent's method. Created by Jitse Niesen in Matlab.

[edit] Licensing

Public domain I, the copyright holder of this work, hereby release it into the public domain. This applies worldwide.

In case this is not legally possible:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.


Afrikaans | Alemannisch | Aragonés | العربية | Asturianu | Български | Català | Česky | Cymraeg | Dansk | Deutsch | Eʋegbe | Ελληνικά | English | Español | Esperanto | Euskara | Estremeñu | فارسی | Français | Galego | 한국어 | हिन्दी | Hrvatski | Ido | Bahasa Indonesia | Íslenska | Italiano | עברית | Kurdî / كوردی | Latina | Lietuvių | Latviešu | Magyar | Македонски | Bahasa Melayu | Nederlands | ‪Norsk (bokmål)‬ | ‪Norsk (nynorsk)‬ | 日本語 | Polski | Português | Ripoarisch | Română | Русский | Shqip | Slovenčina | Slovenščina | Српски / Srpski | Svenska | ไทย | Tagalog | Türkçe | Українська | Tiếng Việt | Walon | ‪中文(简体)‬ | ‪中文(繁體)‬ | zh-yue-hant | +/-

[edit] 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');

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeDimensionsUserComment
current09:21, 17 June 2006932×735 (8 KB)Jitse Niesen (remove offset)
09:03, 17 June 2006932×735 (8 KB)Jitse Niesen (Graph of (''x'' + 3)(''x'' &minus; 1)<sup>2</sup>, used to illustrate w:en:Brent's method. Created by ~~~ in Matlab.)
The following pages on the English Wikipedia link to this file (pages on other projects are not listed):