bonjour
pouvez vous m'aidez s'il vous plaît
il faut écrire un algorithme qui permet d'otenir sur algobox e^x tel que
e^x = x^0/1+x^1/1+x^2/2+x^3/6+..........x^n/n!+..
pouvez m'indiquer ce que je dois écrire pour faie fonctinnner cel algorithme
merci !
algorithme de calcul d'une valeur approchée de e^x par la série entière
calcul d'un nombre déterminé de termes
========================
1 VARIABLES
2 n EST_DU_TYPE NOMBRE
3 x EST_DU_TYPE NOMBRE
4 i EST_DU_TYPE NOMBRE
5 ex EST_DU_TYPE NOMBRE
6 factn EST_DU_TYPE NOMBRE
7 puisx EST_DU_TYPE NOMBRE
8 DEBUT_ALGORITHME
9 LIRE x
10 AFFICHER "x="
11 AFFICHER x
12 LIRE n
13 AFFICHER "n="
14 AFFICHER n
15 // Initialisations
16 ex PREND_LA_VALEUR 0
17 factn PREND_LA_VALEUR 1
18 puisx PREND_LA_VALEUR 1
19 POUR i ALLANT_DE 1 A n
20 DEBUT_POUR
21 ex PREND_LA_VALEUR ex+puisx/factn
22 puisx PREND_LA_VALEUR puisx*x
23 factn PREND_LA_VALEUR factn*i
24 FIN_POUR
25 AFFICHER "valeur approchée de e^x="
26 AFFICHER ex
27 FIN_ALGORITHME
========================
***Algorithme lancé***
x=2
n=20
valeur approchée de e^x=7.3890561
***Algorithme terminé***
========================
Je veux juste savoir comment l'écrire en langage naturel
En effet je ne comprend pas ce qu'est le langage naturel
celui que tu utilises tous les jours, le langage dont tu te sers pour expliquer par exemple la route à suivre pour se rendre quelque part,
tourner à droite
faire 50 mètres,
tourner à gauche
et bien il s'agit d'utiliser des phrases comme ça,
et je vais te dire un secret : l'algorithme que je t'ai filé est écrit en langage naturel :
2 n EST_DU_TYPE NOMBRE
3 x EST_DU_TYPE NOMBRE
4 i EST_DU_TYPE NOMBRE
5 ex EST_DU_TYPE NOMBRE
6 factn EST_DU_TYPE NOMBRE
7 puisx EST_DU_TYPE NOMBRE
8 DEBUT_ALGORITHME
9 LIRE x
10 AFFICHER "x="
11 AFFICHER x
12 LIRE n
13 AFFICHER "n="
14 AFFICHER n
15 // Initialisations
16 ex PREND_LA_VALEUR 0
17 factn PREND_LA_VALEUR 1
18 puisx PREND_LA_VALEUR 1
19 POUR i ALLANT_DE 1 A n
20 DEBUT_POUR
21 ex PREND_LA_VALEUR ex+puisx/factn
22 puisx PREND_LA_VALEUR puisx*x
23 factn PREND_LA_VALEUR factn*i
24 FIN_POUR
25 AFFICHER "valeur approchée de e^x="
26 AFFICHER ex
27 FIN_ALGORITHME
Vous devez être membre accéder à ce service...
Pas encore inscrit ?
1 compte par personne, multi-compte interdit !
Ou identifiez-vous :