Re: How to =B1?
- To: mathgroup at smc.vnet.net
- Subject: [mg103696] Re: How to =B1?
- From: Peter Breitfeld <phbrf at t-online.de>
- Date: Fri, 2 Oct 2009 08:31:51 -0400 (EDT)
- References: <ha2113$n6o$1@smc.vnet.net>
olliH wrote:
> Hi how do I make an expression with the =B1 Operator?
>
> In = x =B1 1
> Out = {x+1,x-1}
>
> (=B1 is the plus/minus symbol if this does not show up
> properly - moderator)
>
Try this:
PlusMinus[x_,y_]:=Flatten[x+y,x-y]
Test:
x ± 3 gives {3+x,-3+x}
x ± 3 ± 7 gives {10 + x, 4 + x, -4 + x, -10 + x}
--
_________________________________________________________________
Peter Breitfeld, Bad Saulgau, Germany -- http://www.pBreitfeld.de