cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Filter numbers out of the vector according to some condition

Highlighted
Newbie

Filter numbers out of the vector according to some condition

For MathCAD 15.0, is there any convenient way in MathCAD to filter the numbers outside of the specified range away from the vector?

e.g.

X=(-0.344 0.344 -1.056, 1.056)

but I only want answer within the range of 0.45<X<2

So the correct answer and only answer should remain is X=1.056 in this case.

I know there's the assume and RealRange(min,max) functions, but I'm not sure if it can be applied here. If so, how does it work?

Please advice.

1 REPLY 1

Re: Filter numbers out of the vector according to some condition

You could do it like this:

Fxsolvec.PNG

However, since the end result is numerical you are better off solving numerically from the off, as in your other thread.

Alan

Announcements