defmodule Squares do @moduledoc """ Calculate sum of squares, square of sums, difference between two sums from 1 to a given end number. """ @doc """ Calculate sum of squares from 1 to a given end number. """ @spec sum_of_squares(pos_integer) :: pos_integer def sum_of_squares(number) do end @doc """ Calculate square of sums from 1 to a given end number. """ @spec square_of_sums(pos_integer) :: pos_integer def square_of_sums(number) do end @doc """ Calculate difference between sum of squares and square of sums from 1 to a given end number. """ @spec difference(pos_integer) :: pos_integer def difference(number) do end end