C Reference function log()

Usage of log():

double log(double x);


There is no range limit on the argument.

Return value:

There is no range limit on the return value.

Source code example of log():


		double input, output;
		input = 2.5;
		output = log (input);
		printf ("ln(%lf) = %lf\n", input, output);
		return 0;

Output of the log example program above:

	ln(2.500000) = 0.916291

This entry was posted in C Reference math.h Functions. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site. Tweet This! Tweet This! or use to share this post with others.

Leave a Reply: