Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help me out:)
Message
De
26/10/2001 08:14:29
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
26/10/2001 08:09:52
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00573566
Message ID:
00573572
Vues:
26
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform