Sh script I will use for outputting numbers
Added a way to practically output just the medium value or the entire
field. Fixed Newton method (probably).