Radar received power equation

#include <iostream> #include <cmath> using namespace std; double radar_received_power_W(double radar_transmitted_power_W, double distance_radar_target_m, double radar_cross_section_of_target_m2, double radar_antenna_gain, double wavelength_m) { return radar_transmitted_power_W * pow(radar_antenna_gain, 2) * radar_cross_section_of_target_m2 * pow(wavelength_m, 2) / (pow(4*M_PI, 3) * pow(distance_radar_target_m, 4)); } int main() { double radar_transmitted_power_W = 680, distance_radar_target_m = 30, radar_cross_section_of_target_m2 = 3, radar_antenna_gain = 3, wavelength_m = 100; cout << radar_received_power_W( radar_transmitted_power_W, distance_radar_target_m, radar_cross_section_of_target_m2, radar_antenna_gain, wavelength_m ) << "W"; // 0.114224W return 0; }