On Wed, Aug 22, 2012 at 12:15 PM, danjo86 <[email protected]> wrote:
> Hey,
>
>  i need some help. I try to definde the mandelbrotset with colors defined by 
> following function:
>
> sage: def mandel(x,y):
>           v=[];c=x+y*i;z=c;v.append(z)
>           for m in range(30):
>               if abs(z)<2:
>                   z=z^2+c;v.append(z);color=exp(-m)
>           return color
>

I don't know the answer to your question but I don't see the purpose of
"v.append(z);". Maybe it is a formatting issue that was lost in the email,
but it seems to play no role in your function. Or am I missing something?



> Then i typed: plot3d(0,(x,-2,2),(y,-2,2),rgbcolor=hue(mandel))
>
> Now i get TypeError?
> May anyone has an idea?
>
> Thanks for help
> Danjo
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sage-support" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> Visit this group at http://groups.google.com/group/sage-support?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/sage-support?hl=en.


Reply via email to