change LinearFunction so that API looks like: f(a), f.inverse(b)