Re: PlusMinus Operator Question
- To: mathgroup at smc.vnet.net
- Subject: [mg38392] Re: PlusMinus Operator Question
- From: bghiggins at ucdavis.edu (Brian Higgins)
- Date: Fri, 13 Dec 2002 04:10:32 -0500 (EST)
- References: <at9eaq$q7a$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Terry, Use a Repalcement rule: va /. PlusMinus[x_, y_] -> PlusMinus[a x, a y] {{4.1 a ± 0.057 a}, {-3.16 a ± 0.796 a}, {5.09 a ± 0.25 a}} Cheers, Brian TerryH <tharter at attglobal.net> wrote in message news:<at9eaq$q7a$1 at smc.vnet.net>... > Hi All: > How can I get Mathematica 4.2 to do simple multipliction thru > PlusMinus operators? > For example, suppose I have a 3-dimensional vector with component > tolerances specified: > > In[4]:= va = {{4.10 ± 0.057}, {-3.16 ± 0.796}, {5.09 ± .250}} > Out[4]:= > {{4.1\[PlusMinus]0.057},{-3.16\[PlusMinus]0.796},{5.09\[PlusMinus]0.25}} > > > > In[5]:= FullForm[va] > Out[5]://FullForm= > > List[List[PlusMinus[4.1`,0.057`]],List[PlusMinus[-3.16`,0.796`]], > > List[PlusMinus[5.09`,0.25`]]] > > In[6]:= 5.2*va > Out[6]:= {{5.2 (4.1\[PlusMinus]0.057)},{5.2 > (-3.16\[PlusMinus]0.796)},{5.2 (5.09\ > \[PlusMinus]0.25)}} > > However, what I want is (for the first component of the vector, va) is > 5.2*4.1 ± (5.2*0.057) > or, equivalently > 21.32 ± 0.2964 > > Is there a standard package to do this? I wasn't able to find anything > of help in > Section 1.10 or 3.10 of the Wolfram Reference. How does one assign > meaning to the > PlusMinus operator to do simple arithmetic calculations as shown above? > > Many thanks to all who may respond! > ....Terry H