ranges in place, sum function defmath