use file instead of package for newtonraphson