필터 지우기
필터 지우기

summation using syms and rounding

조회 수: 1 (최근 30일)
dulanga
dulanga 2019년 3월 18일
댓글: dulanga 2019년 3월 19일
is this way correct?Also want the number rounded to the first dp.
syms k
f = k-4/k-5;
v1 = subs(f, k, 1:3)
s_sum = sum(v1)
v2=subs(f,k,6:100)
s_sum2=sum(v2)
f=(0-4)/(0-5)
sum=s_sum+s_sum2+f
value = round(sum * 10) / 10
  댓글 수: 6
Torsten
Torsten 2019년 3월 19일
Because you have to multiply P1 and P2, not add them.
dulanga
dulanga 2019년 3월 19일
noted

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Assumptions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by