[GRASS5] r.mapcalc exp(a,b) or pow(a,b)

Hamish hamish_nospam at yahoo.com
Thu Apr 13 00:47:06 EDT 2006


r.mapcalc has both exp(a,b) and pow(a,b), defined in xexp.c and xpow.c.

pow() works, but is only mentioned on the help page as an example in the
NULL support section.

Which is preferred? From looking at the code I assume exp(a,b) was an
add-on?

The only difference I can tell is that exp(a,b) for forces DCELL output
while pow(a,b) will make a CELL map if both a,b are int.

Should pow(a,b) be listed in the available fns or should one or the
other be tagged for future retirement?


thanks,
Hamish




More information about the grass-dev mailing list