Algorithm
A clear sequence of steps that solves a task. A computer carries it out exactly as written. Every calculation in a statistics program follows an algorithm.
Example: Mean: add up all values, divide the sum by the number of values.
Caution: For the same quantity there are sometimes several accepted algorithms. For example, programs give slightly different quantiles for small n.