Image:Bernoulli inequality.svg

From Wikipedia, the free encyclopedia

Bernoulli_inequality.svg (SVG file, nominally 254 × 488 pixels, file size: 18 KB)

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.
Description

Illustration of Bernoulli's inequality.

Source

self-made with MATLAB

Date

06:11, 9 January 2008 (UTC)

Author

Oleg Alexandrov

Permission
(Reusing this image)

see below



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] Source code (MATLAB)

% Illustration of the bernoulli inequality
 
function main()
 
   r = 3; % the power in the Bernoulli inequality
 
   % KSmrq's colors
   red    = [0.867 0.06 0.14];
   blue   = [0, 129, 205]/256;
   green  = [0, 200,  70]/256;
   yellow = [254, 194,   0]/256;
   white = 0.99*[1, 1, 1];
 
% Set up the grid and other parameters
   N = 100;
   A = -2; B = 2; 
   X = linspace(A, B, N);
   Y1 = 1+r*X;
   Y2 = (1+X).^r;
 
   C=-3; D = 5;
 
   % Set up the figure
   lw = 3; % linewidth
   fs = 12; % font size
   figure(1); clf;
 
   set(gca, 'fontsize', fs);
   set(gca, 'linewidth', 0.4*lw)
   hold on;% grid on;
 
   plot_axes (A, B, C, D, lw/1.5);
 
   plot(X, Y1, 'color', blue, 'linewidth', lw);
   plot(X, Y2,   'color', red, 'linewidth', lw);
 
   axis equal; axis([A, B, C, D]); 
 
   set(gca, 'XTick', [-2, -1, 0, 1, 2]) % text labels on the x axis
   grid on;
 
   saveas(gcf, 'Bernoulli_inequality.eps', 'psc2'); % save as eps
   %plot2svg('Bernoulli_inequality.svg'); % save as svg
 
function plot_axes (A, B, C, D, lw)
 
   black = [0, 0, 0];
 
   plot([A B], [0, 0], 'linewidth', lw, 'color', black);
   plot([0, 0], [C, D], 'linewidth', lw, 'color', black);

File history

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

Date/TimeDimensionsUserComment
current06:11, 9 January 2008254×488 (18 KB)Oleg Alexandrov ({{Information |Description=Illustration of Bernoulli's inequality. |Source=self-made with MATLAB |Date=~~~~~ |Author= Oleg Alexandrov |Permission= |other_versions= }} {{PD-self}} ==Source code ([[:)
The following pages on the English Wikipedia link to this file (pages on other projects are not listed):