HI some help please...

0 views
Skip to first unread message

Andrea Spinozzi

unread,
Sep 30, 2009, 2:10:59 PM9/30/09
to UFB...@googlegroups.com
Hi All friend,
So long time...i write because i have a little problem with a 4D
julibrot, i can't find the right switch, i find a classic one but i'm
not satisfy, because when i change the parameters p1 and p2 i want to
see differents also in the Julia version(it works for flavor but not
for the shape), i know it's a julibrot but someone can help me?
I think that maybe for a julia i need of more code to define p1 and p2
but i really don't know how move me.

Any help is really appreciated.

Good days
Andrea

Ps:This is destinate to be a wonderful formula, if i fix the julia.... ;)

SlopeDivideJulibrot{
; draws 4-D slices of DivideBrot Julibrots
; Original code by Jim Muth, Slope version and implementation by Andrea Spinozzi
; October2009
Init:

;Mandelbrot Mode

pix=pixel

u=real(pix)
v=imag(pix)

a=pi*real(p1*0.0055555555555556)
b=pi*imag(p1*0.0055555555555556)
g=pi*real(p2*0.0055555555555556)
d=pi*imag(p2*0.0055555555555556)

ca=cos(a)
cb=cos(b)
sb=sin(b)
cg=cos(g)
sg=sin(g)
cd=cos(d)
sd=sin(d)

aa=-(real(p4)-2)
bb=(imag(p4)+0.00000000000000000000001)

p=u*cg*cd-v*(ca*sb*sg*cd+ca*cb*sd)
q=u*cg*sd+v*(ca*cb*cd-ca*sb*sg*sd)
r=u*sg+v*ca*sb*cg
s=v*sin(a)

c=p+flip(q)+p3
z=r+flip(s)+@startseed

if @mode=="Julia"

pix=pixel

u=real(@startseed)
v=imag(@startseed)

a=pi*real(p1*0.0055555555555556)
b=pi*imag(p1*0.0055555555555556)
g=pi*real(p2*0.0055555555555556)
d=pi*imag(p2*0.0055555555555556)

ca=cos(a)
cb=cos(b)
sb=sin(b)
cg=cos(g)
sg=sin(g)
cd=cos(d)
sd=sin(d)

aa=-(real(p4)-2)
bb=(imag(p4)+0.00000000000000000000001)

p=u*cg*cd-v*(ca*sb*sg*cd+ca*cb*sd)
q=u*cg*sd+v*(ca*cb*cd-ca*sb*sg*sd)
r=u*sg+v*ca*sb*cg
s=v*sin(a)

c=p+flip(q)+p3
z=r+flip(s)+pix

endif

Loop:

z=fn1(z)/(z^(aa)+bb)+c

Bailout:

|z| < @bailout

Default:

title="SlopeDivideJulibrot"
periodicity=0
method=multipass
maxiter=250

Heading
caption="Mandelbrot Mode"
visible=(@mode=="Mandelbrot")
endheading
Heading
caption="Julia Mode"
visible=(@mode=="Julia")
endheading
param mode
caption="Current mode"
default=0
enum="Mandelbrot" "Julia"
visible=false
endparam
param switchmode
caption="Switch to.."
default=1
enum="Mandelbrot" "Julia"
visible=false
endparam

Param bailout
caption="Bailout"
default=10000
min=0.0
Endparam
Param startseed
caption="Start Z/Seed Value"
default=(0.0,0.0)
Endparam

Heading
caption="Parameters"
Endheading

Param p1
caption="Parameter 1"
default=(0.0,0.0)
Endparam
Param p2
caption="Parameter 2"
default=(0.0,0.0)
Endparam
Param p3
caption="Center"
default=(0.0,0.0)
Endparam
Param p4
caption="Exponent"
default=(2.0,0.0)
Endparam

Heading
caption="Functions"
Endheading

Func fn1
caption="Function Z"
default=sqr()
Endfunc

Switch:

type = "SlopeDivideJulibrot"
bailout = @bailout
startseed = pixel
p1 = p1
p2 = p2
p3 = p3
p4 = p4
fn1 = fn1
mode = @switchmode
switchmode = @mode
version = @version

}

GillesNadeau

unread,
Oct 1, 2009, 11:53:16 AM10/1/09
to ufb...@googlegroups.com
Hi Andrea, I'm trying to understand the formula I and gives you new.

Gilles
--------------------------------------------------------------------------------



No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.409 / Virus Database: 270.13.115/2405 - Release Date: 09/30/09
10:35:00

GillesNadeau

unread,
Oct 1, 2009, 12:23:32 PM10/1/09
to ufb...@googlegroups.com
Andrea, Try this version and told me what you think.


DivideJulibrot{
z=p+flip(q)+p3
c=r+flip(s)+@startseed

endif

Loop:

z=fn1(z)/(z^(aa)+bb)+c

Bailout:

|z| < @bailout

Default:

title="DivideJulibrot"
type = "DivideJulibrot"
bailout = @bailout
startseed = pixel
p1 = p1
p2 = p2
p3 = p3
p4 = p4
fn1 = fn1
mode = @switchmode
switchmode = @mode
version = @version

}



----- Original Message -----
From: "Andrea Spinozzi" <andrea....@gmail.com>
To: <UFB...@googlegroups.com>
Sent: Wednesday, September 30, 2009 14:10
Subject: [UFBeta] HI some help please...



Andrea Spinozzi

unread,
Oct 2, 2009, 8:19:22 PM10/2/09
to ufb...@googlegroups.com
Hi Gilles,
Yes i figured it out, i saw that the p4 was the init of Z.
P1 and P2 instead influence the julibrot on the equation , in fact
putting for example real p1 to 100 or 50 we can see the differences.
But for example putting real p1 to 100 and after switch we have the
same starting julia.
I don't know, i found also the juli switch changing the planes U and V
like as U=real(pix)+flip(imag(startseed) but i must look around
again....
I tried to put in the switch section p1=pixel and U V real and imag
p1 so a and b in julia becomes real and imag pixel but doesn't work.

Maybe it's a my fixation but i'd like that when i change p1 and p2 i
have another switch and not the classic one with a different center or
rotation.

Thanks
Ciao
Andrea



2009/10/1 GillesNadeau <gillesn...@videotron.ca>:

GillesNadeau

unread,
Oct 2, 2009, 10:08:55 PM10/2/09
to ufb...@googlegroups.com
Hi Andrea,

The switch-mode with a formula Julibrots is really disconcerting. Here is an
example upr using your original formula. Here I have modified version mandel
version julia. The seeds correspond to the parameter "Center" and
"Start-Seed" correspond to an offset. I have the Difficulty to understand
this formula. I think Ron could enlighten us on it.

Gilles


as-dividejulibrot1 {
fractal:
title="as-dividejulibrot1" width=800 height=600 layers=1
credits="Gilles Nadeau;10/2/2009"
layer:
caption="Background" opacity=100 method=multipass
mapping:
center=0/0 magn=1
formula:
maxiter=250 percheck=off filename="as-slope-divide-julibrot.ufm"
entry="SlopeDivideJulibrot" p_mode=Mandelbrot p_switchmode=Julia
p_bailout=10000 p_startseed=0.5/0.0 p_p1=90.0/0.0 p_p2=90.0/0.0
p_p3=-0.83/-0.25 p_p4=2.0/0.0 f_fn1=sqr
inside:
transfer=none
outside:
transfer=linear
gradient:
comments="Simple grayscale gradient." smooth=no index=0
color=16777215 index=200 color=0
opacity:
smooth=no index=0 opacity=255
Version: 8.5.409 / Virus Database: 270.14.3/2410 - Release Date: 10/02/09
18:24:00

Andrea Spinozzi

unread,
Oct 4, 2009, 3:32:11 PM10/4/09
to ufb...@googlegroups.com
Maybe it's better don't use the switch.....
Thanks for the help Gilles.
Bye
Andrea


2009/10/3 GillesNadeau <gillesn...@videotron.ca>:
Reply all
Reply to author
Forward
0 new messages