Programowanie w języku C/C++


  • 2010-10-31 18:27
  • 1 komentarz
  • 947 odsłon
  • Oceń ten tekst jako pierwszy
double log(double x);

Funkcja zwraca logarytm naturalny z argumentu x>0, czyli ln(x).


#include <stdio.h>
#include <math.h>
int main ()
  double argument, wynik;
  argument = 5.5;
  wynik = log (argument);
  printf ("ln(%lf) = %lf\n", argument, wynik );
  return 0;

da na wyjściu:

<font color=gray><font size="3">ln(5.500000) = 1,704748</font></font>

Zobacz też:

1 komentarz

twzbas 2016-10-05 09:18

For all of his catching wizardry and Nike Free Run darting quickness, Pro Nike Roshe Run Bowl wide receiver Odell Beckham NFL Jerseys Jr. continues to expose his weakness of being goaded into emotional letdowns. The Minnesota Vikings were the latest opponent to prey on his cheap nfl jerseys combustible nature Nike Air Max 90 on Monday, as they grabbed, hit and irritated Beckham to one of the worst games of his wholesale nfl jerseys career. Minnesota beat the New York Giants 24-10 and defeated their marquee pass-catcher Beckham who managed Nike Air Max 2015 Shoes just three catches for 23 nfl jerseys store yards.