I don't understand the why the distributive property (in math) is not always true in MatLab?
Show older comments
I am using matlab and I have to find an example of when the distributive property does not work. ex. a*(b+c) = a*b + a*c
I don't understand how this can't be true. I have inputted everything I can think of. Thanks for the help.
1 Comment
per isakson
on 8 Mar 2014
Accepted Answer
More Answers (1)
the cyclist
on 8 Mar 2014
2 votes
You don't really give detail or an example of what you are seeing, but I am guessing you are encountering a floating point arithmetic issue, as described here, and lots of other places.
No, it's not a bug, and no, MATLAB doesn't mess with fundamental mathematics. But doing math on a computer does have some limitations.
Categories
Find more on Linear Algebra in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!