find the sum of the series

3 Ansichten (letzte 30 Tage)
Tanush Samaiya
Tanush Samaiya am 28 Dez. 2021
Beantwortet: Walter Roberson am 31 Dez. 2021
Write a Matlab code to find the sum of the series: 1+ x /1 + x ^2/ 2 + x^ 3/ 3 +··· + x ^n/ n .
  2 Kommentare
KSSV
KSSV am 28 Dez. 2021
What have you tried for this simple home work?

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Pranjal Kaura
Pranjal Kaura am 31 Dez. 2021
Hey Tanush,
If you aren't sure where to start because you're not familiar with how to write MATLAB code, I suggest you start with the MATLAB Onramp tutorial (https://www.mathworks.com/support/learn-with-matlab-tutorials.html) to quickly learn the essentials of MATLAB.
If you aren't sure where to start because you're not familiar with the math you'll need to solve the problem, in which case I recommend asking your professor and/or teaching assistant for help.
Since this seems like a homework assignment, if you can provide the code you've written to solve the problem and ask a specific question about where you're facing difficulty, we may be able to provide some guidance
Hope this helps!

Walter Roberson
Walter Roberson am 31 Dez. 2021
Example showing a different series (because you are doing homework)
syms x n
symsum((-x)^n, n, 1, 50)
ans = 

Kategorien

Mehr zu Mathematics finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by