IEEE Arithematic
Afficher commentaires plus anciens
I have a row vector [3 (6-3e)/(2-2e) 1] and a column vector [3 14 -5-((6-3e)/(2-2e))*14]' where e = 1+0.5*10^-15. When I multiply these two vectors I get a 0 and I don't understand why? The second and third product is equal in magnitude but opposite in sign, so they should cancel out and the answer should be close to 9.This is how matlab computes these two vectors:
row vector = [3.000000000000000e+000 -3.377699720527871e+015 1.000000000000000e+000]
column vector = [ 3.000000000000000e+000 1.400000000000000e+001 4.728779608739018e+016]
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur C Shared Library Integration dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!