POLAR graphs form a continuous line around the origin - the point where X and Y axes cross. The mathematical function used to plot the shape is held in line 50, and this can be changed by altering everything after the - sign to one of those shown in Table I. 2*th 80*(COS(th)-0.5) 80*SIN(th) 40*(COS(2*th)-1) 80*COS(2*th) 50*(COS(2*th)-0.5) 80 80*COS(3*th) 70+10*COS(6*th) 2*EXP(th/6.28) 70+10*COS(12*th) 70-40*SIN(2*th) 60+30*COS(6*th) 50-40*SIN(3*th) 60+30*RND(1) 50-40*SIN(th*th) | Table I: Other polar functions |
When running the program you'll be asked to enter the number of divisions and multiples of Pi. For best results the divisions should be either 64 or 128. and the multiples either one, two, four or eight. The variable rho is the distance from the current point on the curve to the origin, th is the angle between rho and the X axis. If all this sounds a bit dry, type it in and see the flower-like graphs the program generates. CPC COMPUTING (12-1988) ★ AMSTRAD CPC ★ DOWNLOAD ★ |
|
CPCrulez[Content Management System] v8.7-desktop/c Page créée en 063 millisecondes et consultée 746 foisL'Amstrad CPC est une machine 8 bits à base d'un Z80 à 4MHz. Le premier de la gamme fut le CPC 464 en 1984, équipé d'un lecteur de cassettes intégré il se plaçait en concurrent du Commodore C64 beaucoup plus compliqué à utiliser et plus cher. Ce fut un réel succès et sorti cette même années le CPC 664 équipé d'un lecteur de disquettes trois pouces intégré. Sa vie fut de courte durée puisqu'en 1985 il fut remplacé par le CPC 6128 qui était plus compact, plus soigné et surtout qui avait 128Ko de RAM au lieu de 64Ko. |
|
|