Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help me out:)
Message
From
26/10/2001 08:14:29
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
26/10/2001 08:09:52
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00573566
Message ID:
00573572
Views:
25
>x = ln y / ln 2

This is equivalent to taking the logarithm of "y", to the base 2. However, since most programming languages don't have a built-in function for logarithms in arbitrary bases, you have to use this equivalent.

log_2(x) = ln(x) / ln(2)

where log_2 means logarithm to the base 2; 2 should be written as a subscript.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform