📄 tchaosfunctionunit.cpp
字号:
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "TChaosFunctionUnit.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
double TChaosFunction::StepIt(void)
{
StepValue = StepValue * 3.9999 * (1 - StepValue);
return StepValue;
}
TChaosFunction::TChaosFunction()
{
StepValue = 0.0;
}
int __fastcall TChaosFunction::StartCycle(double StartValue)
{
int i;
if(StartValue < 1.0 && StartValue > 0) {
StepValue = StartValue;
for(i = 1; i <= 50; i++)
{
StepValue = StepValue * 3.9999 * (1 - StepValue);
}
return 1;
}
else
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -