Bonjour,
j'essaie de créer avec Maple une fonction par morceau du type :




J'ai créé mon code :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
f := (x, y)-> if 0 <= x and x < 1 and 0 <= y and y < 1 then 1
elif 0 <= x and x < 1 and 1 <= y and y < 2 then 2 
elif 1 <= x and x < 2 and 0 <= y and y < 1 then 1.5
elif 1 <= x and x < 2 and 1 <= y and y < 2 then 1 
end if end proc;
with(plots);
implicitplot('f(x, y)', x = 0. .. 2.0, y = 0. .. 2.0);
Mais il ne fonctionne pas. De plus qund je ne vois pas comment définir piecewise avec deux variables. Help !