Here is a short program for the Amstrad machines. When run il produces a stepped landscape that looks quite interesting To be more technical it produces a three dimenfional graph of a log function. If the expression INT(2* Log(x + y) in Line 40 is replaced, another view is obtained. Examples include: INT(2* TAN(x+y/1100)) or (2* Atn(8*Sin(x*y/1100). 10 MODE 1 20 FOR x=1 TO 40:PLOT x*10,0 30 FOR Y=1 TO 40 40 DRAW(x+y/2)*10,(INT(2*LOG(x*y))+y/2)*10 50 NEXT:NEXTPopular Computing Weekly
| ★ AMSTRAD CPC ★ A voir aussi sur CPCrulez , les sujets suivants pourront vous intéresser... |
|
|