utilizes compmath summation functionality
converts to double
should return a string
fixed compilation errors