summaryrefslogtreecommitdiff
path: root/27/CH10/EX10.3.2/Example_10_3_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '27/CH10/EX10.3.2/Example_10_3_2.sce')
-rwxr-xr-x27/CH10/EX10.3.2/Example_10_3_2.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/27/CH10/EX10.3.2/Example_10_3_2.sce b/27/CH10/EX10.3.2/Example_10_3_2.sce
new file mode 100755
index 000000000..fd50a5435
--- /dev/null
+++ b/27/CH10/EX10.3.2/Example_10_3_2.sce
@@ -0,0 +1,18 @@
+//Example 10.3.2 Page 358
+//Non-Linear Dynamics and Chaos, First Indian Edition Print 2007
+//Steven H. Strogatz
+clear;
+clear;
+clc;
+close;
+set(gca(),"auto_clear","off") //hold on
+
+//Taking r=3.5 such that r>3 as given in book.;
+r=3.5;
+for x=0:0.01:1
+ f2x=(((r^2)*x)-(r*x)^2)*(1-r*x+r*(x^2)); //f2x=second-iterate map.
+ plot2d(x,f2x,style=-2)
+ y=x; //to plot y=x line.
+ plot2d(x,y,style=-4)
+end
+xtitle("Second Iterate Map","x-Axis ( x )","y-Axis ( f ^ 2 (x) )") \ No newline at end of file