Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

DiMarc217

macrumors newbie
Original poster
May 21, 2010
2
0
Hi, I'm doing a project that requires a lot of complicated shading in grapher (using inequalities). It would really help for me to be able to set the domain and/or range of the inequalities using an 'or' boolean statement. For example, I can do this:

x>0 : y<x+3

and I can use 'and' statements:

x>0 & x<3 : y<x+3

but I need to be able to do something like this:

x<0 OR x>3 : y<x+3

I know for this example I could just split it into two equations, but for the one I'm doing with multiple overlapping conditions, I need to be able to use an 'or' operator.

Does anyone know how to do this?

Thanks!
 
Grapher : boolean

Hi,
Menu Window/Equation palette/Symbols : the four last ones are -AND-OR-XOR-INFINITY.
Attachment : a .gcx file with your inequalities, two ways for them.
Does that solve your problem ?
Be well, YB24
 

Attachments

  • Inéquations.gcx.zip
    77.7 KB · Views: 214
Hi,
Menu Window/Equation palette/Symbols : the four last ones are -AND-OR-XOR-INFINITY.
Attachment : a .gcx file with your inequalities, two ways for them.
Does that solve your problem ?
Be well, YB24

love you!
 
Other options

"|" is another symbol for the OR operator, though in Grapher v 2.0 typing "|" gets you the absolute value operator.

For some cases, intervals can be used: "0≤x & x≤3" is equivalent to "x ∈ [0;3]" and "x<0 | 3<x" is equivalent to "x ∉ [0;3]".

The Grapher guide on this very site lists these operators (including how to enter them) and many others.
 
Grapher boolean signs

"|" is another symbol for the OR operator, though in Grapher v 2.0 typing "|" gets you the absolute value operator.

For some cases, intervals can be used: "0≤x & x≤3" is equivalent to "x ∈ [0;3]" and "x<0 | 3<x" is equivalent to "x ∉ [0;3]".

The Grapher guide on this very site lists these operators (including how to enter them) and many others.

Hi !
I can't use this sign in Grapher 2.1 as OR operator: I get every time the absolute value operator. May be there are some differences between french, english etc. keyboard. For what Grapher cases did you use this sign ?
Is "this very site list" wrong ?
Be well, YB24
 
I can't use this sign in Grapher 2.1 as OR operator: I get every time the absolute value operator. [...]
Is "this very site list" wrong ?
As noted in previous post, "|" produces the absolute value operator since Grapher v2 came out. The Grapher guide hasn't been updated with this information. The guide needs quite a bit of work, which I hope will happen as more people become aware of it.
 
As noted in previous post, "|" produces the absolute value operator since Grapher v2 came out. The Grapher guide hasn't been updated with this information. The guide needs quite a bit of work, which I hope will happen as more people become aware of it.

My own list of Grapher 2.1 keyboard shortcuts is in attachment. may be you'll find it useful.
Be well, YB
 

Attachments

  • Grapher21Shortcuts.pdf
    109.4 KB · Views: 231
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.