home *** CD-ROM | disk | FTP | other *** search
Text File | 2001-07-04 | 207.4 KB | 10,189 lines |
- comment {
- Formulas by Gedeon Peteri, 1997-2000
- http://www.geocities.com/gedeonp/fractals/frindex.html
- gedeon@infoave.net
-
- This file is a compilation of previously
- published formula files
- gfpcurves.ufm
- gfpeuler.ufm
- gfpfrc.ufm
- chbymod.ufm
- and previously unpublished additions.
-
- Updated: October 1, 2000
-
- gpm- prefix denotes formulas which are my
- translations to UF format, with slight
- modifications, of Fractint formulas by
- other authors, as commented in the formulas.
- In all cases such modifications are limited
- to the addition of a function to the initiation
- section; turning hard coded functions and
- parameters into user definable ones, with the
- original values used as defaults; adding a
- bailout test parameter. In no case did I
- change the loop section of any formula.
- }
-
-
- comment
- {
- ;------------------------------------------------------------------------
-
- ;Formulas loosely based on the equations
- ;of some classic curves as found in any
- ;textbook of elementary analytic geometry.
- ;Please note that I have taken a great deal
- ;of liberty with the mathematics! Pleasing
- ;images, not correct mathematical representation,
- ;was the goal.
-
- ;The equation of the CATENARY is
- ;y=a/2*(e^(x/a) + e^-(x/a))
-
-
- }
-
- gfpcat01 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Catenary
- parameter complex p1;
- parameter complex p3;
- parameter complex p2;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- z=fn2(z^p1) - p3*(fn3(p2/2*(exp(z/p2)+1/exp(z/p2))));
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gfpcat01";
-
- p1.caption="Exponent";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 1";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Parameter 2";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The parametric equations of the CAUSTIC are
- ;x=3/4 cos(t) - 1/4 cos(3t); y=3/4 sin(t) - 1/4 sin(3t)
-
-
- }
-
- gfpcau01 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Caustic
- complex c;
- complex Var_x;
- complex Var_y;
- parameter complex p1;
- parameter complex p2;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- c=asin(imag(z)/cabs(z));
- Var_x=.75*cos(c)-.25*cos(3*c);
- Var_y=.75*sin(c)-.25*sin(3*c);
- z=fn2(z^p1)+p2*fn3(Var_x-flip(Var_y));
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gfpcau01";
-
- p1.caption="Exponent";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- gfpcau02 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Caustic
- complex c;
- complex Var_x;
- complex Var_y;
- parameter complex p1;
- parameter complex p2;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- c=asin(imag(z)/cabs(z));
- Var_x=.75*cos(c)-.25*cos(3*c);
- Var_y=.75*sin(c)-.25*sin(3*c);
- z=fn2(z^p1)+p2*fn3(Var_y-flip(Var_x));
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gfpcau02";
-
- p1.caption="Exponent";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The equation of the CISSOID OF DIOCLES is
- ;y^2=x^3/(2a-x), or y=+/- (x^3/(2a-x))^.5
-
-
- }
-
- gfpcod01 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Cissoid of Diocles
- complex Var_x;
- parameter complex p1;
- complex Var_y;
- parameter complex p3;
- parameter complex p2;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- Var_x=sqrt(z^3/(p1-z));
- Var_y=-sqrt(z^3/(p1-z));
- z=fn2(z^p3) + p2*(fn3(Var_x) + fn4(Var_y));
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gfpcod01";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Exponent";
- p3.default=(2.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The polar equation of the CONCHOID OF NICOMEDES is
- ;r=a*sec(t) +/- b; [sec=1/cos]
-
-
- }
-
- gfpcon01 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Conchoid of Nicomedes
- complex c;
- complex Var_x;
- parameter complex p1;
- complex Var_y;
- parameter complex p3;
- parameter complex p2;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- c=asin(imag(z)/cabs(z));
- Var_x=z*1/cos(c)+p1;
- Var_y=z*1/cos(c)-p1;
- z=fn2(z^p3) + p2*fn3(Var_x)*fn4(Var_y);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gfpcon01";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Exponent";
- p3.default=(2.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The parametric equations of the CYCLOID are
- ;x=a(t-sin(t)); y=a(1-cos*t))
-
-
- }
-
- gfpcyc01 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Cycloid
- complex c;
- complex Var_x;
- complex Var_y;
- parameter complex p1;
- parameter complex p2;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- c=asin(imag(z)/cabs(z));
- Var_x=z*(c-sin(c));
- Var_y=z*(1-cos(c));
- z=fn2(z^p1) + p2*fn3(Var_x+Var_y);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gfpcyc01";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- gfpcyc02 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Cycloid
- complex c;
- complex Var_x;
- complex Var_y;
- parameter complex p1;
- parameter complex p2;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- c=asin(imag(z)/cabs(z));
- Var_x=z*(c-sin(c));
- Var_y=z*(1-cos(c));
- z=fn2(z^p1) + p2*fn3(Var_x/Var_y);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gfpcyc02";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The general equation of a DAMPED VIBRATION CURVE is
- ;y=ae^-kx * sin(bx+c) where k>0.
-
-
- }
-
- gfpdvc01 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Damped vibration curve
- complex Var_y;
- parameter complex p1;
- parameter complex p2;
- parameter complex p3;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(1/pixel);
- }
- void loop(void)
- {
- Var_y=p1*exp(p2*z)*fn2(p3*z);
- z=fn3(z*z) - Var_y;
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gfpdvc01";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Parameter 3";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=16.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- gfpdvc02 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Damped vibration curve
- complex c;
- complex Var_y;
- parameter complex p1;
- parameter complex p2;
- parameter complex p3;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(1/pixel);
- c=fn1(1/pixel);
- }
- void loop(void)
- {
- Var_y=p1*exp(c*z)*fn2(c*z + p2);
- z=fn3(z^p3) - Var_y;
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gfpdvc02";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Parameter 3";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=16.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The parametric equations of the FOLIUM OF DESCARTES are
- ;x=3at/(1+t^3), y=3at^2/(1+t^3); let p1=3a
-
-
- }
-
- gfpfod01 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Folium of Descartes
- complex Var_x;
- parameter complex p1;
- complex Var_y;
- parameter complex p3;
- parameter complex p2;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- Var_x=p1*z/(1+z*z*z);
- Var_y=p1*z*z/(1+z*z*z);
- z=fn1(z^p3) + p2*(fn2(Var_x) + fn3(Var_y));
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gfpfod01";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Exponent";
- p3.default=(2.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "recip" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- gfpfod02 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Folium of Descartes
- complex c;
- complex Var_x;
- parameter complex p1;
- complex Var_y;
- parameter complex p3;
- parameter complex p2;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- c=asin(imag(z)/cabs(z));
- Var_x=p1*z/(1+z*z*z);
- Var_y=p1*z*z/(1+z*z*z);
- z=fn1(z^p3) + p2*(fn2(Var_x*c) + fn3(Var_y*c));
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gfpfod02";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Exponent";
- p3.default=(2.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "recip" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;HYPERBOLIC SPIRAL r*t=a [or r=a/t] and its first derivative r'=-a/(t^2)
-
-
- }
-
- gfphsp01 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Hyperbolic spiral
- parameter complex p1;
- parameter complex p2;
- parameter complex p3;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- z=fn2(z^p1) + p2*fn3(-p3/(z*z));
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gfphsp01";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter 1";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Parameter 2";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The parametric equations of the HYPOCYCLOID are
- ;x=(a-b)cos(t)+b*cos((a-b)/b*t)
- ;y=(a-b)sin(t)-b*sin((a-b)/b*t)
-
-
- }
-
- gfphyc01 {//Formula by Gedeon Peteri, 1999
- //Based on equations of the Hypocycloid
- complex a;
- parameter complex p2;
- complex b;
- complex c;
- complex Var_x;
- complex Var_y;
- parameter complex p1;
- parameter complex p3;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- a=real(p2);
- b=imag(p2);
- }
- void loop(void)
- {
- c=asin(imag(z)/cabs(z));
- Var_x=(a-b)*cos(c)+b*cos(((a-b)/b)*c);
- Var_y=(a-b)*sin(c)-b*sin(((a-b)/b)*c);
- z=fn2(z^p1) + p3*fn3(Var_x+Var_y);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gfphyc01";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter 1";
- p2.default=(1.0,0.5);
-
-
- p3.caption="Parameter 2";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The parametric equations of the Involute of a circle are
- ;x=a*cos(t)+at*sin(t); y=a*sin(t)-at*cos(t)
-
-
- }
-
- gfpinc01 {//Formula by Gedeon Peteri, 1999
- //Based on equations of the Involute of a circle
- complex c;
- complex Var_x;
- parameter complex p2;
- complex Var_y;
- parameter complex p1;
- parameter complex p3;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- c=asin(imag(z)/cabs(z));
- Var_x=p2*cos(c)+p2*c*sin(c);
- Var_y=p2*sin(c)-p2*c*cos(c);
- z=fn2(z^p1) + p3*fn3(Var_x+Var_y);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gfpinc01";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter 1";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Parameter 2";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The equation for the LEMNISCATE OF BERNOULLI is
- ;(x^2+y^2)^2 = 2a^2(x^2-y^2), or 2a^2(x^2-y^2)-(x^2+y^2)^2 = 0
-
-
- }
-
- gfplob01 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Lemniscate of Bernoulli
- complex Var_x;
- complex Var_y;
- parameter complex p1;
- parameter complex p2;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- Var_x=real(z);
- Var_y=imag(z);
- }
- void loop(void)
- {
- z=fn2(z^p1)+p2*fn3(Var_x*Var_x-Var_y*Var_y-sqr(Var_x*Var_x+Var_y*Var_y));
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gfplob01";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- gfplob02 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Lemniscate of Bernoulli
- complex Var_x;
- complex Var_y;
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- Var_x=real(z);
- Var_y=imag(z);
- }
- void loop(void)
- {
- c=asin(imag(z)/cabs(z));
- z=fn2(z^p1)+p2*(fn3(c)*fn4(Var_x*Var_x-Var_y*Var_y-sqr(Var_x*Var_x+Var_y*Var_y)));
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gfplob02";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gfplob03 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Lemniscate of Bernoulli
- complex Var_x;
- complex Var_y;
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- Var_x=real(z);
- Var_y=imag(z);
- }
- void loop(void)
- {
- c=asin(imag(z)/cabs(z));
- z=fn2(z^p1)+p2*(fn3(cos(c))*fn4(Var_x*Var_x-Var_y*Var_y-sqr(Var_x*Var_x+Var_y*Var_y)));
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gfplob03";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The polar equation of the LIMACON OF PASCAL is
- ;r=2a*cos(t)+b
-
-
- }
-
- gfplop01 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Limacon of Pascal
- parameter complex p1;
- parameter complex p2;
- parameter complex p3;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- z=fn2(z^p1) + fn3(2*p2*cos(z)+p3);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gfplop01";
-
- p1.caption="Exponent";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 1";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Parameter 2";
- p3.default=(2.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;LOGARITHMIC SPIRAL r=e^(a*t) and first derivative r'=e^(a*t) * log e * a
-
-
- }
-
- gfplsp01 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Logarithmic spiral
- parameter complex p1;
- parameter complex p2;
- parameter complex p3;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- z=fn2(z^p1) + p2*fn3(exp(p3*z));
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gfplsp01";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter 1";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Parameter 2";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- gfplsp02 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Logarithmic spiral
- parameter complex p1;
- parameter complex p2;
- parameter complex p3;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- z=fn2(z^p1) + p2*fn3(exp(p3*z)*log(e*p3));
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gfplsp02";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter 1";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Parameter 2";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The equation of the PROBABILITY CURVE is
- ;y=e^(-x^2/2)/(2*pi)^(1/2)
-
-
- }
-
- gfppro01 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Probability curve
- parameter complex p1;
- parameter complex p2;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- z=fn2(z^p1)-p2*fn3(exp(-z*z/2)/sqrt(6.28318530718));
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gfppro01";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The polar equations of the ROSE-LEAVED CURVES are
- ;r=a*sin(nt); and r=a*cos(nt)); if n is even curve has 2n loops
-
-
- }
-
- gfpros01 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Rose-leaved curve
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter complex p3;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- c=asin(imag(z)/cabs(z));
- z=fn2(z^p1) + p2*fn3(sin(p3*c));
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gfpros01";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter 1";
- p2.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;Some simple algebraic curves
-
-
- }
-
- gfpsac01 {//Formula by Gedeon Peteri, 1999
- //Based on equation y^2=(x-1)(x-2)(x-3)
- complex a;
- parameter complex p1;
- parameter complex p2;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- a=p1;
- }
- void loop(void)
- {
- z=fn2(z^a) + p2*fn3(sqrt((z-1)*(z-2)*(z-3)));
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gfpsac01";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The parametric equations of the STROPHOID are
- ;x=+/-a*sinw, y=a*tanw*(1 +/- sinw)
-
-
- }
-
- gfpstr01 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Strophoid
- complex Var_x;
- parameter complex p1;
- complex Var_y;
- parameter complex p3;
- parameter complex p2;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- Var_x=p1*sin(z);
- Var_y=p1*(tan(z)*(1-sin(z)));
- z=fn2(z^p3) + p2*((fn3(Var_x) + fn4(Var_y)));
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gfpstr01";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(-1.0,0.0);
-
-
- p3.caption="Exponent";
- p3.default=(2.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;Parametric equations of the WITCH OF AGNESI are
- ;x=a*cot alpha, y=a*sin^2 alpha
-
-
- }
-
- gfpwoa01 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Witch of Agnesi
- complex Var_x;
- parameter complex p1;
- complex Var_y;
- parameter complex p3;
- parameter complex p2;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- Var_x=p1*cotan(z);
- Var_y=p1*sin(z)*sin(z);
- z=fn2(z^p3) + p2*(fn3(Var_x)+fn4(Var_y));
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gfpwoa01";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Exponent";
- p3.default=(2.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gfpwoa02 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Witch of Agnesi
- complex Var_x;
- parameter complex p1;
- complex Var_y;
- parameter complex p3;
- parameter complex p2;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- Var_x=p1*cotan(z);
- Var_y=p1*sin(z)*sin(z);
- z=fn2(z^p3) + p2*(fn3(Var_x)*fn4(Var_y));
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gfpwoa02";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Exponent";
- p3.default=(2.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The following formulas are identical to the
- ;preceding ones in every respect except that
- ;a bailout test parameter has been added.
- ;I regret that adding such a parameter occurred
- ;to me long after many par files have been
- ;published by myself and others based on the
- ;formulas not having it, making this otherwise
- ;unnecessary duplication advisable.
-
- ;The equation of the CATENARY is
- ;y=a/2*(e^(x/a) + e^-(x/a))
-
-
- }
-
- gfp2cat01 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Catenary
- parameter complex p1;
- parameter complex p3;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- z=fn2(z^p1) - p3*(fn3(p2/2*(exp(z/p2)+1/exp(z/p2))));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfp2cat01";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter 1";
- p2.default=(2.0,0.0);
-
-
- p3.caption="Parameter 2";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The parametric equations of the CAUSTIC are
- ;x=3/4 cos(t) - 1/4 cos(3t); y=3/4 sin(t) - 1/4 sin(3t)
-
-
- }
-
- gfp2cau01 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Caustic
- complex c;
- complex Var_x;
- complex Var_y;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- c=asin(imag(z)/cabs(z));
- Var_x=.75*cos(c)-.25*cos(3*c);
- Var_y=.75*sin(c)-.25*sin(3*c);
- z=fn2(z^p1)+p2*fn3(Var_x-flip(Var_y));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfp2cau01";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- gfp2cau02 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Caustic
- complex c;
- complex Var_x;
- complex Var_y;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- c=asin(imag(z)/cabs(z));
- Var_x=.75*cos(c)-.25*cos(3*c);
- Var_y=.75*sin(c)-.25*sin(3*c);
- z=fn2(z^p1)+p2*fn3(Var_y-flip(Var_x));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfp2cau02";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The equation of the CISSOID OF DIOCLES is
- ;y^2=x^3/(2a-x), or y=+/- (x^3/(2a-x))^.5
-
-
- }
-
- gfp2cod01 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Cissoid of Diocles
- complex Var_x;
- parameter complex p1;
- complex Var_y;
- parameter complex p3;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- Var_x=sqrt(z^3/(p1-z));
- Var_y=-sqrt(z^3/(p1-z));
- z=fn2(z^p3) + p2*(fn3(Var_x) + fn4(Var_y));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfp2cod01";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Exponent";
- p3.default=(2.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The polar equation of the CONCHOID OF NICOMEDES is
- ;r=a*sec(t) +/- b; [sec=1/cos]
-
-
- }
-
- gfp2con01 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Conchoid of Nicomedes
- complex c;
- complex Var_x;
- parameter complex p1;
- complex Var_y;
- parameter complex p3;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- c=asin(imag(z)/cabs(z));
- Var_x=z*1/cos(c)+p1;
- Var_y=z*1/cos(c)-p1;
- z=fn2(z^p3) + p2*fn3(Var_x)*fn4(Var_y);
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfp2con01";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Exponent";
- p3.default=(2.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The parametric equations of the CYCLOID are
- ;x=a(t-sin(t)); y=a(1-cos*t))
-
-
- }
-
- gfp2cyc01 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Cycloid
- complex c;
- complex Var_x;
- complex Var_y;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- c=asin(imag(z)/cabs(z));
- Var_x=z*(c-sin(c));
- Var_y=z*(1-cos(c));
- z=fn2(z^p1) + p2*fn3(Var_x+Var_y);
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfp2cyc01";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter";
- p2.default=(3.0,1.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- gfp2cyc02 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Cycloid
- complex c;
- complex Var_x;
- complex Var_y;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- c=asin(imag(z)/cabs(z));
- Var_x=z*(c-sin(c));
- Var_y=z*(1-cos(c));
- z=fn2(z^p1) + p2*fn3(Var_x/Var_y);
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfp2cyc02";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter";
- p2.default=(2.0,1.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The general equation of a DAMPED VIBRATION CURVE is
- ;y=ae^-kx * sin(bx+c) where k>0.
-
-
- }
-
- gfp2dvc01 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Damped vibration curve
- complex Var_y;
- parameter complex p1;
- parameter complex p2;
- parameter complex p3;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(1/pixel);
- }
- void loop(void)
- {
- Var_y=p1*exp(p2*z)*fn2(p3*z);
- z=fn3(z*z) - Var_y;
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfp2dvc01";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Parameter 3";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=16.0;
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- gfp2dvc02 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Damped vibration curve
- complex c;
- complex Var_y;
- parameter complex p1;
- parameter complex p2;
- parameter complex p3;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(1/pixel);
- c=fn1(1/pixel);
- }
- void loop(void)
- {
- Var_y=p1*exp(c*z)*fn2(c*z + p2);
- z=fn3(z^p3) - Var_y;
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfp2dvc02";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Parameter 3";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=16.0;
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The parametric equations of the FOLIUM OF DESCARTES are
- ;x=3at/(1+t^3), y=3at^2/(1+t^3); let p1=3a
-
-
- }
-
- gfp2fod01 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Folium of Descartes
- complex Var_x;
- parameter complex p1;
- complex Var_y;
- parameter complex p3;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- Var_x=p1*z/(1+z*z*z);
- Var_y=p1*z*z/(1+z*z*z);
- z=fn1(z^p3) + p2*(fn2(Var_x) + fn3(Var_y));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfp2fod01";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Exponent";
- p3.default=(2.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "recip" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- gfp2fod02 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Folium of Descartes
- complex c;
- complex Var_x;
- parameter complex p1;
- complex Var_y;
- parameter complex p3;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- c=asin(imag(z)/cabs(z));
- Var_x=p1*z/(1+z*z*z);
- Var_y=p1*z*z/(1+z*z*z);
- z=fn1(z^p3) + p2*(fn2(Var_x*c) + fn3(Var_y*c));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfp2fod02";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Exponent";
- p3.default=(2.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "recip" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;HYPERBOLIC SPIRAL r*t=a [or r=a/t] and its first derivative r'=-a/(t^2)
-
-
- }
-
- gfp2hsp01 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Hyperbolic spiral
- parameter complex p1;
- parameter complex p2;
- parameter complex p3;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- z=fn2(z^p1) + p2*fn3(-p3/(z*z));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfp2hsp01";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter 1";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Parameter 2";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The parametric equations of the HYPOCYCLOID are
- ;x=(a-b)cos(t)+b*cos((a-b)/b*t)
- ;y=(a-b)sin(t)-b*sin((a-b)/b*t)
-
-
- }
-
- gfp2hyc01 {//Formula by Gedeon Peteri, 1999
- //Based on equations of the Hypocycloid
- complex a;
- parameter complex p2;
- complex b;
- complex c;
- complex Var_x;
- complex Var_y;
- parameter complex p1;
- parameter complex p3;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- a=real(p2);
- b=imag(p2);
- }
- void loop(void)
- {
- c=asin(imag(z)/cabs(z));
- Var_x=(a-b)*cos(c)+b*cos(((a-b)/b)*c);
- Var_y=(a-b)*sin(c)-b*sin(((a-b)/b)*c);
- z=fn2(z^p1) + p3*fn3(Var_x+Var_y);
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfp2hyc01";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter 1";
- p2.default=(1.0,0.5);
-
-
- p3.caption="Parameter 2";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The parametric equations of the Involute of a circle are
- ;x=a*cos(t)+at*sin(t); y=a*sin(t)-at*cos(t)
-
-
- }
-
- gfp2inc01 {//Formula by Gedeon Peteri, 1999
- //Based on equations of the Involute of a circle
- complex c;
- complex Var_x;
- parameter complex p2;
- complex Var_y;
- parameter complex p1;
- parameter complex p3;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- c=asin(imag(z)/cabs(z));
- Var_x=p2*cos(c)+p2*c*sin(c);
- Var_y=p2*sin(c)-p2*c*cos(c);
- z=fn2(z^p1) + p3*fn3(Var_x+Var_y);
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfp2inc01";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter 1";
- p2.default=(0.5,0.0);
-
-
- p3.caption="Parameter 2";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The equation for the LEMNISCATE OF BERNOULLI is
- ;(x^2+y^2)^2 = 2a^2(x^2-y^2), or 2a^2(x^2-y^2)-(x^2+y^2)^2 = 0
-
-
- }
-
- gfp2lob01 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Lemniscate of Bernoulli
- complex Var_x;
- complex Var_y;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- Var_x=real(z);
- Var_y=imag(z);
- }
- void loop(void)
- {
- z=fn2(z^p1)+p2*fn3(Var_x*Var_x-Var_y*Var_y-sqr(Var_x*Var_x+Var_y*Var_y));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfp2lob01";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- gfp2lob02 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Lemniscate of Bernoulli
- complex Var_x;
- complex Var_y;
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- Var_x=real(z);
- Var_y=imag(z);
- }
- void loop(void)
- {
- c=asin(imag(z)/cabs(z));
- z=fn2(z^p1)+p2*(fn3(c)*fn4(Var_x*Var_x-Var_y*Var_y-sqr(Var_x*Var_x+Var_y*Var_y)));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfp2lob02";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gfp2lob03 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Lemniscate of Bernoulli
- complex Var_x;
- complex Var_y;
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- Var_x=real(z);
- Var_y=imag(z);
- }
- void loop(void)
- {
- c=asin(imag(z)/cabs(z));
- z=fn2(z^p1)+p2*(fn3(cos(c))*fn4(Var_x*Var_x-Var_y*Var_y-sqr(Var_x*Var_x+Var_y*Var_y)));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfp2lob03";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The polar equation of the LIMACON OF PASCAL is
- ;r=2a*cos(t)+b
-
-
- }
-
- gfp2lop01 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Limacon of Pascal
- parameter complex p1;
- parameter complex p2;
- parameter complex p3;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- z=fn2(z^p1) + fn3(2*p2*cos(z)+p3);
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfp2lop01";
-
- p1.caption="Exponent";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 1";
- p2.default=(0.01,0.0);
-
-
- p3.caption="Parameter 2";
- p3.default=(2.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;LOGARITHMIC SPIRAL r=e^(a*t) and first derivative r'=e^(a*t) * log e * a
-
-
- }
-
- gfp2lsp01 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Logarithmic spiral
- parameter complex p1;
- parameter complex p2;
- parameter complex p3;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- z=fn2(z^p1) + p2*fn3(exp(p3*z));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfp2lsp01";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter 1";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Parameter 2";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- gfp2lsp02 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Logarithmic spiral
- parameter complex p1;
- parameter complex p2;
- parameter complex p3;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- z=fn2(z^p1) + p2*fn3(exp(p3*z)*log(e*p3));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfp2lsp02";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter 1";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Parameter 2";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The equation of the PROBABILITY CURVE is
- ;y=e^(-x^2/2)/(2*pi)^(1/2)
-
-
- }
-
- gfp2pro01 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Probability curve
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- z=fn2(z^p1)-p2*fn3(exp(-z*z/2)/sqrt(6.28318530718));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfp2pro01";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The polar equations of the ROSE-LEAVED CURVES are
- ;r=a*sin(nt); and r=a*cos(nt)); if n is even curve has 2n loops
-
-
- }
-
- gfp2ros01 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Rose-leaved curve
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter complex p3;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- c=asin(imag(z)/cabs(z));
- z=fn2(z^p1) + p2*fn3(sin(p3*c));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfp2ros01";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter 1";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Parameter 2";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;Some simple algebraic curves
-
-
- }
-
- gfp2sac01 {//Formula by Gedeon Peteri, 1999
- //Based on equation y^2=(x-1)(x-2)(x-3)
- complex a;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- a=p1;
- }
- void loop(void)
- {
- z=fn2(z^a) + p2*fn3(sqrt((z-1)*(z-2)*(z-3)));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfp2sac01";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter";
- p2.default=(0.5,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The parametric equations of the STROPHOID are
- ;x=+/-a*sinw, y=a*tanw*(1 +/- sinw)
-
-
- }
-
- gfp2str01 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Strophoid
- complex Var_x;
- parameter complex p1;
- complex Var_y;
- parameter complex p3;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- Var_x=p1*sin(z);
- Var_y=p1*(tan(z)*(1-sin(z)));
- z=fn2(z^p3) + p2*((fn3(Var_x) + fn4(Var_y)));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfp2str01";
-
- p1.caption="Parameter 1";
- p1.default=(0.4,0.4);
-
-
- p2.caption="Parameter 2";
- p2.default=(-1.0,0.0);
-
-
- p3.caption="Exponent";
- p3.default=(2.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;Parametric equations of the WITCH OF AGNESI are
- ;x=a*cot alpha, y=a*sin^2 alpha
-
-
- }
-
- gfp2woa01 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Witch of Agnesi
- complex Var_x;
- parameter complex p1;
- complex Var_y;
- parameter complex p3;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- Var_x=p1*cotan(z);
- Var_y=p1*sin(z)*sin(z);
- z=fn2(z^p3) + p2*(fn3(Var_x)+fn4(Var_y));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfp2woa01";
-
- p1.caption="Parameter 1";
- p1.default=(0.2,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Exponent";
- p3.default=(2.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gfp2woa02 {//Formula by Gedeon Peteri, 1999
- //Based on equation of Witch of Agnesi
- complex Var_x;
- parameter complex p1;
- complex Var_y;
- parameter complex p3;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- Var_x=p1*cotan(z);
- Var_y=p1*sin(z)*sin(z);
- z=fn2(z^p3) + p2*(fn3(Var_x)*fn4(Var_y));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfp2woa02";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Exponent";
- p3.default=(2.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gp-hyc {//Formula by Gedeon Peteri, 2000
- //Based on the parametric equations of the
- //HYPOCYCLOID
- //x = (a-b)cos(t) + b*cos((a-b)/b*t)
- //y = (a-b)sin(t) - b*sin((a-b)/b*t)
- complex w;
- complex Var_x;
- parameter complex a;
- parameter complex b;
- complex Var_y;
- parameter int var;
- parameter complex exp;
- parameter complex c;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z = pfunc(pixel);
- }
- void loop(void)
- {
- w = asin(imag(z)/cabs(z));
- Var_x = (a-b)*cos(w) + b*cos(((a-b)/b)*w);
- Var_y = (a-b)*sin(w) - b*sin(((a-b)/b)*w);
- if ((var == 0))
- {//Variation 1
- z = lfunc1(z^exp) + c*lfunc2(Var_x + Var_y);
- }
- else if ((var == 1))
- {//Variation 2
- z = lfunc1(z^exp) + c*lfunc2(Var_x + flip(Var_y));
- }
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title = "gp-hyc";
- this.maxiter = 500;
- this.periodicity = 0;
- this.center = (-1.0,1.0);
- this.magn = 2.5;
-
- exp.caption = "Exponent";
- exp.default = (2.0,0.0);
-
-
- a.caption = "Parameter 1";
- a.default = (0.65,0.0);
-
-
- b.caption = "Parameter 2";
- b.default = (0.35,0.0);
-
-
- c.caption = "Parameter 3";
- c.default = (0.67,0.33);
-
-
- bailout.caption = "Bailout value";
- bailout.default = 8.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- var.caption = "Variations";
- var.default = 0;
- var.enum = "Variation 1\nVariation 2";
-
-
- pfunc.caption = "Pixel Function";
- pfunc.default = "exp" ;
-
-
- lfunc1.caption = "Function 1";
- lfunc1.default = "ident" ;
-
-
- lfunc2.caption = "Function 2";
- lfunc2.default = "sinh" ;
-
- }
- }
-
-
- gp-bas01 {//Gedeon Peteri, January 2000
- parameter complex pexp;
- parameter complex exp;
- parameter complex const;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z = pfunc(pixel^pexp);
- }
- void loop(void)
- {
- z = lfunc1(lfunc2(z^exp)) + const;
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title = "gp-bas01";
- this.maxiter = 500;
- this.periodicity = 0;
- this.magn = 0.75;
-
- pexp.caption = "Pixel Exponent";
- pexp.default = (1.0,0.0);
- pexp.hint = "Exponent of 'pixel' in init section";
-
-
- exp.caption = "Exponent";
- exp.default = (1.0,0.0);
- exp.hint = "Exponent of 'z' in loop section";
-
-
- const.caption = "Constant";
- const.default = (0.33,0.0);
-
-
- bailout.caption = "Bailout value";
- bailout.default = 4.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- pfunc.caption = "Pixel Function";
- pfunc.default = "recip" ;
-
-
- lfunc1.caption = "Function 1";
- lfunc1.default = "ident" ;
- lfunc1.hint = "First of two nested functions";
-
-
- lfunc2.caption = "Function 2";
- lfunc2.default = "sqr" ;
- lfunc2.hint = "Second of two nested functions";
-
- }
- }
-
-
- gp-bas02 {//Gedeon Peteri, January 2000
- parameter complex pexp;
- parameter complex exp1;
- parameter complex const1;
- parameter complex exp2;
- parameter complex const2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z = pfunc(pixel ^ pexp);
- }
- void loop(void)
- {
- z = lfunc((z^exp1 + const1)^exp2) + const2;
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title = "gp-bas02";
- this.maxiter = 500;
- this.periodicity = 0;
-
- pexp.caption = "Pixel Exponent";
- pexp.default = (1.0,0.0);
- pexp.hint = "Exponent of 'pixel' in init section";
-
-
- exp1.caption = "First Exponent";
- exp1.default = (3.0,0.0);
- exp1.hint = "Exponent of 'z' in loop section";
-
-
- exp2.caption = "Second Exponent";
- exp2.default = (0.5,0.0);
- exp2.hint = "Exponent of 'z^@exp1+@const1' in loop section";
-
-
- const1.caption = "Constant 1";
- const1.default = (0.2,-0.5);
-
-
- const2.caption = "Constant 2";
- const2.default = (0.0,0.0);
-
-
- bailout.caption = "Bailout value";
- bailout.default = 64.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- pfunc.caption = "Pixel Function";
- pfunc.default = "ident" ;
-
-
- lfunc.caption = "Function";
- lfunc.default = "ident" ;
- lfunc.hint = "Function in the loop section";
-
- }
- }
-
-
- gp-exp01 {//e^(|cosx|^(1/2)-|sinx|^(1/2))
- complex Var_x;
- parameter complex a;
- complex Var_y;
- parameter complex b;
- parameter int var;
- parameter complex exp;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=pfunc(pixel);
- }
- void loop(void)
- {
- Var_x = a*lfunc1(sqrt(abs(imag(z)/cabs(z))));
- Var_y = b*lfunc2(sqrt(abs(real(z)/cabs(z))));
- if ((var == 0))
- {//Variation 1
- z = z^exp - lfunc3(exp(Var_y-Var_x));
- }
- else if ((var == 1))
- {//Variation 2
- z = z^exp - lfunc3(exp(Var_x-Var_y));
- }
- else if ((var == 2))
- {//Variation 3
- z = z^exp - lfunc3(exp(Var_x+Var_y));
- }
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gp-exp01";
- this.maxiter = 250;
- this.periodicity = 0;
-
- a.caption="Parameter 1";
- a.default=(0.25,0.0);
-
-
- b.caption="Parameter 2";
- b.default=(0.25,0.0);
-
-
- exp.caption="Exponent";
- exp.default=(2.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=100.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- var.caption = "Variations";
- var.default = 0;
- var.enum = "Variation 1\nVariation 2\nVariation 3";
-
-
- lfunc1.caption="Function 1";
- lfunc1.default = "ident" ;
-
-
- lfunc2.caption="Function 2";
- lfunc2.default = "ident" ;
-
-
- lfunc3.caption="Function 3";
- lfunc3.default = "ident" ;
-
-
- pfunc.caption="Pixel Function";
- pfunc.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;Formulas by Gedeon Peteri
- ;gfpeul04/05/06 (1999) are identical to
- ;gfpeul01/02/03 (1997) respectively,
- ;but with a bailout test parameter added.
-
-
- }
-
- gfpeul01 {//Formula by Gedeon Peteri, 1997
- //Eulers's equation e^(ipi)+1=0
- parameter complex p1;
- parameter complex p2;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- z=fn2(z^p1) + p2*fn3(exp(imag(z)*pi)+1);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gfpeul01";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter";
- p2.default=(0.2,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- gfpeul02 {//Formula by Gedeon Peteri, 1997
- //Eulers's equation e^(ipi)+1=0
- parameter complex p1;
- parameter complex p2;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- z=fn2(z^p1) + p2*fn3(exp(imag(z)*pi)-1);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gfpeul02";
-
- p1.caption="Exponent";
- p1.default=(3.0,0.0);
-
-
- p2.caption="Parameter";
- p2.default=(1.0,0.35);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- gfpeul03 {//Formula by Gedeon Peteri, 1997
- //Eulers's equation e^(ipi)+1=0
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter real bailout;
-
- void init(void)
- {
- z=pixel;
- c=pixel;
- }
- void loop(void)
- {
- z=fn1(z^p1) + p2*fn2(exp(imag(c)*pi)+1);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gfpeul03";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter";
- p2.default=(0.25,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gfpeul04 {//Formula by Gedeon Peteri, 1999
- //Eulers's equation e^(ipi)+1=0
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- z=fn2(z^p1) + p2*fn3(exp(imag(z)*pi)+1);
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfpeul04";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter";
- p2.default=(0.2,0.0);
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- bailout.caption = "Bailout value";
- bailout.default = 4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- gfpeul05 {//Formula by Gedeon Peteri, 1999
- //Eulers's equation e^(ipi)+1=0
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- z=fn2(z^p1) + p2*fn3(exp(imag(z)*pi)-1);
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfpeul05";
-
- p1.caption="Exponent";
- p1.default=(3.0,0.0);
-
-
- p2.caption="Parameter";
- p2.default=(1.0,0.35);
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- bailout.caption = "Bailout value";
- bailout.default = 4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- gfpeul06 {//Formula by Gedeon Peteri, 1999
- //Eulers's equation e^(ipi)+1=0
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=pixel;
- c=pixel;
- }
- void loop(void)
- {
- z=fn1(z^p1) + p2*fn2(exp(imag(c)*pi)+1);
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfpeul06";
-
- p1.caption="Exponent";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter";
- p2.default=(0.25,0.0);
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- bailout.caption = "Bailout value";
- bailout.default = 4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;Source: chebymod.ufm:
-
- }
-
- comment {;This file contains selected formulas from Morgan L. Owens' Chebyshev
- ;collection, translated from the original Fractint to Ultra Fractal format.
- ;Modifications are limited to:
- ;(1) generalization of hard coded bailouts and functions;
- ;(2) addition of user definable functions;
- ;(3) defaults have been set to produce the results of the original formula.
- ;This file was prepared by Gedeon Peteri, 1999.}
-
-
- gpm-al03-20 {//chby20 / Alpha03-20 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, November 1999
- complex t;
- parameter complex p1;
- complex Var_x;
- complex Var_y;
- complex x2;
- complex y2;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- t=p1;
- }
- void loop(void)
- {
- Var_x=real(z);
- Var_y=imag(z);
- x2=Var_x*Var_x;
- y2=Var_y*Var_y;
- Var_y=Var_y+t*fn1((((Var_x-3)*Var_x+6)*Var_x-6)/(exp(Var_x)*x2*x2));
- Var_x=Var_x-t*fn2((((Var_y-3)*Var_y+6)*Var_y-6)/(exp(Var_y)*y2*y2));
- z=Var_x+fn3(Var_y);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gpm-al03-20";
-
- p1.caption="Parameter";
- p1.default=(0.1,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "sin" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "sin" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "flip" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-c02-15 {//chby15 / c02-15 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, March 1999
- complex r;
- parameter complex p1;
- complex f;
- complex fd;
- complex oz;
- parameter real bailout;
-
- void init(void)
- {
- z=fn3(pixel);
- r=p1;
- }
- void loop(void)
- {
- f=fn1(z*z-2);
- fd=fn2(2*z);
- oz=z;
- z=z-r*f/fd;
- }
- bool bailout(void)
- {
- return(bailout<=sqrt(|(|z|)-(|oz|)|));
- }
- void description(void)
- {
- this.title="gpm-c02-15";
-
- p1.caption="Parameter";
- p1.default=(2.0,1.0);
-
-
- bailout.caption="Bailout";
- bailout.default=1.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- gpm-c03-01 {//chby1 / c03-01 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, March 1999
- complex t;
- parameter complex p1;
- complex Var_x;
- complex Var_y;
- complex tx;
- complex ty;
- parameter real bailout;
-
- void init(void)
- {
- z=fn3(pixel);
- t=p1;
- }
- void loop(void)
- {
- Var_x=real(z);
- Var_y=imag(z);
- tx=fn1(Var_x*(Var_x*Var_x-3));
- ty=fn2(Var_y*(Var_y*Var_y-3));
- Var_x=Var_x-t*ty;
- Var_y=Var_y+t*tx;
- z=Var_x+fn4(Var_y);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gpm-c03-01";
-
- p1.caption="Parameter";
- p1.default=(0.25,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "flip" ;
-
- }
- }
-
-
- gpm-c04-01 {//chby1 / c04-01 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, April 1999
- complex t;
- parameter complex p1;
- complex Var_x;
- complex Var_y;
- complex xx;
- complex yy;
- complex tx;
- parameter complex p2;
- complex ty;
- parameter complex p3;
- parameter real bailout;
-
- void init(void)
- {
- z=fn3(pixel);
- t=p1;
- }
- void loop(void)
- {
- Var_x=real(z);
- Var_y=imag(z);
- xx=Var_x*Var_x;
- yy=Var_y*Var_y;
- tx=p2*fn1(xx*(xx-4)+2);
- ty=p3*fn2(yy*(yy-4)+2);
- Var_x=Var_x-t*ty;
- Var_y=Var_y+t*tx;
- z=Var_x+fn4(Var_y);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gpm-c04-01";
-
- p1.caption="Parameter 1";
- p1.default=(0.25,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Parameter 3";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "flip" ;
-
- }
- }
-
-
- gpm-c05-01 {//chby1 / c05-01 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, March 1999
- complex t;
- parameter complex p1;
- complex Var_x;
- complex Var_y;
- complex xx;
- complex yy;
- complex tx;
- complex ty;
- parameter real bailout;
-
- void init(void)
- {
- z=fn3(pixel);
- t=p1;
- }
- void loop(void)
- {
- Var_x=real(z);
- Var_y=imag(z);
- xx=Var_x*Var_x;
- yy=Var_y*Var_y;
- tx=fn1(Var_x*(xx*(xx-5)+3));
- ty=fn2(Var_y*(yy*(yy-5)+3));
- Var_x=Var_x-t*ty;
- Var_y=Var_y+t*tx;
- z=Var_x+fn4(Var_y);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gpm-c05-01";
-
- p1.caption="Parameter";
- p1.default=(0.5,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "flip" ;
-
- }
- }
-
-
- gpm-c06-05 {//chby5 / c06-05 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, April 1999
- complex r;
- parameter complex p1;
- complex zz;
- complex f;
- parameter complex p2;
- complex fd;
- parameter complex p3;
- complex oz;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- r=p1;
- }
- void loop(void)
- {
- zz=z*z;
- f=p2*fn1(zz*(zz*(zz-6)+7)-2);
- fd=p3*fn2(2*z*(3*zz*(zz-4)+7));
- oz=z;
- z=z-fn3(r*f/fd);
- }
- bool bailout(void)
- {
- return(bailout<=|z-oz|);
- }
- void description(void)
- {
- this.title="gpm-c06-05";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,1.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(2.5,0.0);
-
-
- p3.caption="Parameter 3";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=1.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-c07-09 {//chby9 / c07-09 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, March 1999
- complex t;
- parameter complex p1;
- complex a;
- parameter complex p2;
- complex b;
- parameter complex p3;
- complex Var_x;
- complex Var_y;
- complex xx;
- complex yy;
- complex tx;
- complex ty;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- t=p1;
- a=p2;
- b=p3;
- }
- void loop(void)
- {
- Var_x=real(z);
- Var_y=imag(z);
- xx=Var_x*Var_x;
- yy=Var_y*Var_y;
- tx=a*fn1(Var_x*(xx*(xx*(xx-7)+12)-5));
- ty=b*fn2(Var_y*(yy*(yy*(yy-7)+12)-5));
- Var_x=Var_x-t*ty;
- Var_y=Var_y+t*tx;
- z=fn3(Var_x+flip(Var_y));
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gpm-c07-09";
-
- p1.caption="Parameter 1";
- p1.default=(0.5,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Parameter 3";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-c07-15 {//chby15 / c07-15 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, March 1999
- complex r;
- parameter complex p1;
- complex zz;
- complex f;
- complex fd;
- complex oz;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- r=p1;
- }
- void loop(void)
- {
- zz=z*z;
- f=fn1(z*(zz*(zz*(zz-7)+12)-5));
- fd=fn2(zz*(7*zz*(zz-5)+36)-5);
- oz=z;
- z=z-fn3(r*f/fd);
- }
- bool bailout(void)
- {
- return(bailout<=sqrt(|(|z|)-(|oz|)|));
- }
- void description(void)
- {
- this.title="gpm-c07-15";
-
- p1.caption="Parameter";
- p1.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=1.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-c10-12 {//chby12 / c10-12 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, November 1999
- parameter complex p1;
- complex const;
- complex zz;
- parameter complex p2;
- parameter real bailout;
-
- void init(void)
- {
- z=p1;
- const=pixel;
- }
- void loop(void)
- {
- zz=z*z;
- z=p2*fn1((zz*(zz*(zz*(zz*(zz-10)+33)-42)+19)-2))*const;
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gpm-c10-12";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(0.5,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=100.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
- }
- }
-
-
- gpm-c10-13 {//chby13 / c10-13 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, March 1999
- complex r;
- parameter complex p1;
- complex zz;
- complex f;
- complex fd;
- complex fdd;
- complex oz;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- r=p1;
- }
- void loop(void)
- {
- zz=z*z;
- f=fn1(zz*(zz*(zz*(zz*(zz-10)+33)-42)+19)-2);
- fd=fn2(2*z*(zz*(zz*(5*zz*(zz-8)+99)-84)+19));
- fdd=fn3(2*zz*(5*zz*(zz*(9*zz-56)+99)-252)+38);
- oz=z;
- z=z-r*f/(fd-fdd*f/(fd+fd));
- }
- bool bailout(void)
- {
- return(bailout<=sqrt(|(|z|)-(|oz|)|));
- }
- void description(void)
- {
- this.title="gpm-c10-13";
-
- p1.caption="Parameter";
- p1.default=(3.0,1.0);
-
-
- bailout.caption="Bailout";
- bailout.default=1.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-c10-15 {//chby15 / c10-15 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, November 1999
- complex r;
- parameter complex p1;
- complex zz;
- complex f;
- parameter complex p2;
- complex fd;
- parameter complex p3;
- complex oz;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- r=p1;
- }
- void loop(void)
- {
- zz=z*z;
- f=p2*fn1(zz*(zz*(zz*(zz*(zz-10)+33)-42)+19)-2);
- fd=p3*fn2(2*z*(zz*(zz*(5*zz*(zz-8)+99)-84)+19));
- oz=z;
- z=fn3(z-r*f/fd);
- }
- bool bailout(void)
- {
- return(bailout<=sqrt(|(|z|)-(|oz|)|));
- }
- void description(void)
- {
- this.title="gpm-c10-15";
-
- p1.caption="Parameter 1";
- p1.default=(3.0,3.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(2.0,0.0);
-
-
- p3.caption="Parameter 3";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=1.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-ca04-21 {//chby21 / ca04-21 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, November 1999
- complex a;
- parameter complex p1;
- complex b;
- complex c;
- complex d;
- complex t;
- parameter complex p2;
- complex Var_x;
- complex Var_y;
- complex xx;
- complex yy;
- parameter real bailout;
-
- void init(void)
- {
- a=p1;
- b=a*(a+1)/2;
- c=4*(a+2);
- d=(a+3)/3;
- t=real(p2);
- z=pixel;
- }
- void loop(void)
- {
- Var_x=real(z);
- Var_y=imag(z);
- xx=Var_x*Var_x;
- Var_y=Var_y+t*(fn1(b*(c*xx*(d*xx-1)+1)));
- yy=Var_y*Var_y;
- Var_x=Var_x-t*(fn2(b*(c*yy*(d*yy-1)+1)));
- z=Var_x+fn3(Var_y);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gpm-ca04-21";
-
- p1.caption="Parameter 1";
- p1.default=(0.4,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "flip" ;
-
- }
- }
-
-
- gpm-ca06-01 {//chby1 / ca06-01 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, September 2000
- complex t;
- parameter complex p1;
- complex a;
- parameter complex p2;
- complex b;
- complex c;
- complex d;
- complex k;
- complex Var_x;
- complex Var_y;
- complex xx;
- complex yy;
- complex tx;
- complex ty;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- t=p1;
- a=p2;
- b=a*(a*(a+3)+2)/6;
- c=a+3;
- d=4*(a+4);
- k=(a+a+10)/15;
- }
- void loop(void)
- {
- Var_x=real(z);
- Var_y=imag(z);
- xx=Var_x*Var_x;
- yy=Var_y*Var_y;
- tx=fn1(b*(c*xx*(d*xx*(k*xx-1)+3)-1));
- ty=fn2(b*(c*yy*(d*yy*(k*yy-1)+3)-1));
- Var_x=Var_x-t*ty;
- Var_y=Var_y+t*tx;
- z=Var_x+fn3(Var_y);
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-ca06-01";
-
- p1.caption="Parameter 1";
- p1.default=(0.5,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(0.5,0.0);
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- bailout.caption = "Bailout value";
- bailout.default = 4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "flip" ;
-
-
- fn4.caption="Pixel Function";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-ca06-03 {//chby3 / ca06-03 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, April 1999
- complex const;
- parameter complex p1;
- complex a;
- parameter complex p2;
- complex b;
- complex c;
- complex d;
- complex k;
- complex zz;
- parameter complex p3;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- const=p1;
- a=p2;
- b=a*(a*(a+3)+2)/6;
- c=a+3;
- d=4*(a+4);
- k=(a+a+10)/15;
- }
- void loop(void)
- {
- zz=z*z;
- z=p3*fn1(b*(c*zz*(d*zz*(k*zz-1)+3)-1)+const);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gpm-ca06-03";
-
- p1.caption="Parameter 1";
- p1.default=(0.7,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(0.7,0.0);
-
-
- p3.caption="Parameter 3";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=100.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-ca07-01 {//chby1 / ca07-01 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, April 1999
- complex t;
- parameter complex p1;
- complex a;
- parameter complex p2;
- complex b;
- complex c;
- complex d;
- complex k;
- complex Var_x;
- complex Var_y;
- complex xx;
- complex yy;
- complex tx;
- complex ty;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- t=p1;
- a=p2;
- b=a*(a*(a*(a+6)+11)+6)/21;
- c=a+a+8;
- d=((a+a)*(a+11)+60)/15;
- k=7*(a+5)/5;
- }
- void loop(void)
- {
- Var_x=real(z);
- Var_y=imag(z);
- xx=Var_x*Var_x;
- yy=Var_y*Var_y;
- tx=fn1(b*Var_x*(c*xx*((xx+xx)*(d*xx-k)+7)-7));
- ty=fn2(b*Var_y*(c*yy*((yy+yy)*(d*yy-k)+7)-7));
- Var_x=Var_x-t*ty;
- Var_y=Var_y+t*tx;
- z=fn3(Var_x+flip(Var_y));
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gpm-ca07-01";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,1.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(0.5,0.5);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-exp03-01{//chby1 / exp03-01 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, March 1999
- complex t;
- parameter complex p1;
- complex Var_x;
- complex Var_y;
- complex fx;
- complex fy;
- parameter real bailout;
-
- void init(void)
- {
- z=fn3(pixel);
- t=p1;
- }
- void loop(void)
- {
- Var_x=real(z);
- Var_y=imag(z);
- fx=fn1((1-Var_x)/(exp(Var_x)*2));
- fy=fn2((1-Var_y)/(exp(Var_y)*2));
- Var_x=Var_x-t*fy;
- Var_y=Var_y+t*fx;
- z=Var_x+fn4(Var_y);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gpm-exp03-01";
-
- p1.caption="Parameter";
- p1.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "flip" ;
-
- }
- }
-
-
- gpm-exp06-27{//chby27 / exp06-27 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, March 1999
- complex t;
- parameter complex p1;
- complex h;
- parameter complex p2;
- complex Var_x;
- complex Var_y;
- complex newx;
- complex newy;
- complex tx;
- complex ty;
- parameter real bailout;
-
- void init(void)
- {
- z=fn3(pixel);
- t=p1;
- h=p2;
- Var_x=real(pixel);
- Var_y=imag(pixel);
- }
- void loop(void)
- {
- newx=Var_x-h*sin(Var_y+tan(3*Var_y));
- newy=Var_y-h*sin(Var_x+tan(3*Var_x));
- Var_x=newx;
- Var_y=newy;
- tx=fn1(((((Var_x-1)*Var_x/120+1/60)*Var_x-1/20)*Var_x+1/5)/exp(Var_x));
- ty=fn2(((((Var_y-1)*Var_y/120+1/60)*Var_y-1/20)*Var_y+1/5)/exp(Var_y));
- Var_x=Var_x-t*ty;
- Var_y=Var_y+t*tx;
- z=Var_x+fn4(Var_y);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gpm-exp06-27";
-
- p1.caption="Parameter 1";
- p1.default=(0.5,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "flip" ;
-
- }
- }
-
-
- gpm-h04-14 {//chby14 / h04-14 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, November 1999
- complex zz;
- complex f;
- parameter complex p1;
- complex fd;
- parameter complex p2;
- complex oz;
- complex w;
- complex ww;
- complex fw;
- parameter complex p3;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- }
- void loop(void)
- {
- zz=z*z;
- f=p1*fn1(4*(4*zz*(zz-3)+3));
- fd=p2*fn2(32*z*(zz+zz-3));
- oz=z;
- w=z-f/fd;
- ww=w*w;
- fw=p3*fn3(4*(4*ww*(ww-3)+3));
- z=w-fw/fd;
- }
- bool bailout(void)
- {
- return(bailout<=sqrt(|(|z|)-(|oz|)|));
- }
- void description(void)
- {
- this.title="gpm-h04-14";
-
- p1.caption="Parameter 1";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Parameter 3";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=1.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-h04-15 {//chby15 / h04-14 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, November 1999
- complex r;
- parameter complex p1;
- complex zz;
- complex f;
- parameter complex p2;
- complex fd;
- parameter complex p3;
- complex oz;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- r=p1;
- }
- void loop(void)
- {
- zz=z*z;
- f=p2*fn1(4*(4*zz*(zz-3)+3));
- fd=p3*fn2(32*z*(2*zz-3));
- oz=z;
- z=fn3(z-r*f/fd);
- }
- bool bailout(void)
- {
- return(bailout<=sqrt(|(|z|)-(|oz|)|));
- }
- void description(void)
- {
- this.title="gpm-h04-15";
-
- p1.caption="Parameter 1";
- p1.default=(2.0,2.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Parameter 3";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=1.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-h04-26 {//chby26 / h04-26 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, October 1999
- complex t;
- parameter complex p1;
- complex v;
- parameter complex p3;
- complex Var_x;
- complex Var_y;
- complex xx;
- complex tx;
- complex yy;
- complex ty;
- complex w;
- parameter complex p2;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- t=p1;
- v=p3;
- }
- void loop(void)
- {
- Var_x=real(z);
- Var_y=imag(z);
- xx=Var_x*Var_x;
- tx=(fn1(4*(4*xx*(xx-3)+3)));
- yy=Var_y*Var_y;
- ty=(fn1(4*(4*yy*(yy-3)+3)));
- Var_x=Var_x-t*ty;
- Var_y=Var_y+t*tx;
- w=fn1(Var_x+flip(Var_y));
- z=fn3(v/fn2(w*w))+p2;
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gpm-h04-26";
-
- p1.caption="Parameter 1";
- p1.default=(0.1,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Parameter 3";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-h06-13 {//chby13 / h06-13 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, October 1999
- complex r;
- parameter complex p1;
- complex zz;
- complex a;
- complex f;
- complex fd;
- complex fdd;
- complex oz;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- r=p1;
- }
- void loop(void)
- {
- zz=z*z;
- a=2*zz;
- f=fn1(8*(a*(a*(a-15)+21)-15));
- fd=fn2(96*z*(4*zz*(zz-5)+7));
- fdd=fn3(96*(20*zz*(zz-3)+7));
- oz=z;
- z=z-r*f/(fd-fdd*f/(fd+fd));
- }
- bool bailout(void)
- {
- return(bailout<=sqrt(|(|z|)-(|oz|)|));
- }
- void description(void)
- {
- this.title="gpm-h06-13";
-
- p1.caption="Parameter";
- p1.default=(2.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=1.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-he02-01 {//chby1 / he02-01 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, April 1999
- complex t;
- parameter complex p1;
- complex s;
- complex Var_x;
- complex Var_y;
- complex tx;
- parameter complex p2;
- complex ty;
- parameter complex p3;
- parameter real bailout;
-
- void init(void)
- {
- z=fn3(pixel);
- t=p1;
- s=sqrt(2);
- }
- void loop(void)
- {
- Var_x=real(z);
- Var_y=imag(z);
- tx=p2*fn1(s*Var_x*Var_x-1);
- ty=p3*fn2(s*Var_y*Var_y-1);
- Var_x=Var_x-t*ty;
- Var_y=Var_y+t*tx;
- z=Var_x+fn4(Var_y);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gpm-he02-01";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Parameter 3";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "flip" ;
-
- }
- }
-
-
- gpm-he02-15 {//chby15 / he02-15 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, March 1999
- complex r;
- parameter complex p1;
- complex s;
- complex a;
- complex f;
- complex fd;
- complex oz;
- parameter real bailout;
-
- void init(void)
- {
- z=fn3(pixel);
- r=p1;
- s=sqrt(2);
- a=2*s;
- }
- void loop(void)
- {
- f=fn1(s*z*z-1);
- fd=fn2(a*z);
- oz=z;
- z=z-r*f/fd;
- }
- bool bailout(void)
- {
- return(bailout<=sqrt(|(|z|)-(|oz|)|));
- }
- void description(void)
- {
- this.title="gpm-he02-15";
-
- p1.caption="Parameter";
- p1.default=(1.0,1.0);
-
-
- bailout.caption="Bailout";
- bailout.default=1.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- gpm-he08-20 {//chby20 / he08-20 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, March 1999
- complex t;
- parameter complex p1;
- complex s;
- complex a;
- complex b;
- complex Var_x;
- complex Var_y;
- complex xx;
- complex yy;
- parameter real bailout;
-
- void init(void)
- {
- z=fn3(pixel);
- t=p1;
- s=sqrt(2);
- a=185*s+25;
- b=41*s-141;
- }
- void loop(void)
- {
- Var_x=real(z);
- Var_y=imag(z);
- xx=Var_x*Var_x;
- yy=Var_y*Var_y;
- Var_y=Var_y+t*(fn1(xx*(xx*(xx*(s*(xx-27)-1)+a)+b)+105));
- Var_x=Var_x-t*(fn2(yy*(yy*(yy*(s*(yy-27)-1)+a)+b)+105));
- z=Var_x+fn4(Var_y);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gpm-he08-20";
-
- p1.caption="Parameter";
- p1.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "sin" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "sin" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "flip" ;
-
- }
- }
-
-
- gpm-l02-01 {//chby1 / l02-01 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, November 1999
- complex t;
- parameter complex p1;
- complex Var_x;
- complex Var_y;
- complex tx;
- parameter complex p2;
- complex ty;
- parameter complex p3;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- t=p1;
- }
- void loop(void)
- {
- Var_x=real(z);
- Var_y=imag(z);
- tx=p2*fn1(Var_x*(Var_x/2-2)+1);
- ty=p3*fn2(Var_y*(Var_y/2-2)+1);
- Var_x=Var_x-t*ty;
- Var_y=Var_y+t*tx;
- z=Var_x+fn3(Var_y);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gpm-l02-01";
-
- p1.caption="Parameter 1";
- p1.default=(0.5,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Parameter 3";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "flip" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-l08-13 {//chby13 / l08-13 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, March 1999
- complex f;
- complex fd;
- complex fdd;
- complex oz;
- parameter complex p1;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- }
- void loop(void)
- {
- f=fn1(z*(z*(z*(z*(z*(z*(z*(z/32-2)/7+7)/3-28)/5+35)/4-28)/3+14)-8)+1);
- fd=fn2(z*(z*(z*(z*(z*(z*(z/28-2)/3+14)/20-7)+35)/3-28)+28)-8);
- fdd=fn3((z*(z*(z*(z*(z*(z/12-4)+70)/20-28)/3+35)-56)+28));
- oz=z;
- z=z-p1*(f/(fd-fdd*f/(fd+fd)));
- }
- bool bailout(void)
- {
- return(bailout<=sqrt(|(|z|)-(|oz|)|));
- }
- void description(void)
- {
- this.title="gpm-l08-13";
-
- p1.caption="Parameter";
- p1.default=(2.0,1.0);
-
-
- bailout.caption="Bailout";
- bailout.default=1.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-la08-01{//chby1 / la08-01 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, April 1999
- complex t;
- parameter complex p1;
- complex a;
- parameter complex p2;
- complex j;
- complex h;
- complex g;
- complex f;
- complex k;
- complex d;
- complex c;
- complex b;
- complex Var_x;
- complex Var_y;
- complex tx;
- complex ty;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- t=p1;
- a=p2;
- j=(a+8)/5040;
- h=j*(a+7)*(7/2);
- g=h*(a+6)*2;
- f=g*(a+5)*(5/4);
- k=f*(a+4)*(4/5);
- d=k*(a+3)/2;
- c=d*(a+2)*(2/7);
- b=c*(a+1)/8;
- }
- void loop(void)
- {
- Var_x=real(z);
- Var_y=imag(z);
- tx=fn1(Var_x*(Var_x*(Var_x*(Var_x*(Var_x*(Var_x*(Var_x*(Var_x/40320-j)+h)-g)+f)-k)+d)-c)+b);
- ty=fn2(Var_y*(Var_y*(Var_y*(Var_y*(Var_y*(Var_y*(Var_y*(Var_y/40320-j)+h)-g)+f)-k)+d)-c)+b);
- Var_x=Var_x-t*ty;
- Var_y=Var_y+t*tx;
- z=fn3(Var_x+flip(Var_y));
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gpm-la08-01";
-
- p1.caption="Parameter 1";
- p1.default=(0.1,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(0.1,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-p03-01 {//chby1 / p03-01 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, November 1999
- complex t;
- parameter complex p1;
- complex Var_x;
- complex Var_y;
- complex tx;
- parameter complex p2;
- complex ty;
- parameter complex p3;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- t=p1;
- }
- void loop(void)
- {
- Var_x=real(z);
- Var_y=imag(z);
- tx=p2*fn1(Var_x*(5*Var_x*Var_x-3)/2);
- ty=p3*fn2(Var_y*(5*Var_y*Var_y-3)/2);
- Var_x=Var_x-t*ty;
- Var_y=Var_y+t*tx;
- z=Var_x+fn3(Var_y);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gpm-p03-01";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Parameter 3";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "flip" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-p04-23 {//chby23 / p04-23 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, March 1999
- complex t;
- parameter complex p1;
- complex Var_x;
- complex Var_y;
- complex xx;
- complex yy;
- complex tx;
- complex ty;
- parameter real bailout;
-
- void init(void)
- {
- z=fn3(pixel);
- t=p1;
- }
- void loop(void)
- {
- Var_x=real(z);
- Var_y=imag(z);
- xx=Var_x*Var_x;
- yy=Var_y*Var_y;
- tx=fn1((5*xx*(7*xx-6)+3)/8);
- ty=fn2((5*yy*(7*yy-6)+3)/8);
- Var_x=Var_x-t*ty;
- Var_y=Var_y+t*tx;
- z=Var_x+fn4(Var_y);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gpm-p04-23";
-
- p1.caption="Parameter";
- p1.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "sin" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "sin" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "flip" ;
-
- }
- }
-
-
- gpm-p06-01 {//chby1 / p06-01 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, November 1999
- complex t;
- parameter complex p1;
- complex Var_x;
- complex Var_y;
- complex xx;
- complex yy;
- complex tx;
- parameter complex p2;
- complex ty;
- parameter complex p3;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- t=p1;
- }
- void loop(void)
- {
- Var_x=real(z);
- Var_y=imag(z);
- xx=Var_x*Var_x;
- yy=Var_y*Var_y;
- tx=p2*fn1((21*xx*(xx*(11*xx-15)+5)-5)/16);
- ty=p3*fn2((21*yy*(yy*(11*yy-15)+5)-5)/16);
- Var_x=Var_x-t*ty;
- Var_y=Var_y+t*tx;
- z=Var_x+fn3(Var_y);
- }
- bool bailout(void)
- {
- return(|z|<bailout);
- }
- void description(void)
- {
- this.title="gpm-p06-01";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Parameter 3";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=100.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "flip" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-p06-03 {//chby3 / p06-03 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, March 1999
- complex c;
- parameter complex p1;
- complex zz;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- }
- void loop(void)
- {
- zz=z*z;
- z=fn1(21*zz*(zz*(11*zz-15)+5)-5)/16+c;
- }
- bool bailout(void)
- {
- return(|z|<bailout);
- }
- void description(void)
- {
- this.title="gpm-p06-03";
-
- p1.caption="Parameter";
- p1.default=(0.3,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=100.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-p08-15 {//chby15 / p08-15 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, April 1999
- complex r;
- parameter complex p1;
- complex zz;
- complex f;
- complex fd;
- complex oz;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- r=p1;
- }
- void loop(void)
- {
- zz=z*z;
- f=fn1((3*zz*(11*zz*(13*zz*(15*zz-28)+210)-420)+35)/128);
- fd=fn2(9*z*(11*zz*(39*zz*(5*zz-7)+35)-35)/16);
- oz=z;
- z=z-fn3(r*f/fd);
- }
- bool bailout(void)
- {
- return(bailout<=sqrt(|(|z|)-(|oz|)|));
- }
- void description(void)
- {
- this.title="gpm-p08-15";
-
- p1.caption="Parameter";
- p1.default=(2.0,2.0);
-
-
- bailout.caption="Bailout";
- bailout.default=0.005;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-p10-05 {//chby5 / p10-05 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, April 1999
- complex r;
- parameter complex p1;
- complex zz;
- complex f;
- parameter complex p2;
- complex fd;
- parameter complex p3;
- complex oz;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- r=p1;
- }
- void loop(void)
- {
- zz=z*z;
- f=p2*fn1((11*zz*(13*zz*(zz*(17*zz*(19*zz-45)+630)-210)+315)-63)/256);
- fd=p3*fn2(110*z*(13*zz*(zz*(17*zz*(19*zz-36)+378)-84)+63)/256);
- oz=z;
- z=z-fn3(r*f/fd);
- }
- bool bailout(void)
- {
- return(bailout<=|z-oz|);
- }
- void description(void)
- {
- this.title="gpm-p10-05";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,1.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Parameter 3";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=0.005;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-s02-23 {//chby23 / s02-23 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, March 1999
- complex t;
- parameter complex p1;
- complex Var_x;
- complex Var_y;
- complex tx;
- complex ty;
- parameter real bailout;
-
- void init(void)
- {
- z=fn3(pixel);
- t=p1;
- }
- void loop(void)
- {
- Var_x=real(z);
- Var_y=imag(z);
- tx=fn1(Var_x*Var_x-1);
- ty=fn2(Var_y*Var_y-1);
- Var_x=Var_x-t*ty;
- Var_y=Var_y+t*tx;
- z=Var_x+fn4(Var_y);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gpm-s02-23";
-
- p1.caption="Parameter";
- p1.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "flip" ;
-
- }
- }
-
-
- gpm-s03-01 {//chby1 / s03-01 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, October 1999
- complex t;
- parameter complex p1;
- complex Var_x;
- complex Var_y;
- complex tx;
- complex ty;
- parameter real bailout;
-
- void init(void)
- {
- z=fn3(pixel);
- t=p1;
- }
- void loop(void)
- {
- Var_x=real(z);
- Var_y=imag(z);
- tx=fn1(Var_x*(Var_x*Var_x-2));
- ty=fn2(Var_y*(Var_y*Var_y-2));
- Var_x=Var_x-t*ty;
- Var_y=Var_y+t*tx;
- z=Var_x+fn4(Var_y);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gpm-s03-01";
-
- p1.caption="Parameter";
- p1.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
-
- fn4.default = "flip" ;
-
- }
- }
-
-
- gpm-s04-15 {//chby15 / s04-15 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, April 1999
- complex r;
- parameter complex p1;
- complex zz;
- complex f;
- complex fd;
- complex oz;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- r=p1;
- }
- void loop(void)
- {
- zz=z*z;
- f=fn1(zz*(zz-3)+1);
- fd=fn2(2*z*(2*zz-3));
- oz=z;
- z=z-fn3(r*f/fd);
- }
- bool bailout(void)
- {
- return(bailout<=sqrt(|(|z|)-(|oz|)|));
- }
- void description(void)
- {
- this.title="gpm-s04-15";
-
- p1.caption="Parameter";
- p1.default=(2.0,2.0);
-
-
- bailout.caption="Bailout";
- bailout.default=1.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-s05-01 {//chby1 / s05-01 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, November 1999
- complex t;
- parameter complex p1;
- complex Var_x;
- complex Var_y;
- complex xx;
- complex yy;
- complex tx;
- parameter complex p2;
- complex ty;
- parameter complex p3;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- t=p1;
- }
- void loop(void)
- {
- Var_x=real(z);
- Var_y=imag(z);
- xx=Var_x*Var_x;
- yy=Var_y*Var_y;
- tx=p2*fn1(Var_x*(xx*(xx-4)+3));
- ty=p3*fn2(Var_y*(yy*(yy-4)+3));
- Var_x=Var_x-t*ty;
- Var_y=Var_y+t*tx;
- z=Var_x+fn3(Var_y);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gpm-s05-01";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Parameter 3";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "flip" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-s06-01 {//chby1 / s06-01 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, March 1999
- complex t;
- parameter complex p1;
- complex Var_x;
- complex Var_y;
- complex xx;
- complex yy;
- complex tx;
- complex ty;
- parameter real bailout;
-
- void init(void)
- {
- z=fn3(pixel);
- t=p1;
- }
- void loop(void)
- {
- Var_x=real(z);
- Var_y=imag(z);
- xx=Var_x*Var_x;
- yy=Var_y*Var_y;
- tx=fn1(xx*(xx*(xx-5)+6)-1);
- ty=fn2(yy*(yy*(yy-5)+6)-1);
- Var_x=Var_x-t*ty;
- Var_y=Var_y+t*tx;
- z=Var_x+fn4(Var_y);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gpm-s06-01";
-
- p1.caption="Parameter";
- p1.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "flip" ;
-
- }
- }
-
-
- gpm-s07-08 {//chby8 / s07-08 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, April 1999
- complex t;
- parameter complex p1;
- complex Var_x;
- complex Var_y;
- complex xx;
- complex yy;
- complex tx;
- parameter complex p2;
- complex ty;
- parameter complex p3;
- parameter real bailout;
-
- void init(void)
- {
- z=fn3(pixel);
- t=p1;
- }
- void loop(void)
- {
- Var_x=real(z);
- Var_y=imag(z);
- xx=Var_x*Var_x;
- yy=Var_y*Var_y;
- tx=p2*fn1(Var_x*(xx*(xx*(xx-6)+10)-4));
- ty=p3*fn2(Var_y*(yy*(yy*(yy-6)+10)-4));
- Var_x=Var_x-t*ty;
- Var_y=Var_y+t*tx;
- z=Var_x+fn4(Var_y);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gpm-s07-08";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Parameter 3";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "sin" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "sin" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "flip" ;
-
- }
- }
-
-
- gpm-sc02-29 {//chby29 / sc02-29 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, March 1999
- complex t;
- parameter complex p1;
- complex Var_x;
- complex Var_y;
- complex tx;
- complex ty;
- complex test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn3(pixel);
- t=p1;
- }
- void loop(void)
- {
- Var_x=real(z);
- Var_y=imag(z);
- tx=fn1(2/Var_x);
- ty=fn2(2/Var_y);
- Var_x=Var_x-t*ty;
- Var_y=Var_y+t*tx;
- z=Var_x+fn4(Var_y);
- test=(|tx|+|ty|);
- }
- bool bailout(void)
- {
- return(test>=bailout && test<=1e30);
- }
- void description(void)
- {
- this.title="gpm-sc02-29";
-
- p1.caption="Parameter";
- p1.default=(0.5,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "flip" ;
-
- }
- }
-
-
- gpm-t03-25 {//chby25 / t03-25 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, March 1999
- complex t;
- parameter complex p1;
- complex Var_x;
- complex Var_y;
- parameter real bailout;
-
- void init(void)
- {
- z=fn3(pixel);
- t=p1;
- }
- void loop(void)
- {
- Var_x=real(z);
- Var_y=imag(z);
- Var_y=Var_y+t*(fn1(Var_x*(4*Var_x*Var_x-3)));
- Var_x=Var_x-t*(fn2(Var_y*(4*Var_y*Var_y-3)));
- z=Var_x+fn4(Var_y);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gpm-t03-25";
-
- p1.caption="Parameter";
- p1.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "sin" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "sin" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "flip" ;
-
- }
- }
-
-
- gpm-t07-01 {//chby1 / t07-01 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, April 1999
- complex t;
- parameter complex p1;
- complex Var_x;
- complex Var_y;
- complex xx;
- complex yy;
- complex tx;
- parameter complex p2;
- complex ty;
- parameter complex p3;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- t=p1;
- }
- void loop(void)
- {
- Var_x=real(z);
- Var_y=imag(z);
- xx=Var_x*Var_x;
- yy=Var_y*Var_y;
- tx=p2*fn1(Var_x*(8*xx*((xx+xx)*(4*xx-7)+7)-7));
- ty=p3*fn2(Var_y*(8*yy*((yy+yy)*(4*yy-7)+7)-7));
- Var_x=Var_x-t*ty;
- Var_y=Var_y+t*tx;
- z=Var_x+fn3(Var_y);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gpm-t07-01";
-
- p1.caption="Parameter 1";
- p1.default=(0.5,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Parameter 3";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "flip" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-t08-11 {//chby11 / t08-11 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, April 1999
- complex c;
- parameter complex p1;
- complex d;
- parameter complex p2;
- complex zz;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- d=p2;
- }
- void loop(void)
- {
- zz=z*z;
- z=d*fn1((32*zz*(zz*(4*zz*(zz-2)+5)-1)+1)*c);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gpm-t08-11";
-
- p1.caption="Parameter 1";
- p1.default=(0.05,0.05);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,1.0);
-
-
- bailout.caption="Bailout";
- bailout.default=100.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-t08-15 {//chby15 / t08-15 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, March 1999
- complex r;
- parameter complex p1;
- complex zz;
- complex a;
- complex b;
- complex f;
- parameter complex p2;
- complex fd;
- parameter complex p3;
- complex oz;
- parameter real bailout;
-
- void init(void)
- {
- z=fn3(pixel);
- r=p1;
- }
- void loop(void)
- {
- zz=z*z;
- a=2*zz;
- b=4*zz;
- f=p2*(fn1(32*zz*(zz*(b*(zz-2)+5)-1)+1));
- fd=p3*(fn2(64*z*(a*(b*(a-3)+5)-1)));
- oz=z;
- z=z-r*f/fd;
- }
- bool bailout(void)
- {
- return(bailout<=sqrt(|(|z|)-(|oz|)|));
- }
- void description(void)
- {
- this.title="gpm-t08-15";
-
- p1.caption="Parameter 1";
- p1.default=(6.0,2.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(2.0,0.0);
-
-
- p3.caption="Parameter 3";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=1.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- gpm-t08-20 {//chby20 / t08-20 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, March 1999
- complex t;
- parameter complex p1;
- complex Var_x;
- complex Var_y;
- complex xx;
- complex yy;
- parameter real bailout;
-
- void init(void)
- {
- z=fn3(pixel);
- t=p1;
- }
- void loop(void)
- {
- Var_x=real(z);
- Var_y=imag(z);
- xx=Var_x*Var_x;
- yy=Var_y*Var_y;
- Var_y=Var_y+t*(fn1(32*xx*(xx*(4*xx*(xx-2)+5)-1)+1));
- Var_x=Var_x-t*(fn2(32*yy*(yy*(4*yy*(yy-2)+5)-1)+1));
- z=Var_x+fn4(Var_y);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gpm-t08-20";
-
- p1.caption="Parameter";
- p1.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "sin" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "sin" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "flip" ;
-
- }
- }
-
-
- gpm-u03-01 {//chby1 / u03-01 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, March 1999
- complex t;
- parameter complex p1;
- complex Var_x;
- complex Var_y;
- complex tx;
- complex ty;
- parameter real bailout;
-
- void init(void)
- {
- z=fn3(pixel);
- t=p1;
- }
- void loop(void)
- {
- Var_x=real(z);
- Var_y=imag(z);
- tx=fn1(4*Var_x*((Var_x+Var_x)*Var_x-1));
- ty=fn2(4*Var_y*((Var_y+Var_y)*Var_y-1));
- Var_x=Var_x-t*ty;
- Var_y=Var_y+t*tx;
- z=Var_x+fn4(Var_y);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gpm-u03-01";
-
- p1.caption="Parameter";
- p1.default=(0.5,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "flip" ;
-
- }
- }
-
-
- gpm-u04-01 {//chby1 / u04-01 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, March 1999
- complex t;
- parameter complex p1;
- complex Var_x;
- complex Var_y;
- complex ax;
- complex ay;
- complex tx;
- parameter complex p2;
- complex ty;
- parameter complex p3;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- t=p1;
- }
- void loop(void)
- {
- Var_x=real(z);
- Var_y=imag(z);
- ax=4*Var_x*Var_x;
- ay=4*Var_y*Var_y;
- tx=p2*fn1(ax*(ax-3)+1);
- ty=p3*fn2(ay*(ay-3)+1);
- Var_x=Var_x-t*ty;
- Var_y=Var_y+t*tx;
- z=Var_x+fn3(Var_y);
- }
- bool bailout(void)
- {
- return(|z|<=bailout);
- }
- void description(void)
- {
- this.title="gpm-u04-01";
-
- p1.caption="Parameter 1";
- p1.default=(0.2,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Parameter 3";
- p3.default=(1.0,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=4.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "flip" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-u08-15 {//chby15 / u08-15 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, March 1999
- complex r;
- parameter complex p1;
- complex zz;
- complex a;
- complex b;
- complex f;
- parameter complex p2;
- complex fd;
- parameter complex p3;
- complex oz;
- parameter real bailout;
-
- void init(void)
- {
- z=fn3(pixel);
- r=p1;
- }
- void loop(void)
- {
- zz=z*z;
- a=4*zz;
- b=2*zz;
- f=fn1(p2*(8*zz*(b*(a*(a-7)+15)-5)+1));
- fd=fn2(p3*(16*z*(4*zz*(b*(16*zz-21)+15)-5)));
- oz=z;
- z=z-r*f/fd;
- }
- bool bailout(void)
- {
- return(bailout<=sqrt(|(|z|)-(|oz|)|));
- }
- void description(void)
- {
- this.title="gpm-u08-15";
-
- p1.caption="Parameter 1";
- p1.default=(0.2,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(0.2,0.0);
-
-
- p3.caption="Parameter 3";
- p3.default=(0.2,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=1.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
- }
- }
-
-
- gpm-u10-05 {//chby5 / u10-05 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, November 1999
- complex r;
- parameter complex p1;
- complex zz;
- complex a;
- complex b;
- complex f;
- parameter complex p2;
- complex fd;
- parameter complex p3;
- complex oz;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- r=p1;
- }
- void loop(void)
- {
- zz=z*z;
- a=4*zz;
- b=16*zz;
- f=p2*fn1(a*(a*(b*(zz*(a-9)+6)-35)+7)-1);
- fd=p3*fn2(8*z*(8*zz*(b*(2*zz*(5*zz-9)+9)-35)+7));
- oz=z;
- z=fn3(z-r*f/fd);
- }
- bool bailout(void)
- {
- return(bailout<=|z-oz|);
- }
- void description(void)
- {
- this.title="gpm-u10-05";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,-2.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(2.0,0.0);
-
-
- p3.caption="Parameter 3";
- p3.default=(0.5,0.0);
-
-
- bailout.caption="Bailout";
- bailout.default=1.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-uc07-15{//chby15 / uc07-15 formula by Morgan L. Owens
- //Translated from .frm to .ufm
- //and slightly modified by Gedeon Peteri, March 1999
- complex r;
- parameter complex p1;
- complex a;
- complex aa;
- complex f;
- complex fd;
- complex oz;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- r=p1;
- }
- void loop(void)
- {
- a=4*z-2;
- aa=a*a;
- f=(a*(aa*(aa*(aa-6)+10)-4));
- fd=(4*(aa*(aa*(7*aa-30)+30)-4));
- oz=z;
- z=fn1(z-r*f/fd);
- }
- bool bailout(void)
- {
- return(bailout<=sqrt(|(|z|)-(|oz|)|));
- }
- void description(void)
- {
- this.title="gpm-uc07-15";
-
- p1.caption="Parameter";
- p1.default=(6.0,-4.0);
-
-
- bailout.caption="Bailout";
- bailout.default=0.05;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The source of the functions on which
- ;these formulas are based is the book entitled
- ;Fractal Cosmos -- The Art of Mathematical Design
- ;(Lifesmith) by Jeff Berkowitz.
- ;Compiled by Gedeon Peteri, 1999)
-
-
- }
-
- gp-frc-01 {//f(z)=sgrt(z^4+1)+c
- //e.g.: page 3/27, top right
- parameter complex p1;
- parameter complex p2;
- parameter complex p3;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- z=fn2((z^p1+1)^p2+p3);
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfp-frc-01";
-
- p1.caption="Exponent 1";
- p1.default=(4.0,0.0);
-
-
- p2.caption="Exponent 2";
- p2.default=(0.5,0.0);
-
-
- p3.caption="Julia seed";
- p3.default=(-0.275,0.47);
-
-
- bailout.caption="Bailout Value";
- bailout.default=64.0;
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gp-frc-02 {//f(z)=sgrt(z^4+c)
- //e.g.: page 3/27, bottom right
- parameter complex p1;
- parameter complex p3;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- z=fn2((z^p1+p3)^p2);
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfp-frc-02";
-
- p1.caption="Exponent 1";
- p1.default=(4.0,0.0);
-
-
- p2.caption="Exponent 2";
- p2.default=(0.5,0.0);
-
-
- p3.caption="Julia seed";
- p3.default=(0.19,-0.67);
-
-
- bailout.caption="Bailout Value";
- bailout.default=64.0;
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gp-frc-03 {//f(z)=(z^2+c)^2+z+c
- //e.g.: page 3/29, bottom left
- parameter complex p1;
- parameter complex p3;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- z=fn2((z^p1+p3)^p2+z+p3);
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfp-frc-03";
-
- p1.caption="Exponent 1";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Exponent 2";
- p2.default=(2,0.0);
-
-
- p3.caption="Julia seed";
- p3.default=(-0.27,0.46);
-
-
- bailout.caption="Bailout Value";
- bailout.default=64.0;
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gp-frc-04 {//f(z)=(z^2+c+1)/(z^2-c-1)
- //e.g.: page 3/24, bottom left
- parameter complex p1;
- parameter complex p3;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn1(pixel);
- }
- void loop(void)
- {
- z=fn2((z^p1+p3+1)/(z^p2-p3-1));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gfp-frc-04";
-
- p1.caption="Exponent 1";
- p1.default=(2.0,0.0);
-
-
- p2.caption="Exponent 2";
- p2.default=(2,0.0);
-
-
- p3.caption="Julia seed";
- p3.default=(0.25,-0.5);
-
-
- bailout.caption="Bailout Value";
- bailout.default=64.0;
-
-
- test.caption = "Bailout Test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The following formulas are translations, modifications, and
- ;embellishments of fractint formulas in file newtchb2.frm
-
-
- }
-
- gpm-jlag2 {//Translation and modification of J_Laguenew2
- //from newtchb2.frm
- //by Gedeon Peteri, October 1999
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- }
- void loop(void)
- {
- z=fn1(p2*((z*(z-4)+2)/2+c));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-jlag2";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=100.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-jlag3 {//Translation and modification of J_Laguenew3
- //from newtchb2.frm
- //by Gedeon Peteri, October 1999
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- }
- void loop(void)
- {
- z=fn1(p2*((z*(z*(-z+9)-18)+6)/6+c));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-jlag3";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=100.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-jlag4 {//Translation and modification of J_Laguenew4
- //from newtchb2.frm
- //by Gedeon Peteri, October 1999
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- }
- void loop(void)
- {
- z=fn1(p2*((z*(z*(z*(z-16)+72)-96)+24)/24+c));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-jlag4";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=100.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-jlag5 {//Translation and modification of J_Laguenew5
- //from newtchb2.frm
- //by Gedeon Peteri, October 1999
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- }
- void loop(void)
- {
- z=fn1(p2*((z*(z*(z*(z*(-z+25)-200)+600)-600)+120)/120+c));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-jlag5";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=100.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-jlag6 {//Translation and modification of J_Laguenew6
- //from newtchb2.frm
- //by Gedeon Peteri, October 1999
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- }
- void loop(void)
- {
- z=fn1(p2*((z*(z*(z*(z*(z*(z-36)+450)-2400)+5400)-4320)+720)/720+c));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-jlag6";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=100.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-jtchc2 {//Translation and modification of J_TchebycnewC2
- //from newtchb2.frm
- //by Gedeon Peteri, October 1999
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- }
- void loop(void)
- {
- z=fn1(p2*(c*(z*z-2)));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-jtchc2";
-
- p1.caption="Parameter 1";
- p1.default=(0.7,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=100.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-jtchc3 {//Translation and modification of J_TchebycnewC3
- //from newtchb2.frm
- //by Gedeon Peteri, October 1999
- complex c;
- parameter complex p1;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- }
- void loop(void)
- {
- z = c*z*(z*z-3);
-
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-jtchc3";
-
- p1.caption="Parameter 1";
- p1.default=(0.7,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=100.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-jtchc4 {//Translation and modification of J_TchebycnewC4
- //from newtchb2.frm
- //by Gedeon Peteri, October 1999
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- }
- void loop(void)
- {
- z=fn1(p2*(c*(z*z*(z*z-4)+2)));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-jtchc4";
-
- p1.caption="Parameter 1";
- p1.default=(0.5,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=100.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-jtchc5 {//Translation and modification of J_TchebycnewC5
- //from newtchb2.frm
- //by Gedeon Peteri, October 1999
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- }
- void loop(void)
- {
- z=fn1(p2*(c*(z*z*(z*z*(z*z-6)+9)-2)));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-jtchc5";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=100.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-jtchc6 {//Translation and modification of J_TchebycnewC6
- //from newtchb2.frm
- //by Gedeon Peteri, October 1999
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- }
- void loop(void)
- {
- z=fn1(p2*(c*(z*z*(z*z*(z*z-6)+9)-2)));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-jtchc6";
-
- p1.caption="Parameter 1";
- p1.default=(0.6,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=100.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-jtchc7 {//Translation and modification of J_TchebycnewC7
- //from newtchb2.frm
- //by Gedeon Peteri, October 1999
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- }
- void loop(void)
- {
- z=fn1(p2*(c*z*(z*z*(z*z*(z*z-7)+14)-7)));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-jtchc7";
-
- p1.caption="Parameter 1";
- p1.default=(0.5,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=100.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-jtchs2 {//Translation and modification of J_TchebycnewS2
- //from newtchb2.frm
- //by Gedeon Peteri, October 1999
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- }
- void loop(void)
- {
- z=fn1(p2*(c*(z*z-1)));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-jtchs2";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=100.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-jtchs3 {//Translation and modification of J_TchebycnewS3
- //from newtchb2.frm
- //by Gedeon Peteri, October 1999
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- }
- void loop(void)
- {
- z=fn1(p2*(c*z*(z*z-2)));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-jtchs3";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=100.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-jtchs4 {//Translation and modification of J_TchebycnewS4
- //from newtchb2.frm
- //by Gedeon Peteri, October 1999
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- }
- void loop(void)
- {
- z=fn1(p2*(c*(z*z*(z*z-3)+1)));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-jtchs4";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=100.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-jtchs5 {//Translation and modification of J_TchebycnewS5
- //from newtchb2.frm
- //by Gedeon Peteri, October 1999
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- }
- void loop(void)
- {
- z=fn1(p2*(c*z*(z*z*(z*z-4)+3)));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-jtchs5";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=100.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.hint = "Original formula uses mod by default.";
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-jtchs6 {//Translation and modification of J_TchebycnewS6
- //from newtchb2.frm
- //by Gedeon Peteri, October 1999
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- }
- void loop(void)
- {
- z=fn1(p2*(c*(z*z*(z*z*(z*z-5)+6)-1)));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-jtchs6";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=100.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-jtchs7 {//Translation and modification of J_TchebycnewS7
- //from newtchb2.frm
- //by Gedeon Peteri, October 1999
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- }
- void loop(void)
- {
- z=fn1(p2*(c*z*(z*z*(z*z*(z*z-6)+10)-4)));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-jtchs7";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=100.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-jtcht2 {//Translation and modification of J_TchebycnewT2
- //from newtchb2.frm
- //by Gedeon Peteri, October 1999
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- }
- void loop(void)
- {
- z=fn1(p2*(c*(2*z*z-1)));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-jtcht2";
-
- p1.caption="Parameter 1";
- p1.default=(0.7,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=100.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-jtcht3 {//Translation and modification of J_TchebycnewT3
- //from newtchb2.frm
- //by Gedeon Peteri, October 1999
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- }
- void loop(void)
- {
- z=fn1(p2*(c*z*(4*z*z-3)));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-jtcht3";
-
- p1.caption="Parameter 1";
- p1.default=(0.7,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=100.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-jtcht4 {//Translation and modification of J_TchebycnewT4
- //from newtchb2.frm
- //by Gedeon Peteri, October 1999
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- }
- void loop(void)
- {
- z=fn1(p2*(c*(z*z*(8*z*z+8)+1)));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-jtcht4";
-
- p1.caption="Parameter 1";
- p1.default=(0.2,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=100.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-jtcht5 {//Translation and modification of J_TchebycnewT5
- //from newtchb2.frm
- //by Gedeon Peteri, October 1999
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- }
- void loop(void)
- {
- z=fn1(p2*(c*(z*(z*z*(16*z*z-20)+5))));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-jtcht5";
-
- p1.caption="Parameter 1";
- p1.default=(0.5,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=100.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-jtcht6 {//Translation and modification of J_TchebycnewT6
- //from newtchb2.frm
- //by Gedeon Peteri, October 1999
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- }
- void loop(void)
- {
- z=fn1(p2*(c*(z*z*(z*z*(32*z*z-48)+18)-1)));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-jtcht6";
-
- p1.caption="Parameter 1";
- p1.default=(0.3,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=100.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-jtcht7 {//Translation and modification of J_TchebycnewT7
- //from newtchb2.frm
- //by Gedeon Peteri, October 1999
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- }
- void loop(void)
- {
- z=fn1(p2*(c*z*(z*z*(z*z*(64*z*z-112)+56)-7)));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-jtcht7";
-
- p1.caption="Parameter 1";
- p1.default=(0.2,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=100.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-jtchu2 {//Translation and modification of J_TchebycnewtU2
- //from newtchb2.frm
- //by Gedeon Peteri, October 1999
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- }
- void loop(void)
- {
- z=fn1(p2*(c*(4*z*z-1)));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-jtchu2";
-
- p1.caption="Parameter 1";
- p1.default=(0.5,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=100.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-jtchu3 {//Translation and modification of J_TchebycnewtU3
- //from newtchb2.frm
- //by Gedeon Peteri, October 1999
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- }
- void loop(void)
- {
- z=fn1(p2*(c*z*(8*z*z-4)));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-jtchu3";
-
- p1.caption="Parameter 1";
- p1.default=(0.5,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=100.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-jtchu4 {//Translation and modification of J_TchebycnewtU4
- //from newtchb2.frm
- //by Gedeon Peteri, October 1999
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- }
- void loop(void)
- {
- z=fn1(p2*(c*(z*z*(16*z*z-12)+1)));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-jtchu4";
-
- p1.caption="Parameter 1";
- p1.default=(0.3,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=100.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-jtchu5 {//Translation and modification of J_TchebycnewtU5
- //from newtchb2.frm
- //by Gedeon Peteri, October 1999
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- }
- void loop(void)
- {
- z=fn1(p2*(c*z*(z*z*(32*z*z-32)+6)));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-jtchu5";
-
- p1.caption="Parameter 1";
- p1.default=(0.3,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=100.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-jtchu6 {//Translation and modification of J_TchebycnewtU6
- //from newtchb2.frm
- //by Gedeon Peteri, October 1999
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- }
- void loop(void)
- {
- z=fn1(p2*(c*(z*z*(z*z*(64*z*z-80)+24)-1)));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-jtchu6";
-
- p1.caption="Parameter 1";
- p1.default=(0.3,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=100.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- gpm-jtchu7 {//Translation and modification of J_TchebycnewtU7
- //from newtchb2.frm
- //by Gedeon Peteri, October 1999
- complex c;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn2(pixel);
- c=p1;
- }
- void loop(void)
- {
- z=fn1(p2*(c*z*(z*z*(z*z*(128*z*z-192)+80)-8)));
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-jtchu7";
-
- p1.caption="Parameter 1";
- p1.default=(0.3,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=100.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The following formulas with gpm-grav prefix are translations and slight
- ;modifications of the original Gravijul formula written for Fractint by
- ;Mark Christenson, and variations thereof by other authors
- ;as noted in the comments for each formula.
-
-
- }
-
- gpm-grav01 {//Original Fractint formula "gravijul" by Mark Christenson
- //Translated to UF format and slightly modified by
- //Gedeon Peteri, December, 1999
- complex w;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- }
- void loop(void)
- {
- w = fn1(z);
- z = fn3(p1/fn2(w*w)) + p2;
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-grav01";
-
- p1.caption="Parameter 1";
- p1.default=(0.6,0.6);
-
-
- p2.caption="Parameter 2";
- p2.default=(0.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=4.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "sin" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "sin" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-grav02 {//Original Fractint formula "gravijul-a1" by Mark Christenson
- //Translated to UF format and slightly modified by
- //Gedeon Peteri, December, 1999
- complex q1;
- parameter complex p3;
- complex q2;
- complex v;
- complex w;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- q1=imag(p3);
- q2=real(p3);
- z=fn4(pixel);
- }
- void loop(void)
- {
- v = fn1(z);
- w = q1*(v*v);
- z = q2*fn3(p1/fn2(w)) + p2;
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-grav02";
-
- p1.caption="Parameter 1";
- p1.default=(0.6,0.6);
-
-
- p2.caption="Parameter 2";
- p2.default=(0.0,0.0);
-
-
- p3.caption="Parameter 3";
- p3.default=(1.0,1.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=4.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "sin" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "sin" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-grav03 {//Original Fractint formula "gravijul" by Mark Christenson
- //Variation "gravijul_2u" by Phil DiGiorgi
- //Translated to UF format and slightly modified by
- //Gedeon Peteri, December, 1999
- complex Var_x;
- complex Var_y;
- complex w;
- parameter complex p3;
- complex v;
- complex u;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=abs(pixel);
- }
- void loop(void)
- {
- Var_x = real(z);
- Var_y = imag(z);
- w = fn1(Var_x) + p3*Var_y;
- v = fn1(Var_y) + p3*Var_x;
- u = fn2(w + flip(v));
- z = fn4(p1/fn3(u*u)) + p2;
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-grav03";
-
- p1.caption="Parameter 1";
- p1.default=(0.5,0.5);
-
-
- p2.caption="Parameter 2";
- p2.default=(0.0,0.0);
-
-
- p3.caption="Parameter 3";
- p3.default=(0.1,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=4.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "sin" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "sin" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "sin" ;
-
- }
- }
-
-
- gpm-grav04 {//Original Fractint formula "gravijul" by Mark Christenson
- //Variation "gravijul4" by Phil DiGiorgi
- //Translated to UF format and slightly modified by
- //Gedeon Peteri, December, 1999
- complex v;
- parameter complex p3;
- complex w;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=abs(pixel);
- }
- void loop(void)
- {
- v = fn1(z)*p3;
- w = fn2(v*v);
- z = fn4(p1/fn3(w*w)) + p2;
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-grav04";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,-1.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(0.0,0.0);
-
-
- p3.caption="Parameter 3";
- p3.default=(0.7,0.7);
-
-
- bailout.caption="Bailout value";
- bailout.default=4.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "cos" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "asin" ;
-
- }
- }
-
-
- gpm-grav05 {//Original Fractint formula "gravijul" by Mark Christenson
- //Variation "grav-11a" by Linda Allison
- //Translated to UF format and slightly modified by
- //Gedeon Peteri, December, 1999
- complex c;
- complex w;
- parameter complex p1;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- c=fn4(pixel);
- }
- void loop(void)
- {
- w = fn1(z)*fn1(z);
- z = fn3(p1/fn2(w*w)) + c;
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-grav05";
-
- p1.caption="Parameter";
- p1.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=4.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-grav06 {//Original Fractint formula "gravijul" by Mark Christenson
- //Variation "gravijul-v1" by Sylvie Gallet
- //Translated to UF format and slightly modified by
- //Gedeon Peteri, December, 1999
- parameter complex p3;
- complex w;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel^p3);
- }
- void loop(void)
- {
- w = fn1(z);
- z = fn3(p1/fn2(w*w)) + p2;
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-grav06";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(0.0,0.0);
-
-
- p3.caption="Exponent";
- p3.default=(2.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=4.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "cos" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-grav07 {//Original Fractint formula "gravijul" by Mark Christenson
- //Variation "gravijul-v2" by Sylvie Gallet
- //Translated to UF format and slightly modified by
- //Gedeon Peteri, December, 1999
- complex w;
- complex Var_x;
- parameter complex p1;
- complex Var_y;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- }
- void loop(void)
- {
- w = fn1(real(z));
- Var_x = fn3(p1/fn2(w*w));
- w = fn1(imag(z));
- Var_y = fn3(p1/fn2(w*w));
- z = Var_x + flip(Var_y) + p2;
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-grav07";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,1.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(0.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=512.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "log" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "log" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-grav08 {//Original Fractint formula "gravijul" by Mark Christenson
- //Variation "gravijul-v3" by Sylvie Gallet
- //Translated to UF format and slightly modified by
- //Gedeon Peteri, December, 1999
- complex w;
- parameter complex p1;
- parameter complex p2;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- }
- void loop(void)
- {
- w = fn1(z);
- z = fn3(fn2(w*w)^p1) + p2;
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-grav08";
-
- p1.caption="Exponent";
- p1.default=(1.5,0.0);
-
-
- p2.caption="Parameter";
- p2.default=(0.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=4.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "sqrt" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "sin" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-grav09 {//Original Fractint formula "gravijul" by Mark Christenson
- //Variation "gravellipse" by Kathy Roth
- //Translated to UF format and slightly modified by
- //Gedeon Peteri, December, 1999
- complex a;
- parameter complex p3;
- complex b;
- complex w;
- parameter complex p1;
- parameter complex p2;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- a=real(p3);
- b=imag(p3);
- }
- void loop(void)
- {
- w = fn1(z);
- z = fn3(p1/fn2(w*w)) + p2;
- }
- bool bailout(void)
- {
- return(real(z) * real(z)/ a + imag(z) * imag(z)/b < bailout);
- }
- void description(void)
- {
- this.title="gpm-grav09";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,1.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(0.0,0.0);
-
-
- p3.caption="Parameter 3";
- p3.default=(0.5,0.5);
-
-
- bailout.caption="Bailout value";
- bailout.default=32.0;
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "sinh" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- comment
- {
- ;The following formulas with prefix gpm-sgxxx are
- ;translations and modifications of some formulas
- ;from Sylvie Gallet's gallet-3.frm,
- ;gallet-4.frm, and gallet-6.frm.
- ;Modifications are limited to addition of function in init
- ;section, addition of a bailout test parameter, changing the hard
- ;coded function (flip) and bailout to user definable ones.
-
-
-
- }
-
- gpm-sg302 {//Sylvie Gallet's Gallet-3-02
- //translated to UF format and slightly modified by
- //Gedeon Peteri, December, 1999
- complex Var_x;
- complex Var_y;
- complex x1;
- parameter complex p1;
- parameter complex p2;
- complex y1;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- }
- void loop(void)
- {
- Var_x = real(z);
- Var_y = imag(z);
- x1 = Var_x - p1*fn1(Var_y+p2*fn2(Var_y));
- y1 = Var_y - p1*fn1(Var_x+p2*fn2(Var_x));
- z = x1+fn3(y1);
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-sg302";
-
- p1.caption="Parameter 1";
- p1.default=(0.5,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=4.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "cos" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "flip" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-sg401 {//Sylvie Gallet's Gallet-4-01
- //translated to UF format and slightly modified by
- //Gedeon Peteri, December, 1999
- complex h;
- parameter complex p1;
- complex a;
- parameter complex p2;
- complex Var_x;
- complex Var_y;
- complex x1;
- complex y1;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- h=p1;
- a=p2;
- }
- void loop(void)
- {
- Var_x = real(z);
- Var_y = imag(z);
- x1 = Var_x - fn2(Var_x + a*fn1(Var_x+h));
- y1 = Var_y + fn2(Var_y + a*fn1(Var_y+h));
- z = x1 + fn3(y1);
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-sg401";
-
- p1.caption="Parameter 1";
- p1.default=(0.3,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,1.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=4.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "flip" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "flip" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-sg402 {//Sylvie Gallet's Gallet-4-02
- //translated to UF format and slightly modified by
- //Gedeon Peteri, December, 1999
- complex h;
- parameter complex p1;
- complex a;
- parameter complex p2;
- complex Var_x;
- complex Var_y;
- complex y1;
- complex x1;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=fn4(pixel);
- h=p1;
- a=p2;
- }
- void loop(void)
- {
- Var_x = real(z);
- Var_y = imag(z);
- y1 = Var_y + fn2(Var_x + a*fn1(Var_x+h));
- x1 = Var_x - fn2(Var_y + a*fn1(Var_y+h));
- z = x1 + fn3(y1);
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-sg402";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(0.5,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=16.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "ident" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "log" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "flip" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "ident" ;
-
- }
- }
-
-
- gpm-sg604 {//Sylvie Gallet's Gallet-6-04
- //translated to UF format and slightly modified by
- //Gedeon Peteri, December, 1999
- complex Var_x;
- complex Var_y;
- complex x1;
- parameter complex p1;
- parameter complex p2;
- parameter complex p3;
- complex y1;
- parameter int test;
- parameter real bailout;
-
- void init(void)
- {
- z=pixel;
- Var_x = real(z);
- Var_y = imag(z);
- }
- void loop(void)
- {
- x1 = Var_x - p1*fn1(Var_y + fn2(p2*Var_x) * fn3(p3*Var_y));
- y1 = Var_y - p1*fn1(Var_x + fn2(p2*Var_y) * fn3(p3*Var_x));
- Var_x = x1;
- Var_y = y1;
- z = Var_x + fn4(Var_y);
- }
- bool bailout(void)
- {
- return((test == 0 && |z| <= bailout) || (test == 1 && sqr(real(z)) <= bailout) || (test == 2 && sqr(imag(z)) <= bailout) || (test == 3 && (sqr(real(z)) <= bailout && sqr(imag(z)) < bailout)) || (test == 4 && (sqr(real(z)) <= bailout || sqr(imag(z)) < bailout)) || (test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= bailout)) || (test == 6 && (sqr(real(z) + imag(z)) <= bailout)));
- }
- void description(void)
- {
- this.title="gpm-sg604";
-
- p1.caption="Parameter 1";
- p1.default=(1.0,0.0);
-
-
- p2.caption="Parameter 2";
- p2.default=(1.0,0.0);
-
-
- p3.caption="Parameter 3";
- p3.default=(0.1,0.0);
-
-
- bailout.caption="Bailout value";
- bailout.default=32.0;
-
-
- test.caption = "Bailout test";
- test.default = 0;
- test.enum = "mod\nreal\nimag\nor\nand\nmanh\nmanr";
- test.hint = "Original formula uses mod by default.";
-
-
- fn1.caption="Function 1";
- fn1.default = "tan" ;
-
-
- fn2.caption="Function 2";
- fn2.default = "ident" ;
-
-
- fn3.caption="Function 3";
- fn3.default = "ident" ;
-
-
- fn4.caption="Function 4";
- fn4.default = "flip" ;
-
- }
- }
-
-
-