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

조회 수: 1 (최근 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