• Aucun résultat trouvé

ProgEditAjouternxtOKSave// Parsing dicho// Success compiling dicho DoneMenu

N/A
N/A
Protected

Academic year: 2022

Partager "ProgEditAjouternxtOKSave// Parsing dicho// Success compiling dicho DoneMenu"

Copied!
1
0
0

Texte intégral

(1)

dicho(f,p,a,b):= { local aa,bb,k;

aa:=a;

bb:=b;

k:=0;

while( (bb-aa)>p) {

if (sign((f((bb+aa)/2)))=sign((f(bb))) ) bb:=((aa+bb)/2);

else aa:=((aa+bb)/2);

k:=k+1;

}

return evalf((bb+aa)/2)+ " est la solution trouvØe aprŁs " +k+ " itØrati }:;

Prog Edit Ajouter nxt OK Save

// Parsing dicho

// Success compiling dicho

Done

Menu Digits:=30:;dicho(x->x^2-2,10^(-30),1,2)

Done 1.414213562373095048801688724209 est la solution trouvØe aprŁs 100 itØrations

( , )

Menu

Newton(f,p,u0):= { local un,aun,fp,k;

fp:=function_diff(f);

k:=0;

aun:=u0;

un:=u0-f(u0)/fp(u0);

while (abs(un-aun)>p) { aun:=un; un:=un-f(un)/fp(un);

k:=k+1;

}

return evalf(un)+" est la solution trouvØe aprŁs " + k +" itØrations" ; }:;

Prog Edit Ajouter nxt OK Save

// Parsing Newton

// Success compiling Newton

Done

Menu Digits:=30:;Newton(x->x^2-2,10^(-30),1)

// Success

Done 1.414213562373095048801688724209 est la solution trouvØe aprŁs 6 itØrations

( , )

Menu 1

2

3 4

5

6 6

Références

Documents relatifs

Impl´ ementer une fonction nb racines qui prend un polynˆ ome et deux r´ eels a et b en param` etre, et qui retourne le nombre de racines du polynˆ ome comprises dans [a, b]1.

a) Ha dicho el hombre del canal meteorológico que quizá (llover) _____________ este fin de semana... Te cobraron el traslado del aeropuerto al hotel y a ti te habían dicho que

Together with the machine equivalence theorem, this implies that both machines perform the same sequence of abstract operations, and hence compilers based on these abstract machines

Following such examples and taking into account that the scientist community working in the robotics field can also benefit of following a similar approach, we decided

[r]

[r]

In the case of model-to-model transformations, a key element of a model transformation language is its mechanism to resolve relationships between model elements, which impact both

In line with our choice to illustrate knowledge graph theory for two rather different languages, for which we chose English and Chinese we classify Chinese words into 8 word