How do I check using MATLAB if a symbolic expression evaluates to zero?
Show older comments
I want to verify using MATLAB that the expression:
nchoosek(n+1,k)*2^(-n-1) - nchoosek(n,k)*2^(-n) + nchoosek(n,k)*2^(-n-1) + nchoosek(n,k-1)*2^(-n-1)
is identically zero.
I have tried using 'simple' and 'simplify' but MATLAB doesn't boil the expression down to zero.
Please help.
Thanks.
1 Comment
José-Luis
on 23 May 2013
How do you do that? Could you post a sample of your code?
Answers (0)
Categories
Find more on Symbolic Math Toolbox 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!