#include #ifndef MANDEL_H #define MANDEL_H /* * Written by Mike Rollins * rollins@alumni.wfu.edu * Copyright 2004. */ class Mandel { float ratio; // ratio of iterations to max_iterations float x; // x test point float y; // y test point float p; //power to use int iteration_count; int max_iterations; int converge; // boolean converge or not char version_string[512]; char *mandel_version; public: Mandel() { max_iterations = 100; converge = 1; p = 2.0; mandel_version = "Mandel: Version 1.0"; } // get_ratio() return the ratio of // iteration_count to max_iterations // a number 0 indicates convergence // a number 0