MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: How to =B1?


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


  • Prev by Date: Re: How to =B1?
  • Next by Date: Re: How to =B1?
  • Previous by thread: Re: How to =B1?
  • Next by thread: Re: How to =B1?