Note that some implementations of C incorporate the mathematics library
into the standard library and some implementations do not. For those
implementations that do not, you may need to add -lm
to the command
you use to compile a program that makes use of the mathematics library. Thus
you would compile analyze_trades
as follows:
cc -lm -o analyze_trades analyze_trades.c