Defining a function that is a summation?
11 ビュー (過去 30 日間)
古いコメントを表示
I've written the sum part:
syms x k
symsum((-1)^(k-1).*x^k/(k^2), k, 1, 100)
and want to define the function as f(x) = 1 + this sum, but seem to get errors no matter what I do.
Can anyone help with setting up the definition of the function?
0 件のコメント
採用された回答
Walter Roberson
2012 年 5 月 3 日
syms x k
f = matlabfunction( 1 + symsum((-1)^(k-1).*x^k/(k^2), k, 1, 100) );
10 件のコメント
RB
2017 年 5 月 16 日
@ Walter Sir can you please have a look at the attached jpg file in the new question created. I am not being able to sum functions although I have now define an array for matrices.
Thanks.
その他の回答 (1 件)
Tushar GUPTA
2019 年 3 月 25 日
Creating a function file: Write a local function with two input arguments ‘a’ and ‘N’ to perform the summation:, for N = 5 and 50.
can u plz help me in solving this question?
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


