module Math
# Returns real solution(s) of +a+x + +b+ = +c+ or +nil+
# if no or an infinite number of solutions exist. If
# c is missing it is assumed to be 0.
#
# @author Josef Schugt
def self.linsolve(a, b, c = 0.0)
a == 0 ? nil : (c - b) / a
end
end