Question: finding "diff"s

Maple People,

I've been trying to work out a procedure for a friend for a couple days right now and I'm totally stumped. It's just a maple syntax thing.

Given a set like:
S:={X(t)^2+Y(t)^2=1,2*X(t)*diff(X(t),t)+2*Y(t)*diff(Y(t),t$2)=0}
how can I determine the ''highest t-derivative'' of X(t) (or any other of the functions).

That is, the highest t-derivative of X(t) in S is diff(X(t),t)
... of Y(t) in S is diff(Y(t),t$2)

I can't seem to get any relevant information by doing:

> f:=diff(X(t),t);
d
f := -- X(t)
dt

> op(f);
X(t), t

> indets(f);
d
{t, X(t), -- X(t)}
dt


Thanks a bunch!
Paul Vrbik
Please Wait...