Anonymous function to calculate a sum
13 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Ellen De Jonghe
il 9 Gen 2020
Commentato: Stephen23
il 9 Gen 2020
Hye
I have to write an anonymous function which calculates the following sum for a given real number x and a positive integer:
x + (x^2)/2! + (x^4)/4! + ... + (x^2n)/(2n)!
I started off with this:
ch = @(x,n) ...
But I don't know how I can calculate the sum with only the anonymous function.
0 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Graph and Network Algorithms 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!