Question: how can i correct the following error > eq3 := applyop(proc (u) options operator, arrow; Parts(u, phi[i](x)) end proc, 3, eq2); %; Error, (in applyop) improper op or subscript selector

> restart; with(plots); with(LinearAlgebra); with(IntegrationTools); pde := rho(x)*(Diff(u(t, x), t, t))+lambda(x)*(Diff(u(t, x), t))-(Diff(P(x)*(Diff(u(t, x), x)), x))-Q(x)*u(t, x)+R(x);

> eq1 := int(pde*phi[i](x), x = -1 .. 1);

eq2 := expand(eq1);

> eq3 := applyop(u -> Parts(u, phi[i](x)) end proc, 3, eq2);

i get an error

Error, (in applyop) improper op or subscript selector

how to correct it??

Please Wait...