Question:system ode plot not working

Question:system ode plot not working

Maple

 >
 (1)
 > #  plot  solutions to a system  of DEs
 >
 > sys := {diff(x(t), t) = y(t), diff(y(t), t) = -x(t) - 1/2*y(t)}
 (2)
 > DEplot(sys, [x(t), y(t)], t = 0 .. 15, [[x(0) = 1, y(0) = 0]])
 > ;

This is not working, seems to be simple ...
Have made an attempt to create a procedure from these two commands, but no success
Apparently, I need to learn to use a debugger to determine what is wrong, then?

 > dv_systeemplot:= proc ( DV1,DV2 ,RV1,RV2 )                  local t, sys,systeemplot;                    sys := {DV1 , DV2 }:                  systeemplot:= DEplot(sys, [x(t), y(t)], t = 0 .. 15, [[RV1 , RV2]]);                  return systeemplot; end proc;
 (3)

 >
 (4)
 >
 (5)
 >
 (6)
 >
 (7)
 > dv_systeemplot( DV1,DV2 ,RV1,RV2 );
 >
 >

Ask AI to get some code: never i got the right Maple code ! :)

 >
 (8)
 > restart; systeem := proc(eq1, eq2, beginwaarden)   local x, y, oplossing;   x := unapply(rhs(dsolve({eq1, eq2, beginwaarden}, {x(t), y(t)})), t);   y := unapply(rhs(dsolve({eq1, eq2, beginwaarden}, {x(t), y(t)})), t);   oplossing := DEplot([x(t), y(t)], t = 0 .. 10, beginwaarden);   oplossing; end proc; # Definieer de differentiaalvergelijkingen eq1 := diff(x(t), t) = y(t); eq2 := diff(y(t), t) = -x(t); # Geef de beginwaarden op beginwaarden := [x(0) = 1, y(0) = 0]; # Roep de procedure aan met de differentiaalvergelijkingen en beginwaarden systeem(eq1, eq2, beginwaarden);

Probably i do need to work with a debugger here?

﻿