Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #5020 > unrolled thread
| Started by | klkj fukyfl <kitas11@yahoo.com> |
|---|---|
| First post | 2011-09-17 10:28 +0000 |
| Last post | 2011-09-18 08:22 +0000 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
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
| From | klkj fukyfl <kitas11@yahoo.com> |
|---|---|
| Date | 2011-09-17 10:28 +0000 |
| Subject | output forms |
| Message-ID | <j51sp2$pf7$1@smc.vnet.net> |
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?
[toc] | [next] | [standalone]
| From | "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> |
|---|---|
| Date | 2011-09-18 08:13 +0000 |
| Message-ID | <j54975$68q$1@smc.vnet.net> |
| In reply to | #5020 |
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
[toc] | [prev] | [next] | [standalone]
| From | "Chris Degnen" <degnen@cwgsy.net> |
|---|---|
| Date | 2011-09-19 11:07 +0000 |
| Message-ID | <j577ps$j6r$1@smc.vnet.net> |
| In reply to | #5030 |
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
>
[toc] | [prev] | [next] | [standalone]
| From | "Chris Degnen" <degnen@cwgsy.net> |
|---|---|
| Date | 2011-09-18 08:22 +0000 |
| Message-ID | <j549ne$6ec$1@smc.vnet.net> |
| In reply to | #5020 |
Does this suffice? a = 1; b = 2; c = 3; x = Style[ "d\[MediumSpace]=\[MediumSpace]" <> ToString[a] <> "\[MediumSpace]+\[MediumSpace]" <> ToString[b] <> "\[MediumSpace]*\[MediumSpace]" <> ToString[c], "Input"] ToExpression[First[x]]; d 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?
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web