File:Level grad.svg
از Wikimedia Commons
پرش به ناوبری
پرش به جستجو
حجم پیشنمایش PNG این SVG file:۵۱۲ × ۵۱۲ پیکسل کیفیتهای دیگر: ۲۴۰ × ۲۴۰ پیکسل | ۴۸۰ × ۴۸۰ پیکسل | ۷۶۸ × ۷۶۸ پیکسل | ۱٬۰۲۴ × ۱٬۰۲۴ پیکسل | ۲٬۰۴۸ × ۲٬۰۴۸ پیکسل.
پروندهٔ اصلی (پروندهٔ اسویجی، با ابعاد ۵۱۲ × ۵۱۲ پیکسل، اندازهٔ پرونده: ۲۴۹ کیلوبایت)
اطلاعات پرونده
دادههای ساختاریافته
گزینهها
خلاصه
[ویرایش]توضیحLevel grad.svg |
English: Consider a function f whose graph looks like a hill. The blue curves are the level sets; the red curves follow the direction of the gradient. The cautious hiker follows the blue paths; the bold hiker follows the red paths. Note that blue and red paths always cross at right angles.
Source code: Lx1=-1.7; Lx2=2.3; Ly1=-2; Ly2=2; % box dimensions N=60; % split the box into N x N grid [X, Y]=meshgrid(Lx1:1/N:Lx2, Ly1:1/N:Ly2); % the grid f=inline('-((y+1).^4/25+(x-1).^4/10+x.^2+y.^2-1)'); % draw the level sets of f fx=inline('-2/5*(x-1).^3-2*x'); fy=inline('-4/25*(y+1).^3-2*y'); % partial deriv Z=f(X, Y); % the function value figure(1); clf; hold on; axis equal; axis off; % pop up a figure h=0.5; % spacing between heights v=[-20:h:0.8 0.85]; % the heights [c,h] = contour(X, Y, Z, v, 'b'); % the level sets at those heights x0=0.1333; y0=-0.0666; % coordinates of the top of the hill delta=0.01; % descend from the top of the hill with this step size Angles=linspace(0, 2*pi, 20); % will draw 19 descent curves with Angles(i) for i=1:length(Angles) x=x0+0.1*cos(Angles(i)); y=y0+0.1*sin(Angles(i)); % starting point Curve_x=[x]; Curve_y=[y]; % will hold a descent curve following the gradient % descend from the hill for j=1:500 x=x-delta*fx(x); y=y-delta*fy(y); Curve_x=[Curve_x x]; Curve_y=[Curve_y y]; % append the updated values if max(abs(x), abs(y)) > 5 % stop when going beyond the picture frame break; end end plot(Curve_x, Curve_y, 'r') % plot the curve of steepest descent end axis([Lx1 Lx2 Ly1 Ly2]); % the picture frame plot2svg('level_grad.svg',gcf); % Download plot2svg from Matlab central% |
تاریخ | |
منبع | File:Level_grad.png |
پدیدآور | Oleg Alexandrov |
دیگر نسخهها | File:Level_grad.png |
Source code modified by me to output SVG directly from Matlab
اجازهنامه
[ویرایش]Public domainPublic domainfalsefalse |
من، دارنده حق تکثیر این اثر، این اثر را به مالکیت عمومی منتشر میکنم. این قابل اجرا در تمام نقاط جهان است. در برخی از کشورها ممکن است به صورت قانونی این امکانپذیر نباشد؛ اگر چنین است: من اجازهٔ استفاده از این اثر را برای هر مقصودی، بدون هیچگونه شرایطی میدهم، تا وقتی که این شرایط توسط قانون مستلزم نشده باشد. |
تاریخچهٔ پرونده
روی تاریخ/زمانها کلیک کنید تا نسخهٔ مربوط به آن هنگام را ببینید.
تاریخ/زمان | بندانگشتی | ابعاد | کاربر | توضیح | |
---|---|---|---|---|---|
کنونی | ۲۵ اوت ۲۰۱۰، ساعت ۰۸:۴۹ | ۵۱۲ در ۵۱۲ (۲۴۹ کیلوبایت) | GyroMagician (بحث | مشارکتها) | Fixed page size to image size (using Inkscape) | |
۲۵ اوت ۲۰۱۰، ساعت ۰۸:۴۸ | ۵۱۲ در ۳۸۴ (۲۴۹ کیلوبایت) | GyroMagician (بحث | مشارکتها) | {{Information |Description={{en|1=Source code: Lx1=-1.7; Lx2=2.3; Ly1=-2; Ly2=2; % box dimensions N=60; % split the box into N x N grid [X, Y]=meshgrid(Lx1:1/N:Lx2, Ly1:1/N:Ly2); % the grid f=inline('-((y+1).^4/25+(x-1).^4/10+x.^2+y.^2-1)'); |
نمیتوانید این پرونده را رونویسی کنید.
کاربرد پرونده
صفحهٔ زیر از این تصویر استفاده میکند:
کاربرد سراسری پرونده
ویکیهای دیگر زیر از این پرونده استفاده میکنند:
- کاربرد در en.wikipedia.org
- کاربرد در fa.wikipedia.org
- کاربرد در ro.wikipedia.org
- کاربرد در ru.wikipedia.org
- کاربرد در ug.wikipedia.org
- کاربرد در uk.wikipedia.org
- کاربرد در vi.wikipedia.org