Although this question might seem silly to Maple experts, I cannot help asking, since despite a long search through Maple Help and Maple Guides I was not able to come across the answer. What I mean is this:
> eq1 := diff(y(t),t)-y(t)^2+y(t)*sin(t)-cos(t) = 0;
> # here I want some command that would return the order of eq1, i.e. 1
> eq2 := diff(y(t),`$`(t,2)) = y(t)*u(t) + diff(u(t),t);
> something(eq2,y); # this should return 2
> something(eq2,u); # this should return 1
Besides, I would also need the same for recurrent (shift) equations, i.e.
> eq3 := y(t+2) = u(t)+y(t)*u(t+1);
> something2(eq3,y); # this should return 2
> something2(eq3,u); # this should return 1
What are the proper names for "something" and "something2" in Maple?
Thanks in advance!