rational approximation using direct solvers added