Image:Lagrange very simple.jpg

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

The graph was made in Matlab with the following source code

% Function data
[X,Y] = meshgrid(-1.2:0.01:1.2, -1.2:0.01:1.2);
Z = XY;

% Constraint data
t = -pi:0.01:pi;
xc = cos(t);
yc = sin(t);
zc = xc+yc;

% Plot graph and 'constraint'
figure();
meshc(X,Y,Z);
hold on;
plot3(xc, yc, zc, 'k', 'LineWidth', 2);
plot3(xc, yc, -3*ones(1,length(t)), 'k', 'LineWidth', 1);
set(1, 'Color', [1 1 1]);
set(1, 'Position', [46 107 767 682]);
% Axis labels
text(0.2, -2.2, -3, 'x');
text(2.0, -.3, -3, 'y');
text(-1.8, -1.5, 0, 'z');

% Annotations of the max and min points
% Point indicating max
plot3(sqrt(2)/2, sqrt(2)/2, 1.45, 'kx', 'MarkerSize', 14, 'LineWidth', 2);
plot3(sqrt(2)/2, sqrt(2)/2, -3, 'kx', 'MarkerSize', 10, 'LineWidth', 2);
text('Interpreter', 'latex', 'String', '$$(\sqrt{2}/2, \sqrt{2}/2, \sqrt{2})$$',...
        'Position', [.0 .3 1.9], 'FontSize', 20);
% Point indicating min
plot3(-sqrt(2)/2, -sqrt(2)/2, -sqrt(2), 'kx', 'MarkerSize', 14, 'LineWidth', 2);
plot3(-sqrt(2)/2, -sqrt(2)/2, -3, 'kx', 'MarkerSize', 10, 'LineWidth', 2);
text('Interpreter', 'latex', 'String', '$$(-\sqrt{2}/2, -\sqrt{2}/2, -\sqrt{2})$$',...
        'Position', [-1.4 -1.0 -1.0], 'FontSize', 20);
hold off;
view([34 24]);
Date
Author

Jacobmelgaard

Permission
(Reusing this image)

see below


[edit] Licensing

I, the copyright holder of this work, has published or hereby publishes it under the following license:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation license, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation license".

Aragonés | العربية | Asturianu | Български | বাংলা | ইমার ঠার/বিষ্ণুপ্রিয়া মণিপুরী | Brezhoneg | Bosanski | Català | Cebuano | Česky | Dansk | Deutsch | Ελληνικά | English | Esperanto | Español | Eesti | Euskara | فارسی | Suomi | Français | Gaeilge | Galego | עברית | Hrvatski | Magyar | Bahasa Indonesia | Ido | Íslenska | Italiano | 日本語 | ქართული | ភាសាខ្មែរ | 한국어 | Kurdî / كوردی | Latina | Lëtzebuergesch | Lietuvių | Bahasa Melayu | Nnapulitano | Nederlands | ‪Norsk (nynorsk)‬ | ‪Norsk (bokmål)‬ | Occitan | Polski | Português | Română | Русский | Slovenčina | Slovenščina | Shqip | Српски / Srpski | Svenska | తెలుగు | ไทย | Türkçe | Українська | اردو | Tiếng Việt | Volapük | Yorùbá | ‪中文(中国大陆)‬ | ‪中文(台灣)‬ | +/-

File history

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

Date/TimeDimensionsUserComment
current13:31, 20 September 2007685×597 (66 KB)Loxley ({{Information |Description= |Source=The graph was made in Matlab with the following source code <pre> % Function data [X,Y] = meshgrid(-1.2:0.01:1.2, -1.2:0.01:1.2); Z = XY; % Constraint data t = -pi:0.01:pi; xc = cos(t); yc = sin(t); zc = xc+yc; % Plo)
The following pages on the English Wikipedia link to this file (pages on other projects are not listed):