MathGroup Archive 2006

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

Search the Archive

Re: Unevaluated a[[1]]*a[[2]]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg65178] Re: Unevaluated a[[1]]*a[[2]]
  • From: albert <awnl at arcor.de>
  • Date: Thu, 16 Mar 2006 06:33:38 -0500 (EST)
  • References: <dvasti$c7q$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Alexandre Costa wrote:

> Dear Group,
> Suppose I have  a = {0.1245, 0.543};
> I want to check the values of the product:
> a[[1]]*a[[2]]. So I just want to see the product unevaluated as output:
> 0.1245*0.543.
> Thanks,
> Alex

Not really sure whether this is what you want:

With[{x1 = a[[1]], x2 = a[[2]]},
  HoldForm[InputForm[x1*x2]]
]

hth,

albert


  • Prev by Date: Re: getting one random number
  • Next by Date: Different font behavior between kernel and front-end
  • Previous by thread: RE: Unevaluated a[[1]]*a[[2]]
  • Next by thread: Re: Unevaluated a[[1]]*a[[2]]