You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
515 B
21 lines
515 B
#ifndef POLYNOMIALA3D_HPP
|
|
#define POLYNOMIALA3D_HPP
|
|
|
|
#include "../AttractorKernel.hpp"
|
|
|
|
class PolynomialA3D : public AttractorKernel {
|
|
public:
|
|
PolynomialA3D():
|
|
AttractorKernel(3, 3) {}
|
|
|
|
virtual void operator()() {
|
|
std::swap(vectorNew, vectorOld);
|
|
|
|
vectorNew[0] = parameters[0] + vectorOld[1] - vectorOld[1]*vectorOld[2];
|
|
vectorNew[1] = parameters[1] + vectorOld[2] - vectorOld[2]*vectorOld[0];
|
|
vectorNew[2] = parameters[2] + vectorOld[0] - vectorOld[0]*vectorOld[1];
|
|
}
|
|
};
|
|
|
|
#endif // POLYNOMIALA3D_HPP
|
|
|
|
|