Ask Your Question
0

Newton's cubic Fractal help. Plotting

asked 2011-12-14 14:44:19 -0600

rower9911 gravatar image

updated 2011-12-14 15:40:44 -0600

I'm solving newton's cubic for all the black points that occur within the fractal:

I have the code:

LA(x) = x - (x^3.0-1)/(3.0*x^2.0) S = solve(LA==0,x) for s in S: solve(LA == s.rhs(),x)

and i want to take all those points I'm generating and plot them in a scatter plot. I think I have to use an array? Can anyone tell me exactly how I tell sage to put these points in an array then plot them? Thanks everyone for your help


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2011-12-15 06:37:20 -0600

Shashank gravatar image
LA(x) = x - (x^3.0-1.0)/(3.0*x^2.0) 
S = solve(LA==0,x) 
n=0
for s in S: 
    a=solve(LA == s.rhs(),x)
    n=n+1
point([a[i].rhs().n().real(),a[i].rhs().n().imag()] for i in range(n))

Does this help?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-12-14 14:44:19 -0600

Seen: 240 times

Last updated: Dec 15 '11