#ifndef POLYNOMIALA3D_HPP #define POLYNOMIALA3D_HPP #include "../AttractorKernel.hpp" class PolynomialA3D : public AttractorKernel { public: PolynomialA3D(): AttractorKernel(3, 3) {} virtual std::string type() { return "polynomial a"; }; 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