Current section
Files
Jump to
Current section
Files
lib/function.ex
defmodule Fluxion.Function do
@moduledoc """
An Elixir behaviour for a mathematical function definition and it's
derivative.
"""
@type t() :: module()
@doc "evaluate the function f(x) at x"
@callback f(number) :: number
@doc "evaluate f'(x) at x"
@callback dfdx(number) :: number
end