21.11.2013 Aufrufe

Eine Einführung in die Programmiersprache C und die Grundlagen ...

Eine Einführung in die Programmiersprache C und die Grundlagen ...

Eine Einführung in die Programmiersprache C und die Grundlagen ...

MEHR ANZEIGEN
WENIGER ANZEIGEN

Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.

YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.

<strong>E<strong>in</strong>e</strong> <strong>E<strong>in</strong>führung</strong> <strong>in</strong> <strong>die</strong> Informatik <strong>und</strong> <strong>die</strong> <strong>Programmiersprache</strong> C<br />

19 Bibliotheksfunktionen<br />

19.1 Mathematische Funktionen <br />

Die Def<strong>in</strong>itionsdatei vere<strong>in</strong>bart mathematische Funktionen <strong>und</strong> Makros.<br />

W<strong>in</strong>kel werden bei trigonometrischen Funktionen im Bogenmass (Radiant) angegeben.<br />

double s<strong>in</strong>(double x)<br />

S<strong>in</strong>us von x<br />

double cos(double x)<br />

Cos<strong>in</strong>us von x<br />

double tan(double x)<br />

Tangens von x<br />

double as<strong>in</strong>(double x) arcs<strong>in</strong>(x) im Bereich [-π/2, +π/2], x von -1 bis +1.<br />

double acos(double x) arccos(x) im Bereich [0, +π], x von -1 bis +1.<br />

double atan(double x)<br />

arctan(x) im Bereich [-π/2, π/2].<br />

double atan2(double y, double x) arctan(y/x) im Bereich [-π, +π].<br />

double s<strong>in</strong>h(double x)<br />

S<strong>in</strong>us Hyperbolicus von x<br />

double cosh(double x)<br />

Cos<strong>in</strong>us Hyperbolicus von x<br />

double tanh(double x)<br />

Tangens Hyperbolicus von x<br />

double exp(double x)<br />

Exponentialfunktion e x<br />

double log(double x) Natürlicher Logarithmus ln(x), x > 0.<br />

double log10(double x) Logarithmus zur Basis 10, log10(x), x > 0.<br />

double pow(double x, double y) x y . E<strong>in</strong> Argumentfehler liegt vor bei x=0 <strong>und</strong> y

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!