קובץ:Rosenbrock_function.svg
ויקיפדיה האנציקלופדיה encyclopedia
גודל התצוגה המקדימה הזאת מסוג PNG של קובץ ה־SVG הזה: 720 × 540 פיקסלים. רזולוציות אחרות: 320 × 240 פיקסלים | 640 × 480 פיקסלים | 1,024 × 768 פיקסלים | 1,280 × 960 פיקסלים | 2,560 × 1,920 פיקסלים.
לקובץ המקורי (קובץ SVG, הגודל המקורי: 720 × 540 פיקסלים, גודל הקובץ: 2.28 מ"ב)
זהו קובץ שמקורו במיזם ויקישיתוף. תיאורו בדף תיאור הקובץ המקורי (בעברית) מוצג למטה. |
תקציר
תיאורRosenbrock function.svg |
English: Rosenbrock function over . The Python code needs at least Matplotlib v0.99. The MATLAB/Octave code was tested with GNU Octave 4.2.2 and MATLAB R2016a.
Español: Funció de Rosenbrock definida sobre . |
תאריך יצירה | |
מקור | נוצר על־ידי מעלה היצירה |
יוצר | Morn the Gorn |
Python source InfoField | click to expand
from mpl_toolkits.mplot3d import Axes3D
from matplotlib.colors import LogNorm
import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure()
ax = Axes3D(fig, azim=-128, elev=43)
s = .05
X = np.arange(-2, 2.+s, s)
Y = np.arange(-1, 3.+s, s)
X, Y = np.meshgrid(X, Y)
Z = (1.-X)**2 + 100.*(Y-X*X)**2
# ax.plot_surface(X, Y, Z, rstride=1, cstride=1, norm = LogNorm(),
# cmap="viridis")
# Without using `` linewidth=0, edgecolor='none' '', the code may produce a
# graph with wide black edges, which will make the surface look much darker
# than the one illustrated in the figure above.
ax.plot_surface(X, Y, Z, rstride=1, cstride=1, norm=LogNorm(),
linewidth=0, edgecolor='none', cmap="viridis")
# Set the axis limits so that they are the same as in the figure above.
ax.set_xlim([-2, 2.0])
ax.set_ylim([-1, 3.0])
ax.set_zlim([0, 2500])
plt.xlabel("x")
plt.ylabel("y")
plt.savefig("Rosenbrock function.svg", bbox_inches="tight")
plt.show()
|
MATLAB/Octave source InfoField | click to expand
clear all;
close all;
hfig = figure(1);
s = 0.05;
X = [-2 : s : 2+s];
Y = [-1 : s : 3+s];
[X, Y] = meshgrid(X, Y);
Z = (1-X).^2 + 100*(Y-X.^2).^2;
% Use log scale of Z for a batter usage of the color spectrum
minZ = min(Z(:));
maxZ = max(Z(:));
C = minZ + (maxZ-minZ).*log(1+Z-minZ)./log(1+maxZ-minZ);
% See
% http://stackoverflow.com/questions/5073865/how-to-color-surface-with-stronger-contrast
% for how to color a surface with a even stronger contrast.
% The method is as follows:
%C = Z;
%[~, index] = sort(C(:));
%C(index) = 1 : numel(index);
colormap(jet);
surf(X, Y, Z, C, 'EdgeColor', 'none', 'LineStyle', 'none');
axis([-2, 2, -1, 3, 0, 2500]);
xlabel('x', 'fontsize', 18);
ylabel('y', 'fontsize', 18);
zlabel('f', 'fontsize', 18);
% Note that the `-dsvg' option is only supported for Simulink systems
print(hfig, '-dsvg', 'rosenbrock');
% To produce eps and pdf, use the following code. Notice that `epstopdf' may not work on Windows.
print(hfig, '-depsc', 'rosenbrock');
system('epstopdf rosenbrock.eps');
|
רישיון
Public domainPublic domainfalsefalse |
ברצוני, בעלי זכויות היוצרים על יצירה זו, לשחרר יצירה זו לנחלת הכלל. זה תקף בכל העולם. יש מדינות שבהן הדבר אינו אפשרי על פי חוק, אם כך: אני מעניק לכל אחד את הזכות להשתמש בעבודה זו לכל מטרה שהיא, ללא תנאים כלשהם, אלא אם כן תנאים כאלה נדרשים על פי חוק. |
פריטים שמוצגים בקובץ הזה
מוצג
ערך כלשהו ללא פריט ויקינתונים
4 בספטמבר 2009
image/svg+xml
היסטוריית הקובץ
ניתן ללחוץ על תאריך/שעה כדי לראות את הקובץ כפי שנראה באותו זמן.
תאריך/שעה | תמונה ממוזערת | ממדים | משתמש | הערה | |
---|---|---|---|---|---|
נוכחית | 04:19, 5 ביוני 2020 | 540 × 720 (2.28 מ"ב) | Zhangzk | The original colour looks much better (Reverted to version as of 11:52, 6 April 2010 (UTC)) | |
18:25, 15 באוגוסט 2018 | 459 × 603 (1.21 מ"ב) | Nicoguaro | Change colormap to viridis. Smaller file. | ||
14:52, 6 באפריל 2010 | 540 × 720 (2.28 מ"ב) | Morn | {{Information |Description={{en|1=Rosenbrock function}} |Source={{own}} |Author=Morn the Gorn |Date=2009-09-04 |Permission= |other_versions= }} Category:Functions in two variables |
שימוש בקובץ
הדף הבא משתמש בקובץ הזה:
שימוש גלובלי בקובץ
אתרי הוויקי השונים הבאים משתמשים בקובץ זה:
- שימוש באתר ar.wikipedia.org
- שימוש באתר ca.wikipedia.org
- שימוש באתר de.wikipedia.org
- שימוש באתר es.wikipedia.org
- שימוש באתר fa.wikipedia.org
- שימוש באתר fr.wikipedia.org
- שימוש באתר it.wikipedia.org
- שימוש באתר ko.wikipedia.org
- שימוש באתר no.wikipedia.org
- שימוש באתר pl.wikipedia.org
- שימוש באתר ru.wikipedia.org
- שימוש באתר sr.wikipedia.org
- שימוש באתר uk.wikipedia.org
- שימוש באתר uk.wikibooks.org
- שימוש באתר zh.wikipedia.org
מטא־נתונים
קובץ זה מכיל מידע נוסף, שכנראה הגיע ממצלמה דיגיטלית או מסורק שבהם הקובץ נוצר או עבר דיגיטציה.
אם הקובץ שונה ממצבו הראשוני, כמה מהנתונים להלן עלולים שלא לשקף באופן מלא את הקובץ הנוכחי.
רוחב | 576pt |
---|---|
גובה | 432pt |