File:Lagrange simple.jpg
Appearance
Lagrange_simple.jpg (678 × 596 pixels, file size: 78 KB, MIME type: image/jpeg)
A vector version of this image is also available, and should be used in place of this raster image where the raster image contains information that could be stored more efficiently and/or accurately in the SVG format, as a vector graphic.
If its license requires the preservation of attribution or revision history, the raster version of this image should not be deleted, in order to maintain this information. For more information, see the documentation on MediaWiki's support of SVG images. |
Source Code
[edit]The graph was made in Matlab with the following source code
% Function data [X,Y] = meshgrid(-2:0.01:2, -2:0.01:2); Z = (X.^2).*Y; % Constraint data t = -pi:0.01:pi; xc = sqrt(3)*cos(t); yc = sqrt(3)*sin(t); zc = xc.^2 .* yc; % Plot graph and constraint figure(); meshc(X,Y,Z); hold on; plot3(xc, yc, zc, 'k', 'LineWidth', 2); plot3(xc, yc ,-10*ones(1,length(t)), 'k', 'LineWidth', 1); set(gcf, 'Color', [1 1 1]); set(gcf, 'Position', [46 107 767 682]); % Axis labels text(0.2, -3, -10, 'x'); text(2.5, -.5, -10, 'y'); text(-2.4, -2, 0, 'z'); % Annotations of the max and min points % Point indicating max #1 plot3(sqrt(2), 1, 2, 'kx', 'MarkerSize', 14, 'LineWidth', 2); plot3(sqrt(2), 1, -10, 'kx', 'MarkerSize', 10, 'LineWidth', 2); text('Interpreter', 'latex',... 'String', '$$(\sqrt{2}, 1, 2)$$',... 'Position', [1.1 .1 2.1],... 'FontSize', 20); % Point indicating max #2 plot3(-sqrt(2), 1, 2, 'kx', 'MarkerSize', 14, 'LineWidth', 2); plot3(-sqrt(2), 1, -10, 'kx', 'MarkerSize', 10, 'LineWidth', 2); text('Interpreter', 'latex',... 'String', '$$(-\sqrt{2}, 1, 2)$$',... 'Position', [-1.6 .1 2.1],... 'FontSize', 20); % Point indicating min #1 plot3(sqrt(2), -1, -2, 'kx', 'MarkerSize', 14, 'LineWidth', 2); plot3(sqrt(2), -1, -10, 'kx', 'MarkerSize', 10, 'LineWidth', 2); plot3(0,1,-3,'kx') text('Interpreter', 'latex',... 'String', '$$(\sqrt{2}, -1, -2)$$',... 'Position', [.5 -.8 -1.4],... 'FontSize', 20); % Point indicating min #2 plot3(-sqrt(2), -1, -2, 'kx', 'MarkerSize', 14, 'LineWidth', 2); plot3(-sqrt(2), -1, -10, 'kx', 'MarkerSize', 10, 'LineWidth', 2); text('Interpreter', 'latex',... 'String', '$$(-\sqrt{2}, -1, -2)$$',... 'Position', [-1.9 -.8 -1],... 'FontSize', 20); hold off; view([25 18]);
Licensing
[edit]I, the copyright holder of this work, hereby grant the permission 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. |
| This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 License. This licensing tag was added to this file as part of the GFDL licensing update. |
This media file is either in the public domain or published under a free license, and contains no inbound file links. If this media file is useful, then it should be transferred to the Wikimedia Commons. If this media is not useful, then please propose it for deletion or list it at files for discussion. |
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 09:50, 14 June 2007 | 678 × 596 (78 KB) | Jacobmelgaard (talk | contribs) |
You cannot overwrite this file.
File usage
No pages on the English Wikipedia use this file (pages on other projects are not listed).