Raster map algrebra with r.mapcalc

r.mapcalc performs arithmetic on raster map layers. New raster map layers can be created which are arithmetic expressions involving existing raster map layers, integer or floating point constants, and functions.

Please read the tutorials (a bit outdated, but still valid for most of the basic operations.