Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A simplier math formula
Message
De
17/12/2008 01:01:02
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
16/12/2008 23:39:24
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turquie
Information générale
Forum:
Politics
Catégorie:
Autre
Divers
Thread ID:
01367448
Message ID:
01368008
Vues:
8
>>Was there ever a conclusion here as to what is correct?
>>
>>I would of done it like this:
>>(-2)^2 = 4
>>
>
>try:
>
>?5-2^2
>
>?-2^2
>
>obviously VFP and Excel has a bug.

vbg

Good morning Metin,

no they do math based on other rules then you assume.

There is no rule that a programming language should solve a formula in the same rules as you have learned. The just need to follow there own definition.

As long as you find a way to get the result you need, all is fine.

To give you an example

you know boolean math uses disjunctive normal form and conjunctive normal form. The poor comp normaly may use one. Or it works without. So you have to transform your expression to get the right result.

Agnes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform