triangular_num: Get nth triangular number

View source: R/misc.R

triangular_numR Documentation

Get nth triangular number

Description

Get nth triangular number

Usage

triangular_num(n)

Arguments

n

A non-negative integer.

Value

The n-th triangular number. (Where the 0th triangular number is 0.)

Examples

triangular_num(3)

longjess/hornsharkHMM documentation built on June 15, 2022, 11:32 p.m.