Hello there,
I have been having trouble removing elements from a list using the subsop tool.
I have a list A containing smaller lists of 2 values (A=[[0,1],[2,2],[4,5],[-1,-2], ... ]). My goal is to set boudaries to these sublists such as if the "y" (second value in any sublist) value is greater than 3, remove it from the list. here is what my code looks like
for i from i to n do
if evalf(op(2,op(i,A))) < 0 then
subsop(i=NULL,A);
fi;
od;