Question: How do I implement a boolean check?

E.g. I have five solutions from former computations i.e. k1..k5, some of which are common expressions, some are multiple solutions and some are just nothing, because Maple was not able to compute it.

Now I try the following:

 

for i from 1 to 5 do

subs(x = a, k||i):

end do;

 

That won´t work, because Maple realizes, that some of the k||i expressions are no expressions.

Now I think of inserting a boolean-check such as:

 

 

for i from 1 to 5

while type(k||i, t) do

subs(x = a, k||i):

end do;


My problem is: Of what "type" must t be, to fit the type 'subs' expects?

(In the help to subs it sais, subs expects f to be an 'expression', but there is no such type.)

Thanks for answering.

Please Wait...