Function trinum

Source
pub fn trinum(x: usize) -> usize
Expand description

Calculates a triangular number, where trinum(x) == x*(x+1)/2.