my problem ∏n=0 ^∞ x\ (n!) ^2 but my code did't work just say error: 'n' undefined near line 5 column 10 error: called from
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
x= (input("1.tam sayi: "));
n= (input("2.tam sayi: "));
function[S]=yanit6(x,n)
c=0;
for i =0:n
c= c+ (x\(factorial(n)^2))
end
end
1 Commento
Walter Roberson
il 1 Giu 2020
you are not calling the function in what you post.
Your function is calculating a sum not a product.
Risposte (0)
Vedere anche
Categorie
Scopri di più su Subplots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!