can be written as

return ( (_rSum/r2) * variable);