summation using syms and rounding

3 visualizaciones (últimos 30 días)
dulanga
dulanga el 18 de Mzo. de 2019
Comentada: dulanga el 19 de Mzo. de 2019
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 comentarios
Torsten
Torsten el 19 de Mzo. de 2019
Because you have to multiply P1 and P2, not add them.
dulanga
dulanga el 19 de Mzo. de 2019
noted

Iniciar sesión para comentar.

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by