[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: divide by zero error



PureBytes Links

Trading Reference Links

Hi frank,
Hi Franck,

I would use this:

Inputs:Len1(0),Len2(0),Len3(0);
vars: MyAverage(0);

If c[1] > 0 and c[1] of data2 > 0 then
MyAverage =xaverage(xaverage(xaverage((c - c[1])/c[1],LEN1) -
xaverage((c data2 - c[1] data2)/c[1] data2,LEN1),LEN2),LEN3);

If you have another solution, please tell me.

Greetings from Paris

Phil


-----Message d'origine-----
De : FrankKaeb@xxxxxxx [mailto:FrankKaeb@xxxxxxx]
Envoyé : dimanche 28 mai 2000 07:43
À : code-list@xxxxxxxxxxxxx; omega-list@xxxxxxxxxx
Objet : divide by zero error


How do I eliminate the divide by zero error in the following function:

xaverage(xaverage(xaverage((c - c[1])/c[1],LEN1) - xaverage((c data2 - c[1]
data2)/c[1] data2,LEN1),LEN2),LEN3)