03/14/2011, 06:21 PM

(03/14/2011, 05:04 PM)nuninho1980 Wrote: I'm very interesting about operation "@". but what's your code (pari/gp, maple...)?

Here's the C code. Feed this function three values:

m is a+b (don't give it m=0)

n is a*b

phi is a value between 0 and 1.

Sorry, the formatting (indenting) will disappear on this forum.

float wagm(float m, float n, float phi)

{

int i;

float p,q;

for (i=1;i<6;i++)

{

p = phi * (n-m) + m;

q = pow(n/m,phi) * m;

m = p;

n = q;

}

return p;

}

See my other post for a graph and for the extension to operations between multiplication and exponentiation.