Crate ariprog

Crate ariprog 

Source

Structs§

NthTerm

Functions§

common_difference
Returns the common difference between two terms of an arithmetic progression
common_difference_and_first_term
Returns the common difference and the first term, as a tuple (common_difference, first_term)
first_term
Returns the first term of an arithmetic progression
how_many_terms
Returns the number of terms in an AP
insert_arithmetic_means
Returns an arithmetic progression with the first term + arithmetic means + nth_term, as a vector
nth_term
Returns the nth term of an arithmetic progression