Natural logarithm in C++ Solved FTS - mamiemando Posted messages 33228 Registration date Status Moderator Last intervention - 14 Dec 2005 at 00:57 Le message demandé ne contient pas d'élément à traduire. Show more Related links: What is a *.h file? exponentiation with C++!!?? Ti College Calculator TI College calculator issues Electricity L N: what color do the wires correspond to? TI College Plus (calculator problem) 2 answers Answer 1 / 2 tafiscobar Posted messages 1281 Status Contributor 177 Hello, you include the header file math.h and you use the function double log(double x) -- tafiscobar "the way you define bopame" nullity does not exist, ignorance does, oh I suppose!!! Answer 2 / 2 mamiemando Posted messages 33228 Registration date Status Moderator Last intervention 7 944 In C++ to include a C header: extern "C" { #include <math.h> }</math.h> If you are actually using C with gcc, remember to compile with the -lm option. Good luck! Show full discussion
Answer 1 / 2 tafiscobar Posted messages 1281 Status Contributor 177 Hello, you include the header file math.h and you use the function double log(double x) -- tafiscobar "the way you define bopame" nullity does not exist, ignorance does, oh I suppose!!!
Answer 2 / 2 mamiemando Posted messages 33228 Registration date Status Moderator Last intervention 7 944 In C++ to include a C header: extern "C" { #include <math.h> }</math.h> If you are actually using C with gcc, remember to compile with the -lm option. Good luck!