Code:

#include<stdio.h>
#include<math.h>
float scenarioB(void);
int size_PDP, size_PDP2, size_PPA, size_PPA2;
float infoexploitation(float PDP_dB[size_PDP][size_PDP2], float
Power_per_angle_dB[size_PPA][size_PPA2]);
int main(void)
{
scenarioB();
}
float scenarioB(void)
{
size_PDP=2, size_PDP2=9, size_PPA=2, size_PPA2=9;
float PDP_dB[2][9]=
{{0,-5.4287,-2.5162,-5.8905,-9.1603,-12.5105,-15.6126,-18.7147,-21.8168},
{0,10e-9,20e-9,30e-9,40e-9,50e-9,60e-9,70e-9,80e-9}};
float Power_per_angle_dB[2][9]= {{0, -5.4287, -10.8574, -16.2860,
-21.7147, -1e300, -1e300, -1e300, -1e300},
{-1e300, -1e300, -3.2042, -6.3063, -9.4084, -12.5105, -15.6126,
-18.7147, -21.8168}};
infoexploitation(PDP_dB, Power_per_angle_dB);
}
float infoexploitation(float PDP_dB[size_PDP][size_PDP2], float
Power_per_angle_dB[size_PPA][size_PPA2])
{
int i, j, k;
printf("\n\n******Information*********\n");
printf("\n\nPDP:\n");
for(i=0;i<size_PDP;i++)
{
for(j=0;j<size_PDP2;j++)
{ printf("%e\t", PDP_dB[i][j]);
}
printf("\n");
}
/*----------PDP in linear values---------*/
/*THIS IS THE PART OF THE PROGRAM THAT WORKS AND THEN CRASHES. ACCORDING TO A SOURCE I FOUND...
SIGNOFP
The No Co-processor signal. Generated if a co-processor (floating-point) instruction is encountered when no co-processor is installed (Int 07h). */
float PPA_linear[size_PDP][size_PDP2];
printf("\n\nPPA Linear:\n");
for(i=0; i<size_PDP; i++)
{
for(j=0; j<size_PDP2; j++)
{
PPA_linear[i+1][j+1] = pow(10,
.1*Power_per_angle_dB[i][j]);
printf("%e\t", PPA_linear[i+1][j+1]);
}printf("\n");
}
return 0;
}