- https://www.mathworks.com/help/symbolic/sym.symsum.html
- https://www.mathworks.com/help/symbolic/syms.html
Double Summation of complex formula with derivative
1 回表示 (過去 30 日間)
古いコメントを表示
how can i write code to write this formula?
0 件のコメント
回答 (1 件)
Jinal
2024 年 6 月 20 日
編集済み: Jinal
2024 年 6 月 20 日
Hi Burak,
You can make use of the Symbolic Math toolbox functions to code such equations.
Here is an example of a symbolic expression along with its coressponding matlab code:
% Create symbolic variables
syms x i j N M
% Compute symbolic sum of the series represented in the exmaple equation
S = symsum(symsum(i*cos(i*x + j^2), j, 1, M), i, 1, N);
For more information on "symsum" and "syms" please refer the following pages:
Further, you can refer to the this documentation page to look at all Symbolic Math functions available for performing calculus operations and adjust the example code to fit your usecase: https://www.mathworks.com/help/symbolic/calculus.html
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!