问题标签 [chaos]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
102 浏览

matlab - 在 Matlab 中迭代混沌映射时控制精度

我希望能够在迭代混沌地图时准确控制小数精度。特别是,我想确保 Matlab 使用的值不超过/不低于我在以下函数中指定的值 p:

如果我理解正确,digits()应该可以解决问题,但我不确定,并且在调用函数时具有指定的准确性至关重要(任何熟悉混乱的人都会知道!)。

提前致谢!

0 投票
2 回答
2045 浏览

matlab - 如何从陈超混沌系统生成混沌序列?

我需要基于陈超混沌系统生成两个混沌序列。它必须由以下四个公式生成

其中 a,b,c,d,x,y,z,q 全部初始化如下。我只需要 X 和 Y 在哪里

我尝试了以下代码,但我无法正确获取它。

请帮忙。提前致谢。

0 投票
1 回答
4959 浏览

python - 分岔图

我想在python中绘制二次图的分岔图。基本上它是 x_{n+1}=x_n^2-c ​​的图,它应该看起来像http://static.sewanee.edu/Physics/PHYSICS123/image99.gif

但我是新手,所以我不确定我是否做对了。

我的代码

我的问题是我不知道如何正确编写这些 for 循环。

0 投票
1 回答
139 浏览

python-2.7 - Normalizing data and applying colormap results in rotated image using matplotlib?

So I wanted to see if I could make fractal flames using matplotlib and figured a good test would be the sierpinski triangle. I modified a working version I had that simply performed the chaos game by normalizing the x range from -2, 2 to 0, 400 and the y range from 0, 2 to 0, 200. I also truncated the x and y coordinates to 2 decimal places and multiplied by 100 so that the coordinates could be put in to a matrix that I could apply a color map to. Here's the code I'm working on right now (please forgive the messiness):

The mathematics seem solid here so I suspect something weird is going on with how I'm handling where things should go into the 'mat' matrix and how the values in there correspond to the colormap.

enter image description here

0 投票
1 回答
230 浏览

neural-network - 导致 XOR 函数学习神经网络停滞的初始权重

我有一个带有 2 个入口变量的神经网络,1 个带有 2 个神经元的隐藏层和一个带有一个输出神经元的输出层。当我从一些随机(从 0 到 1)生成的权重开始时,网络学习 XOR 函数非常快而且很好,但在其他情况下,网络永远不会学习 XOR 函数!你知道为什么会发生这种情况,我该如何克服这个问题?会不会涉及到一些混乱的行为?谢谢!

0 投票
1 回答
572 浏览

python - 整合混沌系统

我有3个方程如下

我尝试使用 scipy.integrate.odeint 从 t=0 解决到 t=10 我的初始条件是 u(0)=0, v(0)=1.0 和 w(0)=2.0 我没有太多有用的注释scipy.integrate.odeint。所以可以使用一些建议来解决我的问题。

0 投票
3 回答
243 浏览

c++ - 为什么这个 C++ 函数会产生混乱的输出?

我有以下代码:

输出以下内容:

0.20000 0.64000 0.92160 0.28901 0.82194 0.58542 0.97081 0.11334 0.40197 0.96156 0.14784 0.50392 0.99994 0.00025 0.00098 0.00394 0.01568 0.06174 0.23173 0.71212 0.82001 0.59036 0.96734 0.12638 0.44165 0.98638 0.05374 0.20342 0.64815 0.91221

我的问题是:对于每次迭代操作“x”的方式,最恰当的算法/数学描述是什么?

0 投票
1 回答
418 浏览

python - 在相同初始条件下表现出混沌行为的混沌钟摆

我在 Stack Overflow 上的第一篇文章,请多多包涵。我使用 pymunk 物理库在 python 中构建了一个混沌双摆模型,而后者又使用了花栗鼠 C 库。钟摆是混沌的,对初始条件表现出极大的敏感性。然而,我已经意识到,即使我在完全相同的初始条件下运行模拟(无论如何更改零代码),两个模拟也会很快分歧。

我的代码中有一些东西在每次运行时都有可能产生不同的结果。因为模拟是混乱的,任何在我的运行之间不是恒定的微小错误都可能导致大的变化。

这可能是什么原因造成的?我不确定这是否是由于花栗鼠、pymunk 甚至 python 或我的 OS/PC 中的一个小缺陷造成的。

编辑:

这是我的代码:

0 投票
1 回答
396 浏览

python - 朱莉娅设置 Python

我试图在 python 中制作一个 julia 集,但我的输出在一些早期过程中是 Nan。我不知道是什么原因造成的。只是为了坦白:我的编程课不好,我真的不知道我在做什么,这主要是我从谷歌那里学到的。

这是代码:

先感谢您 :)

0 投票
1 回答
536 浏览

algorithm - 反应扩散平行生长法

我已经创建了许多类型的反应扩散模式,使用不同的参数来表示死亡和进给率等。在 GollyGang 的 Ready 上使用它们(一个简单的 C++ 软件,可以根据参数和代码生成模式)但是,它们都结束了以卷曲的、组合的、类似迷宫的形式或点等。像这样:

在此处输入图像描述

我想要实现的更像是平行的直线,偶尔结合起来看起来像静脉或生长的树枝;见下图:

在此处输入图像描述

我已经为此搜索了任何公式,但找不到任何公式。我应该使用哪些参数?