Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #13192 > unrolled thread
| Started by | Bill Rowe <readnews@sbcglobal.net> |
|---|---|
| First post | 2013-01-18 05:50 +0000 |
| Last post | 2013-01-19 06:14 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
Re: TraditionalForm Plot Bill Rowe <readnews@sbcglobal.net> - 2013-01-18 05:50 +0000
Re: TraditionalForm Plot Berthold Hamburger <b-hamburger@artinso.com> - 2013-01-19 06:14 +0000
| From | Bill Rowe <readnews@sbcglobal.net> |
|---|---|
| Date | 2013-01-18 05:50 +0000 |
| Subject | Re: TraditionalForm Plot |
| Message-ID | <kdanqo$3dt$1@smc.vnet.net> |
On 1/16/13 at 1:38 AM, b-hamburger@artinso.com (Berthold Hamburger)
wrote:
>No, I meant something like:
>f[x_] := 4 x^2 + 2 x + 5 // TraditionalForm f[x] Plot[f[x],
>{x,-\[Pi], \[Pi]}]
Why? What are you trying to accomplish?
If I want to send a print out or PDF version of a Mathematica
notebook to a colleague who doesn't have Mathematica and has no
experience with Mathematica, then I would select all input cells
and convert them to TraditionalForm (using cmd-shift-T on a Mac)
prior to printing or saving as PDF.
I have my notebook interface set so that input cells use
StandardForm and output cells use TraditionForm. I prefer this
since I don't need to remember special key combinations to enter
stuff into input cells with StandardForm like I would with
TraditionalForm. And I get output I find more readable without
the problems a wrapper causes which occurs when you explicitly do
f[x_] := 4 x^2 + 2 x + 5 // TraditionalForm
That is
In[3]:= f[x_] := 4 x^2 + 2 x + 5 // TraditionalForm
In[4]:= Head[f[x]]
Out[4]= TraditionalForm
which is why the Plot command you use above doesn't display the
expected plot.
Possibly what you want is something like
f[x_] := 4 x^2 + 2 x + 5
f[x]//TraditionalForm
Plot[f[x], {x,-\[Pi], \[Pi]}]
which would display the polynomial in traditional form and the
plot as well. By setting my default preferences to have output
cell display in TraditionalForm that is exactly what I get when
I type f[x] without using the //TraditionalForm postfix notation explicitly.
[toc] | [next] | [standalone]
| From | Berthold Hamburger <b-hamburger@artinso.com> |
|---|---|
| Date | 2013-01-19 06:14 +0000 |
| Message-ID | <kdddjo$a24$1@smc.vnet.net> |
| In reply to | #13192 |
On Fri, 18 Jan 2013 05:50:16 +0000 (UTC), Bill Rowe <readnews@sbcglobal.net> wrote: > >I have my notebook interface set so that input cells use >StandardForm and output cells use TraditionForm. I prefer this >since I don't need to remember special key combinations to enter >stuff into input cells with StandardForm like I would with >TraditionalForm. And I get output I find more readable without >the problems a wrapper causes which occurs when you explicitly do Thank you for the explanation and the suggestion. That solves the problem! I was not aware that the //TraditionalForm suffix replaces the Head of the original function. Regards Berthold
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web