import math


def sin_wave(t, f, A):
    """
    Return the sine-wave value at time step t.

    Args:
        t (float): time
        f (float): frequency
        A (float): amplitude

    Returns:
        a sin-wave value

    """
    return A * math.cos(2 * math.pi * f * t)