[R] speed
Matthew Dowle
mdowle at mdowle.plus.com
Wed Mar 10 15:50:43 CET 2010
Your choice of subject line alone shows some people that you missed some
small details from the posting guide. The ability to notice small details
may be important for you to demonstrate in future. Any answer in this
thread is unlikely to be found by a topic search on subject lines alone
since "speed" is a single word.
One fast way to increase your reputation is to contribute. You now have an
opportunity. If you follow Jim's good advice, discover the answer for
yourself, and post it back to the group, changing the subject line so that
its easier for others to find in future, thats one way you can contribute
and increase your reputation. If you don't do that, thats your choice. It
is entirely up to you. Whatever action you take next, even doing nothing is
an action, it is visible in public for everyone to search back and find out
within seconds.
HTH
"Adam Majewski" <adammaj1 at o2.pl> wrote in message
news:hn6fp4$2gp$1 at dough.gmane.org...
> Hi,
>
> I have found some example of R code :
> http://commons.wikimedia.org/wiki/File:Mandelbrot_Creation_Animation_%28800x600%29.gif
>
> When I run this code on my computer it takes few seconds.
>
> I wanted to make similar program in Maxima CAS :
>
> http://thread.gmane.org/gmane.comp.mathematics.maxima.general/29949/focus=29968
>
> for example :
>
> f(x,y,n) :=
> block([i:0, c:x+y*%i,ER:4,iMax:n,z:0],
> while abs(z)<ER and i<iMax
> do (z:z*z + c,i:i+1),
> min(ER,abs(z)))$
>
> wxanimate_draw3d(
> n, 5,
> enhanced3d=true,
> user_preamble="set pm3d at b; set view map",
> xu_grid=70,
> yv_grid=70,
> explicit('f(x,y,n), x, -2, 0.7, y, -1.2, 1.2))$
>
>
> But it takes so long to make even one image ( hours)
>
> What makes the difference, and why R so fast ?
>
> Regards
>
> Adam
>
More information about the R-help
mailing list