File:Animated cardioid.gif

Animated_cardioid.gif(480 × 480 pixels, file size: 78 KB, MIME type: image/gif, looped, 40 frames, 4.0 s)

Captions

Captions

Add a one-line explanation of what this file represents

Summary

edit
Description
English: This file was created by me (Deimos 28) using the following R source code:
N=40
theta = function(n) {return(2*pi*((0:(n-1))/((n-1))-1/2))}
x=cos(theta(N))+cos(2*theta(N))
y=sin(theta(N))+sin(2*theta(N))

nbdigit=function(n) {return(floor(log(n,base=10))+1)}
headingzeros=function(n) {return(3-nbdigit(n))}

jpeg("animated_001.jpg")
plot(x,y,type="l",xlim=c(-1.25,2.05),ylim=c(-1.75,1.75),axes=FALSE,xlab="",ylab="")
dev.off()

for (i in 2:N) {
    a="animated_"
    if (headingzeros(i)>0) {
        for (j in 1:headingzeros(i)) {
            a=paste(a,0,sep="")
        }
    }
    jpeg(paste(a,i,".jpg",sep=""))
    plot(x,y,type="l",xlim=c(-1.25,2.05),ylim=c(-1.75,1.75),axes=FALSE,xlab="",y
    lines(x[1:i],y[1:i],type="l",col=2,lwd=3)
    dev.off()
}

Then using the following shell command:

convert -delay 2 -loop 50 ani*.jpg animated.gif
Note: image optimized by User:Kieff. The above code generates JPEG frames, which introducte compression artifacts that are extremely inneficient for the purpose of a GIF animation.
Date 21 March 2006 (original upload date)
Source Transferred from en.wikipedia to Commons.
Author The original uploader was Deimos 28 at English Wikipedia.

Licensing

edit
[[:en:User:{{{1}}}|{{{1}}}]] at the English-language Wikipedia, the copyright holder of this work, hereby publishes it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license. Subject to disclaimers.
Attribution: [[:en:User:{{{1}}}|{{{1}}}]] at the English-language Wikipedia
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
This licensing tag was added to this file as part of the GFDL licensing update.
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License. Subject to disclaimers.

Original upload log

edit
The original description page was here. All following user names refer to en.wikipedia.
Date/Time Dimensions User Comment
2006-09-25 15:40 480×480× (79799 bytes) LucasVB MUCH better version, no JPEG artifacts, severe size reduction.
2006-03-21 14:45 480×480× (552741 bytes) Deimos 28 This file was created by me (~~~) using the following [http://wwwr-project.org R] source code: <pre><nowiki> N=40 theta = function(n) {return(2*pi*((0:(n-1))/((n-1))-1/2))} x=cos(theta(N))+cos(2*theta(N)) y=sin(theta(N))+sin(2*theta(N)) nbdigit=function(

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current22:51, 7 August 2017Thumbnail for version as of 22:51, 7 August 2017480 × 480 (78 KB)BD2412 (talk | contribs)Transferred from en.wikipedia

There are no pages that use this file.