پرونده:Newton iteration.png

Page contents not supported in other languages.
از ویکی‌پدیا، دانشنامهٔ آزاد

پروندهٔ اصلی(۲٬۴۰۶ × ۱٬۹۷۸ پیکسل، اندازهٔ پرونده: ۵۵ کیلوبایت، نوع MIME پرونده: image/png)

خلاصه

File:Newton iteration.svg یک نسخهٔ برداری از این پرونده است.
آن پرونده را هنگامی که بهتر بود می‌بایست به جای این نسخهٔ تصویر استفاده کرد.

File:Newton iteration.png → File:Newton iteration.svg

برای کسب اطلاعات بیشتر در ارتباط با تصاویر برداری لطفاً اینجا را مطالعه‌کنید.
همچنین اطلاعات بیشتری در ارتباط با حمایت مدیاویکی از تصاویر اس‌وی‌جی وجود دارد.

در زبان های دیگر
Alemannisch  Bahasa Indonesia  Bahasa Melayu  British English  català  čeština  dansk  Deutsch  eesti  English  español  Esperanto  euskara  français  Frysk  galego  hrvatski  Ido  italiano  lietuvių  magyar  Nederlands  norsk bokmål  norsk nynorsk  occitan  Plattdüütsch  polski  português  português do Brasil  română  Scots  sicilianu  slovenčina  slovenščina  suomi  svenska  Tiếng Việt  Türkçe  vèneto  Ελληνικά  беларуская (тарашкевіца)  български  македонски  нохчийн  русский  српски / srpski  татарча/tatarça  українська  ქართული  հայերեն  বাংলা  தமிழ்  മലയാളം  ไทย  한국어  日本語  简体中文  繁體中文  עברית  العربية  فارسی  +/−
New SVG image

توضیح Uploader graphed this with en:MATLAB (Illustration of en:Newton's method)
تاریخ ‏۲۲ نوامبر ۲۰۰۴‏ (first version); 2004-11-23 (last version)
منبع Transferred from en.wikipedia to Commons.
پدیدآور Olegalexandrov در ویکی‌پدیا انگلیسی
PNG genesis
InfoField
Matlab Logo 
این نمودار با MATLAB ساخته شده است
کد منبع
InfoField

MATLAB code

(Newton iteration)
% illustration of Newton's method for finding a zero of a function

function main ()
   
a=-1; b=1;   % interval endpoints
fs=20;       % text font size

% arrows settings
thickness1=2; thickness2=1.5; arrowsize=0.1; arrow_type=1;
angle=20; % in degrees

h=0.1;  % grid size
X=a:h:b; % points on the x axis
f=inline('exp(x)/1.5-0.5');   % function to plot
g=inline('exp(x)/1.5');       % derivative of f
x0=0.7; y0=f(x0);             % point at which to draw the tangent line 
m=g(x0);
Y=f(X);                       % points on the function to plot
XT=-0.1:h:b; YT=y0+(XT-x0)*m; % tangent line

% prepare the screen
clf; hold on; axis equal; axis off

% plot the graph and the tangent lines
plot(X, Y, 'linewidth', thickness1)
plot(XT, YT, 'r', 'linewidth', thickness1)
plot([x0 x0], [0, y0], '--', 'linewidth', thickness2)

% axes
small=0.2;
arrow([a 0], [b, 0], thickness2, arrowsize, angle, arrow_type, [0, 0, 0])
arrow([a+small, -0.1], [a+small, 1.4], thickness2, arrowsize, angle, arrow_type, [0, 0, 0])

% text
H=text(-0.29, -0.06,  'x'); set(H, 'fontsize', fs)
H=text(0.1, -0.1,  'x_{n+1}'); set(H, 'fontsize', fs)
H=text(0.7, -0.1,  'x_{n}'); set(H, 'fontsize', fs)

% save to disk
saveas(gcf, 'newton_iteration.eps', 'psc2')

function arrow(start, stop, thickness, arrow_size, sharpness, arrow_type, color)

% Function arguments:
% start, stop:  start and end coordinates of arrow, vectors of size 2
% thickness:    thickness of arrow stick
% arrow_size:   the size of the two sides of the angle in this picture ->
% sharpness:    angle between the arrow stick and arrow side, in degrees
% arrow_type:   1 for filled arrow, otherwise the arrow will be just two segments
% color:        arrow color, a vector of length three with values in [0, 1]

% convert to complex numbers
   i=sqrt(-1);
   start=start(1)+i*start(2); stop=stop(1)+i*stop(2);
   rotate_angle=exp(i*pi*sharpness/180);

% points making up the arrow tip (besides the "stop" point)
   point1 = stop - (arrow_size*rotate_angle)*(stop-start)/abs(stop-start);
   point2 = stop - (arrow_size/rotate_angle)*(stop-start)/abs(stop-start);

   if arrow_type==1 % filled arrow

      % plot the stick, but not till the end, looks bad
      t=0.5*arrow_size*cos(pi*sharpness/180)/abs(stop-start); stop1=t*start+(1-t)*stop;
      plot(real([start, stop1]), imag([start, stop1]), 'LineWidth', thickness, 'Color', color);

      % fill the arrow
      H=fill(real([stop, point1, point2]), imag([stop, point1, point2]), color);
      set(H, 'EdgeColor', 'none')

   else % two-segment arrow
      plot(real([start, stop]), imag([start, stop]),   'LineWidth', thickness, 'Color', color);
      plot(real([stop, point1]), imag([stop, point1]), 'LineWidth', thickness, 'Color', color);
      plot(real([stop, point2]), imag([stop, point2]), 'LineWidth', thickness, 'Color', color);
   end

اجازه‌نامه

Public domain این اثر توسط پدیدآور آن، Olegalexandrov در ویکی‌پدیا انگلیسی، به مالکیت عمومی درآمده است. این مربوط به تمام جهان است.
در برخی از کشورها ممکن است به صورت قانونی این امکان‌پذیر نباشد؛ اگر چنین است:
Olegalexandrov به هر کسی اجازهٔ استفاده از این اثر برای هر مقصودی، بدون هیچ‌گونه شرایطی، را می‌دهد تا وقتی که این شرایط توسط قانون مستلزم نشده باشند.


سیاهه بارگذاری اصلی

صفحهٔ اصلی توضیحات اینجابود. همهٔ نام‌های کاربر زیر به en.wikipedia اشاره دارند.
  • 2004-11-23 19:55 Olegalexandrov 405×340×8 (14290 bytes) Scaled down the picture of Newton's method
  • 2004-11-22 21:34 Olegalexandrov 509×406×8 (16510 bytes) I graphed this with Matlab (Illustration of Newton's method) {{PD}}

عنوان

شرحی یک‌خطی از محتوای این فایل اضافه کنید

آیتم‌هایی که در این پرونده نمایش داده شده‌اند

توصیف‌ها

تاریخچهٔ پرونده

روی تاریخ/زمان‌ها کلیک کنید تا نسخهٔ مربوط به آن هنگام را ببینید.

تاریخ/زمانبندانگشتیابعادکاربرتوضیح
کنونی‏۲۵ مهٔ ۲۰۰۷، ساعت ۰۳:۲۳تصویر بندانگشتی از نسخهٔ مورخ ‏۲۵ مهٔ ۲۰۰۷، ساعت ۰۳:۲۳۲٬۴۰۶ در ۱٬۹۷۸ (۵۵ کیلوبایت)Oleg Alexandrov{{Information |Description=Uploader graphed this with en:MATLAB (Illustration of en:Newton's method) ==Source code== <pre> <nowiki> % illustration of Newton's method for finding a zero of a function function main () a=-1; b=1; % interva
‏۱۲ ژوئن ۲۰۰۵، ساعت ۲۳:۱۱تصویر بندانگشتی از نسخهٔ مورخ ‏۱۲ ژوئن ۲۰۰۵، ساعت ۲۳:۱۱۴۰۵ در ۳۴۰ (۶ کیلوبایت)Everlongoptimized for smaller file size
‏۱۷ ژانویهٔ ۲۰۰۵، ساعت ۲۳:۰۶تصویر بندانگشتی از نسخهٔ مورخ ‏۱۷ ژانویهٔ ۲۰۰۵، ساعت ۲۳:۰۶۴۰۵ در ۳۴۰ (۱۴ کیلوبایت)Andreas Ipp~commonswiki{{PD}}: Original author graphed this with MATLAB (Illustration of Newton's method), from Wikipedia.

صفحهٔ زیر از این تصویر استفاده می‌کند:

کاربرد سراسری پرونده

ویکی‌های دیگر زیر از این پرونده استفاده می‌کنند: