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

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

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

相关代码:

//非线性电路电容中的混沌控制系统
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;}
};

 

相关截图:

posted on 2014-09-16 10:42  叶飞影  阅读(1547)  评论(0编辑  收藏  举报