Re: Mathematica: how to make it display Binomial[n,p] using parenthesis() notation?



Jean-Marc Gulliet wrote:
Dave wrote:
David W. Cantrell wrote:
"Nasser Abbasi" <nma@xxxxxxxxx> wrote:
Hello, This is Mathematica 6.0.1

I am working with many of the probability distributions (pdf) in
Mathematica, and a number of them are defined in terms of Bionmial[]

I was wondering if there is a way to make Mathematica display Binomial[]
using the parenthesis notation () instead of the word itself "Binomial'?

For example, when typing

PDF[BinomialDistribution[n, p], k]

it returns

(1 - p)^(-k + n)*p^k*Binomial[n, k]

I want it to display the last term about as / n \
| |
\ k /

Since it would be easier to read that way (and it looks like the textbook
more also)

Binomial[n, k] // TraditionalForm

does what you want in version 5.2 and, I would guess, also in version 6.

David

Not quite in 6....

<snip>

I might have missed something, but evaluating the expression Binomial[n, k] // TraditionalForm on my system produces the same desired result both with Mathematica 5.2 and 6.0.1 (on Windows). So what do you mean by "Not quite in 6..."

Regards,

Hi,
I was using a text-based interface to Mathemaitca at the time I posted that - not GUI/notebook.

The original poster (Nasser) wanted it to display like this below (hoping proportioanl fonts dont screw this up:

/ n \
| |
\ k /


The output on my machine at least, with the text-based interface, looked quite different to that, with the text 'TraditionalForm' shown and the brackets not quite in the right places.


Out[1]//TraditionalForm= (n)

k


However, I can see when one does that in a notebook, it does indeed look right. It just looks a bit without the notebook.






.



Relevant Pages

  • prime based music using a Sierpinski gasket fractal drum
    ... The Mathematica program will make a five channel wav file ... It is an uncompressed wav and takes about 1 mega byte of memory. ... It is the five channel uncompressed that makes my Quicktime (major ... This notebook can be used on any computer system with Mathematica 3.0, ...
    (sci.fractals)
  • prime based music using a Sierpinski gasket fractal drum
    ... The Mathematica program will make a five channel wav file ... It is an uncompressed wav and takes about 1 mega byte of memory. ... It is the five channel uncompressed that makes my Quicktime (major ... This notebook can be used on any computer system with Mathematica 3.0, ...
    (sci.nonlinear)
  • Re: Major problems with Kaplan -Yorke dimension?
    ... almost all the software applications on the net in Mathematica. ... This notebook can be used on any computer system with Mathematica 3.0, ... Mabswid ...
    (sci.fractals)
  • Re: Unitary matrix. - Rotation matrix
    ... I dug up my Dirac six set up which I did ... This notebook can be used on any computer system with Mathematica 3.0, ... > For the rotation matrices I gave are good for this kind of rotations. ...
    (sci.math)
  • Re: Major problems with Kaplan -Yorke dimension?
    ... almost all the software applications on the net in Mathematica. ... This notebook can be used on any computer system with Mathematica 3.0, ... Mabswid ...
    (sci.nonlinear)