merged affine arithmatic with RBFs