The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: TraditionalForm Plot
Replies: 5   Last Post: Jan 25, 2013 1:34 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Bill Rowe

Posts: 1,647
Registered: 3/14/08
Re: TraditionalForm Plot
Posted: Jan 18, 2013 12:50 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 1/16/13 at 1:38 AM, (Berthold Hamburger)

>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
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.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.