import math


def point_in_wave(point_x, frequency, amplitude, offset_x, offset_y):
    """Returns the specified point x in the wave of specified parameters."""
    return (math.sin((math.pi * point_x)/frequency + offset_x) * amplitude) + offset_y