while read x y z a b c d
do
(( a = a < 0 ? 0 - a : a ))
(( b = b < 0 ? 0 - b : b ))
(( c = c < 0 ? 0 - c : c ))
(( d = d < 0 ? 0 - d : d ))
(( m = a > b ? b : a ))
(( m = m > c ? c : m ))
(( m = m > d ? d : m ))
echo $x $y $z $m
done < in_file
No multiply or sqrt. Could nest the last three. "tr -d '-' |" would remove the negatives in the string space.