How can I expand a function to a polynomial expression?
Show older comments

I want to expand the equation (1) to (2). I tried as follows, but the result goes back to the equation (1).
clear
clc
syms x k;
assume(-1< x/4 <1);
expand((1-x/2)*symsum((x/4)^k,k,0,inf));
simplify(ans);
pretty(ans)
ans= 2 (x - 2) / ( x - 4 )
Accepted Answer
More 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!