maths.sum_of_arithmetic_series

Functions

main()

sum_of_series(→ float)

Find the sum of n terms in an arithmetic progression.

Module Contents

maths.sum_of_arithmetic_series.main()
maths.sum_of_arithmetic_series.sum_of_series(first_term: int, common_diff: int, num_of_terms: int) float

Find the sum of n terms in an arithmetic progression.

>>> sum_of_series(1, 1, 10)
55.0
>>> sum_of_series(1, 10, 100)
49600.0