Sum of functions

Dear FF++ users

I would like to ask please,
I have functions which are connected via an index “i”
how can I sum these functions concerning this index?

For example, if I define
macro kappai(x,y,xi,yi) ((x-xi)^2+(y-yi)^2<=r^2)//

and would like to sum them for i=1…10?

Thanks in advance,

Mordechai.

use a true func not a macro

func real kappa(real x, real y, real[int] xi, real[int] yi)
 {
 // do the loop here ... 
 }
1 Like

Hello professor Hecht,

Thank you very much.