how to write power function on factorial?
17 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Shubneet Kaur
il 10 Feb 2018
Risposto: Walter Roberson
il 10 Feb 2018
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 Commenti
Risposta accettata
Walter Roberson
il 10 Feb 2018
f = @(x) 4 * factorial(x) .* (1103+26390*x) ./ (factorial(x).^(4).*396.^(4));
0 Commenti
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!