Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Equal signs
Message
 
À
24/06/2004 09:58:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00916817
Message ID:
00916837
Vues:
7
>I am having some fun learning neural networks. I have the formula below with which to contend. As you can see, there are two (2) equal signs. Is a two equal sign formula legal in VFP 8 SP1? I have initialized all the variables and they are numeric. Even so, X2 evaluates to .F. instead of a decimal number.
>
>Decimals are set to 18
>
>X2 = SumOfn1j * Wn1j * sqrt(n1j) = SumOfn1j * Wn1j * .5 * SumOfn1l * sqrt(Tji2)
>
>Any ideas on how to solve my small problem are welcome? How can I break it up to incorporate X2 in both halves correctly?
>
Grady,

As others have said the expression to the right of the first equal sign is a logical one. In my experience, which covers a fairly large number of languages, whatever language will consider the expression exactly the same as VFP does. When doing this sort thing (which I use quite a bit), it's a good practice to use open and close parenthesis around the expression to the right of the first equal sign. This helps to clearly indicate that the result is a Boolean.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform