تصویر:Logistic a3.png

وکیپیڈیا سے

No higher resolution available.

Logistic_a3.png (392 × 380 pixel, file size: 4 KB, MIME type: image/png)

Public domain یہ تصویر اس کے مصنف، منصوبہ اردو ویکیپیڈیا کے urdutext کی طرف سے دائرہ عام میں داخل ہے (یا اب داخل کیا جا رہا ہے)۔ اس کا اطلاق دنیا بھر میں ہے۔

اگر ایسا قانونی طور پر ممکن نہ ہو،
تو urdutext سب کو اس کے استعمال کی عام اجازت دیتا/دیتی ہے، کسی بھی مقصد کے لیے، غیر مشروط، ماسوائے ایسی صورت میں کہ اس میں کوئی قانونی رکاوٹ ہو۔



Created with Scilab سائیلیب

//Scilab script
clear;
//----------------------
a=3;  //parameter ot the logistic equation
NTotal = 800; //total iterations
NPlot = 800;   // last iterations to plot
xInitial = .80000; // inital point to start the iteration
//-------------------
// compute the iterations
y=[];
xn=xInitial;
for kk=1:NTotal
  y=[y xn];
  xn = a * xn * (1-xn);
end
// ----------
// ready to plot the last few iterations
xt=[];
yt=[0];
for kk=NTotal-NPlot+1:NTotal-1
  xt=[xt y(kk) y(kk)];
  yt=[yt y(kk+1) y(kk+1)];
end
lent=length(xt);
yt=yt(1:lent);
// plot the iterations
xset("color",2);
xpoly(xt,yt);
//--------
// plot the logistic map
x=[0:.01:1];
y1=a*x.*(1-x);
plot(x,y1,'r');
// plot the bisector
plot([0 x],[0 x],'k');
//-----------
//
NR = 0; // controls if the helper lines are drawn
if NR>2
for kk=2:NR
 plot([y(kk) y(kk)], [0 y(kk+1)],'b -.-');
end
//
xstring(.75,.7,"bisector");
xstring(.1,.3,"map");
//
xstring(y(1),-.05, "X0");
xstring(y(2),-.05, "X1");
xstring(y(3),-.05, "X2");
xstring(y(4),-.05, "X3");
end
//
xtitle("Iteration of Logistic map, x_{n+1} = a x_n (1 - x_n); a=3");


File history

Legend: (cur) = this is the current file, (del) = delete this old version, (rev) = revert to this old version.
Click on date to see the file uploaded on that date.


اس ملف (فائل) سے درج ذیل صفحات رابطہ رکھتے ہیں: