a problem with summation
    조회 수: 2 (최근 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?

댓글 수: 0
채택된 답변
  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
추가 답변 (0개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Number Theory에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

