![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/6530634_1522115429666_DEF.jpg)
Jean Araujo
Actif depuis 2015
Followers: 0 Following: 0
Statistiques
All
RANG
106 317
of 297 016
RÉPUTATION
0
CONTRIBUTIONS
0 Questions
1 Réponse
ACCEPTATION DE VOS RÉPONSES
0.00%
VOTES REÇUS
0
RANG
of 20 419
RÉPUTATION
N/A
CLASSEMENT MOYEN
0.00
CONTRIBUTIONS
0 Fichier
TÉLÉCHARGEMENTS
0
ALL TIME TÉLÉCHARGEMENTS
0
CONTRIBUTIONS
0 Publications
CONTRIBUTIONS
0 Public Chaîne
CLASSEMENT MOYEN
CONTRIBUTIONS
0 Point fort
NOMBRE MOYEN DE LIKES
Feeds
Réponse apportée
Write a function called one_per_n that returns the smallest positive integer n for which the sum 1 + 1/2 + 1/3 + … + 1/n , is greater than or equal to x where x is the input argument. Limit the maximum number n of terms in the sum to 10,000 .
function out = one_per_n(x) total=0; n = 1; while total < x total = (total+1/n); n = n+1; end if n-1 > 1...
Write a function called one_per_n that returns the smallest positive integer n for which the sum 1 + 1/2 + 1/3 + … + 1/n , is greater than or equal to x where x is the input argument. Limit the maximum number n of terms in the sum to 10,000 .
function out = one_per_n(x) total=0; n = 1; while total < x total = (total+1/n); n = n+1; end if n-1 > 1...
plus de 9 ans il y a | 0