how to write power function on factorial?

17 ビュー (過去 30 日間)
Shubneet Kaur
Shubneet Kaur 2018 年 2 月 10 日
回答済み: Walter Roberson 2018 年 2 月 10 日
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.

採用された回答

Walter Roberson
Walter Roberson 2018 年 2 月 10 日
f = @(x) 4 * factorial(x) .* (1103+26390*x) ./ (factorial(x).^(4).*396.^(4));

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by