⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lyapunov_exponent.m

📁 非线性动力学中lyapunov、duffing等方程的求解
💻 M
字号:
clear;%computes lyapunov exponent r = 4.0;%%%%% first converge to attractorx = rand;   %choose random initial datafor i=1:200;   x = r*x*(1-x);     %apply logistic mapend;%%%%% find (1/n) Sum ln(f'(x_i))  -  limit should be lyapunov exponentsum = 0;for i=1:500;    x = r*x*(1-x);     %logistic map    sum = sum + log(abs(r - 2*r*x));    sum/i                                    %print out average    average(i) = sum/i;             %collect into vector for later plottingend;plot(average);      %plots sucessive averages so a trend can be observed

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -