suivant: Composition de fonctions :
monter: Définition d'une fonction
précédent: Définition d'une fonction de
Table des matières
Index
On définit la fonction
f (x, y) = x*sin(y), puis on veut définir la famille
de fonctions dépendant du paramètre t par
g(t)(y) : = f (t, y).
Comme ce qui se trouve après -> n'est pas évalué, on ne peut pas
définir g(t) par g(t):=y->f(t,y) et on doit utiliser la commande
unapply.
On tape pour définir les fonctions
f (x, y) = x sin(y) et
g(t) = y - > f (t, y) :
f(x,y):=x*sin(y);g(t):=unapply(f(t,y),y)
On obtient :
((x,y)->x*sin(y), (t)->unapply(f(t,y),y))
On tape
g(2)
On obtient :
y->2 . sin(y)
On tape
g(2)(1)
On obtient :
2 . sin(1)
On définit la fonction
h(x, y) = (x*cos(y), x*sin(y)),
puis on veut définir la famille de fonctions dépendant du paramètre t
par
k(t)(y) : = h(t, y).
Comme ce qui se trouve après -> n'est pas évalué, on ne peut pas
définir k(t) par
k(t) : = y - > h(x, y) et on est obligé d'utiliser la
commande unapply.
On tape pour définir la fonction h(x, y) :
h(x,y):=(x*cos(y),x*sin(y))
On tape pour définir la fonction k(t) :
k(t):=unapply(h(x,t),x)
On obtient :
(t)->unapply(h(x,t),x)
On tape
k(2)
On obtient :
(x)->(x*cos(2),x*sin(2))
On tape
k(2)(1)
On obtient :
(2*cos(1),2*sin(1))
Ou encore
On définit la fonction
h(x, y) = [x*cos(y), x*sin(y)],
puis on veut définir la famille de fonctions dépendant du paramètre t
par
k(t)(y) : = h(t, y).
Comme ce qui se trouve après -> n'est pas évalué, on ne peut pas
définir k(t) par
k(t) : = y - > h(x, y) et on est obligé d'utiliser la
commande unapply.
On tape pour définir la fonction h(x, y) :
h(x,y):={[x*cos(y),x*sin(y)]}
On tape pour définir la fonction k(t) :
k(t):=unapply(h(x,t),x)
On obtient :
(t)->unapply(h(x,t),x)
On tape
k(2)
On obtient :
(x)->{[x*cos(2),x*sin(2)];}
On tape
k(2)(1)
On obtient :
[2 . cos(1),2 . sin(1)]
suivant: Composition de fonctions :
monter: Définition d'une fonction
précédent: Définition d'une fonction de
Table des matières
Index
Documentation de giac écrite par Renée De Graeve