Logarithmus
-
Wie realisiere ich den Logarithmus und Logarithmus dualis und naturalis in C++
(spricht: Wie sieht die Notation aus).Danke im Vorraus
-
Ich habe hier ne allg. Loarithmus-Funktion:
double logx(double a, double b) { return(log(a)/log(b)); }
Logarithmus Naturalis:
double log(double a)
Dekadischer Logarithmus:
double log10(double a)
Du benötigst dafür die Headerdatei <cmath>.
Code-Hacker
-
thx an dich für die schnelle Antwort