how to write power function on factorial?
조회 수: 16 (최근 30일)
이전 댓글 표시
I have to write this function.
f(0)= 4(0)! (1103+26390(0))/ (0!)^(4)396^(4)(0)
and that's how i wrote it
f(0)= [4* factorial(0)(1103+26390*0)]/[factorial(0)^(4)*396^(4)]
but it keep showing this error
()-indexing must appear last in an index expression.
댓글 수: 0
채택된 답변
Walter Roberson
2018년 2월 10일
f = @(x) 4 * factorial(x) .* (1103+26390*x) ./ (factorial(x).^(4).*396.^(4));
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!