MathGroup Archive 2011

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

Search the Archive

Re: output forms

  • To: mathgroup at smc.vnet.net
  • Subject: [mg121544] Re: output forms
  • From: "Chris Degnen" <degnen at cwgsy.net>
  • Date: Mon, 19 Sep 2011 07:05:17 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <j51sp2$pf7$1@smc.vnet.net> <j54975$68q$1@smc.vnet.net>

Here is an evaluatable version:

With[{a = 1, b = 2, c = 3},
 CellPrint[Cell[BoxData[First[ToBoxes[
      HoldForm[d = a + b*c]]]], "Input"]]]


Oleksandr Rasputinov <oleksandr_rasputinov at hmamail.com> wrote:
>

> On Sat, 17 Sep 2011 11:28:50 +0100, klkj fukyfl <kitas11 at yahoo.com> wrote:
>
>> Hello, I need Matheamtica to do the following:
>>
>> in:
>>
>> a=1;
>> b=2;
>> c=3;
>> d=a+b*c
>>
>> out:
>>
>> d=1+2*3
>> and so on...
>>
>> previously I was using another system, but I found that this kind of
>> stuff is impossible
>>
>> Can this be performed on Mathematica?
>
> If I have understood you correctly, yes:
>
> In[1] :=
> With[{
>   a = 1,
>   b = 2,
>   c = 3
>  },
>  HoldForm[d = a + b*c]
> ]
>
> Out[1] =
> d = 1 + 2=D73
> 






  • Prev by Date: Re: Replace & Rationalize
  • Next by Date: Re: Replace & Rationalize
  • Previous by thread: Re: output forms
  • Next by thread: CUDA computing