Board index » Visual Studio » Implementing Log
|
thomas_mulja
|
|
thomas_mulja
|
Implementing Log |
| Vincent
Registered User |
Wed Nov 23 00:07:57 CST 2005
Re:Implementing Log
On Tue, 22 Nov 2005 21:14:01 -0800, "Charles Tam"
<CharlesTam@discussions.microsoft.com>wrote: QuoteIn C++, what is the correct syntax to implement the expression of "10 log e"? of e" then a good way to implement it would be 10 If you mean "ten times the common logarithm of e" then ... 10 * log10(exp(1)) If you want something else, be clearer. -- - Vince - |
| Tim
Registered User |
Wed Nov 23 02:04:42 CST 2005
Re:Implementing Log
"Charles Tam" <CharlesTam@discussions.microsoft.com>wrote:
Quote
the natural log of 10? That's actually defined as a constant in math.h, M_LN10. If you want to know how to take the natural log of an arbitrary floating point value, use log(x). -- - Tim Roberts, timr@probo.com Providenza & Boekelheide, Inc. - |
| CharlesTam
Registered User |
Wed Nov 23 16:47:02 CST 2005
Re:Implementing Log
I meant "ten times the common logarithm of e", thanks.
"Vincent Fatica" wrote: QuoteOn Tue, 22 Nov 2005 21:14:01 -0800, "Charles Tam" |
| Igor
Registered User |
Wed Nov 23 16:54:31 CST 2005
Re:Implementing Log
Charles Tam <CharlesTam@discussions.microsoft.com>wrote:
QuoteI meant "ten times the common logarithm of e", thanks. -- With best wishes, Igor Tandetnik With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead. -- RFC 1925 - |
