next up previous contents index
suivant: Définition d'une fonction de monter: Définition d'une fonction précédent: Définition d'une fonction de   Table des matières   Index

Définition d'une fonction de $ \mathbb {R}$p dans $ \mathbb {R}$q

On tape pour définir la fonction h  :  (x, y) - > (x*cos(y), x*sin(y)) :
h(x,y):=(x*cos(y),x*sin(y))
On tape pour définir la fonction h  :  (x, y) - > [x*cos(y), x*sin(y)] :
h(x,y):=[x*cos(y),x*sin(y)];
Ou on tape :
h:=(x,y)->[x*cos(y),x*sin(y)];
Ou on tape :
h(x,y):={[x*cos(y),x*sin(y)]};
Ou on tape :
h:=(x,y)->return[x*cos(y),x*sin(y)];
Ou on tape
h(x,y):={return [x*cos(y),x*sin(y)];}
On obtient :
(x,y)->{return([x*cos(y),x*sin(y)]);}
Attention !!! ce qui se trouve après -> n'est pas évalué.

Documentation de giac écrite par Renée De Graeve