I am trying to use the pre-built function of GEE for calculating the slope of the terrain, but I cannot really understand how the function works, since the documentation is also not really helpful.
Can anyone provide an explanation about its mechanism? For example, which kind of formula it uses to extract the slope from a DEM.