フィルターのクリア

Can the symbolic toolbox be used to derive results for arbitrary number n?

1 回表示 (過去 30 日間)
atharva aalok
atharva aalok 2022 年 9 月 23 日
編集済み: Torsten 2022 年 9 月 23 日
I wish to do some calculations for my research for a general number n, but the calculations are hellishly long. I was wondering if matlab can be used to do this.
Consider as an example problem the sum of first 'n' natural numbers.
Can I use the matlab symbolic toolbox to arrive at the result n(n+1) / 2?
If yes, how can I do that?

採用された回答

Walter Roberson
Walter Roberson 2022 年 9 月 23 日
編集済み: Torsten 2022 年 9 月 23 日
syms n m
symsum(m, m, 1, n)
ans = 

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by