a problem with summation

1 次查看(过去 30 天)
Hi friends I have some problem with calculating summation. there is a summation in following image. i have 'm' & all Fi for each i but p is variable and it is unknown. now i want to make a polynomial like A=8p^3+16p^4-p^5+... how it works in matlab?

采纳的回答

Aritra Sasmal
Aritra Sasmal 2016-8-1
编辑:Aritra Sasmal 2016-8-1
You can create a symbolic variable
syms p
for m_indx=1:m
R_g(p)=R_g(p)+F_i*p^(m_indx-1)*(1-p)^m_indx;
end
Now you can do R_g(2) to find value for p=2.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Number Theory 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by