Please find attached my code for energy consumption in underwater sensor networks. The values that I am getting are too large or infinity. Kindly point out my mistake. Also please comment whether my formulas on line 11 and 12 are correct or not
Regards