Skip to content

Commit

Permalink
Update terminology, use M_PI
Browse files Browse the repository at this point in the history
  • Loading branch information
LightningStalker committed Jun 17, 2021
1 parent 4f25990 commit 8b39213
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion iloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <stdlib.h>
#include <math.h>

#define u 1.2566370621219E-6 // µ - permeability of free space
#define u 1.2566370621219E-6 // µ - magnetic constant

int main()
{
Expand Down
4 changes: 2 additions & 2 deletions tankfreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ int main (int argc, char **argv)
{
if (argc == 3)
{
printf ("%f\n", 1 / (3.14159265358979324 * 2 * sqrt (atof(argv[1]) /
1000000 * atof(argv[2]) / 1000000)));
printf ("%f\n", 1 / (M_PI * 2 * sqrt(atof(argv[1]) \
* atof(argv[2]))) * 1000000);
return (0);
}
else
Expand Down

0 comments on commit 8b39213

Please sign in to comment.