Re: Mathematica: how to make it display Binomial[n,p] using parenthesis() notation?
- From: Dave <nowhere@xxxxxxxxxxx>
- Date: Mon, 15 Oct 2007 13:02:30 +0100
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.
.
- Follow-Ups:
- Re: Mathematica: how to make it display Binomial[n,p] using parenthesis() notation?
- From: Jean-Marc Gulliet
- Re: Mathematica: how to make it display Binomial[n,p] using parenthesis() notation?
- References:
- Mathematica: how to make it display Binomial[n,p] using parenthesis () notation?
- From: Nasser Abbasi
- Re: Mathematica: how to make it display Binomial[n,p] using parenthesis () notation?
- From: David W . Cantrell
- Re: Mathematica: how to make it display Binomial[n,p] using parenthesis () notation?
- From: Dave
- Re: Mathematica: how to make it display Binomial[n,p] using parenthesis () notation?
- From: Jean-Marc Gulliet
- Mathematica: how to make it display Binomial[n,p] using parenthesis () notation?
- Prev by Date: Re: Mathematica: how to make it display Binomial[n,p] using parenthesis () notation?
- Next by Date: Re: Mathematica: how to make it display Binomial[n,p] using parenthesis () notation?
- Previous by thread: Re: Mathematica: how to make it display Binomial[n,p] using parenthesis () notation?
- Next by thread: Re: Mathematica: how to make it display Binomial[n,p] using parenthesis() notation?
- Index(es):
Relevant Pages
|
|