y=ab^x given two points calculator