Skip to content

Commit

Permalink
Update MatrixTools.cs
Browse files Browse the repository at this point in the history
Issue #500
 Log10 of 10 = 1.0. No need for the deleted portion.
  • Loading branch information
towsey committed Sep 7, 2021
1 parent 83e7886 commit d69208f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TowseyLibrary/MatrixTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ public static double[] Matrix2Array(double[,] matrix)
for (int j = 0; j < cols; j++)
{
//convert decibels to power
double power = Math.Exp(m[i, j] / 10 * Math.Log(10));
double power = Math.Exp(m[i, j] / 10);
retM[i, j] = power;
}
}
Expand Down

0 comments on commit d69208f

Please sign in to comment.