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

2 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by