Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help me out:)
Message
De
26/10/2001 08:09:52
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
26/10/2001 08:01:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00573566
Message ID:
00573568
Vues:
28
This message has been marked as the solution to the initial question of the thread.
>Hi guys
>
>help me out
>
>if 2^x = y, then x = ?
>
>thank you
2^x = y

Taking logs on both sides (I will use natural logarithms, but any base will do):

ln 2^x = ln y

The left side can be changed, using standard properties of logarithms:

x ln 2 = ln y

Now, you only require the most basic algebra to change this to:

x = ln y / ln 2

In VFP:

x = log(y) / log(2)
HTH, Hilmar.

BTH, I suggest to use more meaningful titles.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform