-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmandel.c
More file actions
26 lines (26 loc) · 1.63 KB
/
mandel.c
File metadata and controls
26 lines (26 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
*****/
double
fabs /*
*/ (); double s =
100.0, u = 4.0 / 100.0;
char c ( double xp, double
yp ) { double x= -2.0 + (xp
* ( u / 2.0) ), y = -2.0 + (yp *
u ) , a = x, b = y, n = 30.0; while ( n
< 300.0 ) { double aa = ( a * a ) - ( b * b
) , bb = 2.0 * a * b; a = aa + x ; b = bb+y;/*
..................*/if ( fabs (a + b) > 200.0 ) { return ' '; }
n++ ; } return '#'; } main ( ) { double x, y;
for ( y = 23.0 ; y < s - 23.0; y++ ) { for (
x = 0.0 ; x < ( s + s ) - 80 ; x++ ) {/**/
/**/ printf ( "%c", c ( x, y ) ) ; }
printf ( "\n" ) ; } } /* $$ %
.( //%§§&/)%/"!"!§"§$()%$%§"
--''###*&"""()////$%§§$$'
_####**++++P.A.D.'#'''##
'''1992###''''
##*
~###'
'"|"'
*/