Go to advanced search

by Miller514
Wed Oct 16, 2019 9:12 am
Forum: Mathematica
Topic: Mathematica, check if a variable is in a range
Replies: 0
Views: 2155

Mathematica, check if a variable is in a range

I am writing a program with a variable called cond which might equal something like Or[x < -2, 0 <= x <= 4].

Is there a good way if checking if another variable like x which might equal something like 4 satisfies the condition? Like if x==3, then SomeFunctionX=[cond,4] would return True? Upsers

Go to advanced search