Subversion Repositories gelsvn

Rev

Rev 56 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 56 Rev 96
Line 9... Line 9...
9
{
9
{
10
	double x;
10
	double x;
11
 
11
 
12
	int step(int iter)
12
	int step(int iter)
13
	{
13
	{
14
		x += .5 / ( (iter-.75)*(iter-.25) );				
14
		x += .5 / ( (iter-.75)*(iter-.25) );
-
 
15
		return 0;
15
	}
16
	}
16
 
17
 
17
	~Blob() {cout << "Blob destroyed" << endl;}
18
	~Blob() {cout << "Blob destroyed" << endl;}
18
};
19
};
19
 
20
 
20
 
21
 
21
double x=0;
22
double x=0;
22
int step(int iter)
23
int step(int iter)
23
{
24
{
24
	x += .5 / ( (iter-.75)*(iter-.25) );				
25
	x += .5 / ( (iter-.75)*(iter-.25) );				
-
 
26
	return 0;
25
}
27
}
26
 
28
 
27
int (*step_fun)(int) = step;
29
int (*step_fun)(int) = step;
28
 
30
 
29
 
31