码迷,mamicode.com
首页 > 其他好文 > 详细

混沌数学之非线性电路电容中的混沌控制系统

时间:2014-09-16 12:06:10      阅读:232      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   io   ar   2014   div   art   

混沌数学之非线性电路电容中的混沌控制系统

相关软件:混沌数学及其软件模拟

相关代码:

//非线性电路电容中的混沌控制系统
class CapacitanceEquation : public DifferentialEquation
{
public:
    CapacitanceEquation()
    {
        m_StartX = 1.0f;
        m_StartY = 1.0f;
        m_StartZ = 1.0f;

        m_ParamA = 8.0f;
        m_ParamB = 14.0f;
        m_ParamC = 0.5f;
        m_ParamD = -1.0f;
        m_ParamE = 1.5f;

        m_StepT = 0.005f;
    }

    void Derivative(float x, float y, float z, float& dX, float& dY, float& dZ)
    {
        float g;
        if (x >= 1.0f)
        {
            g = m_ParamE*x - (m_ParamE - m_ParamD);
        }
        else if (x <= -1.0f)
        {
            g = m_ParamE*x + (m_ParamE - m_ParamD);
        }
        else
        {
            g = m_ParamD*x;
        }

        dX = m_ParamA*((m_ParamC-1.0f)*g + y);
        dY = g - y + z;
        dZ = -m_ParamB*y;
    }

    bool IsValidParamA() const {return true;}
    bool IsValidParamB() const {return true;}
    bool IsValidParamC() const {return true;}
    bool IsValidParamD() const {return true;}
    bool IsValidParamE() const {return true;}
};

 

相关截图:

bubuko.com,布布扣

bubuko.com,布布扣

bubuko.com,布布扣

bubuko.com,布布扣

混沌数学之非线性电路电容中的混沌控制系统

标签:style   blog   http   color   io   ar   2014   div   art   

原文地址:http://www.cnblogs.com/WhyEngine/p/3974405.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!