I believe relative error is not suitable for these algorithms.