Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #5072

Re: output forms

From "Chris Degnen" <degnen@cwgsy.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: output forms
Date 2011-09-19 11:07 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j577ps$j6r$1@smc.vnet.net> (permalink)
References <j51sp2$pf7$1@smc.vnet.net> <j54975$68q$1@smc.vnet.net>

Show all headers | View raw


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@hmamail.com> wrote:
>

> On Sat, 17 Sep 2011 11:28:50 +0100, klkj fukyfl <kitas11@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
> 


Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

output forms klkj fukyfl <kitas11@yahoo.com> - 2011-09-17 10:28 +0000
  Re: output forms "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> - 2011-09-18 08:13 +0000
    Re: output forms "Chris Degnen" <degnen@cwgsy.net> - 2011-09-19 11:07 +0000
  Re: output forms "Chris Degnen" <degnen@cwgsy.net> - 2011-09-18 08:22 +0000

csiph-web