Solves a linear equation.

  • Parameters

    • a: number

      The slope (in slope-intercept form)

    • b: number

      The y-intercept (in slope-intercept form)

    • Optionalc: number

      The y-intercept (in standard form)

    • Optionald: number

      The y-coordinate of the second point (in point-slope form)

    Returns number