Computing series in MATLAB

4 views (last 30 days)
Svetlana
Svetlana on 7 Mar 2015
Edited: Roger Stafford on 8 Mar 2015
Hello!
I wonder if it is possible somehow to force MATLAB to compute ANY series for this function: ((4+3x)/(x+2))^(2x-1) as x->inf. I need to find the limit without using the limit function in MATLAB.
I tried some ways, but they don't appear to be working as MATLAB says there is an error.
I would be very thankful for your help!
  2 Comments
Rick Rosson
Rick Rosson on 7 Mar 2015
Please post your code and the exact error message.
Svetlana
Svetlana on 7 Mar 2015
Firstly, I tried to compute a Taylor series so I've made a substitution: t = 1/x, t->0
g = ((3/t + 4)/(1/t + 2))^(2/t - 1)
taylor(g)
Warning: Cannot compute a Taylor expansion of '((3/t + 4)/(1/t + 2))^(2/t - 1)'. Try 'series' with the 'Left', 'Right', or 'Real' option for a more general expansion. [taylor]
or:
f = ((3/t + 4)/(1/t + 2))^(2/t - 1)
series(f, t = 0, Left)
Error: The expression to the left of the equals sign is not a valid target for an assignment.

Sign in to comment.

Accepted Answer

Roger Stafford
Roger Stafford on 8 Mar 2015
Edited: Roger Stafford on 8 Mar 2015
The reason you're having trouble finding that limit is that there is no finite limit! The expression goes quickly to infinity as x approaches infinity. For the same reason the expression
((3/t + 4)/(1/t + 2))^(2/t - 1)
has no Taylor series because it has a singularity at t = 0. It approaches infinity from the right and zero from the left.

More Answers (0)

Categories

Find more on Mathematics in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!