Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #11305 > unrolled thread
| Started by | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| First post | 2012-08-10 06:43 +0000 |
| Last post | 2012-08-10 06:43 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Simplify Binomial Bob Hanlon <hanlonr357@gmail.com> - 2012-08-10 06:43 +0000
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Date | 2012-08-10 06:43 +0000 |
| Subject | Re: Simplify Binomial |
| Message-ID | <k02aj1$2tq$1@smc.vnet.net> |
You would have to know the internal workings of the FullSimplify
algorithm; however, you can tell FullSimplify that you don't like
Binomial using the ComplexityFunction option.
Binomial[m, n + 1]/Binomial[m, n] // FullSimplify[#] &
Binomial[m, 1 + n]/Binomial[m, n]
f[e_] := 100 Count[e, _Binomial, {0, Infinity}] + LeafCount[e]
Binomial[m, n + 1]/Binomial[m, n] //
FullSimplify[#, ComplexityFunction -> f] &
(m - n)/(1 + n)
Bob Hanlon
On Thu, Aug 9, 2012 at 8:44 AM, Jack L Goldberg 1 <jackgold@umich.edu> wrote:
> Does anyone know why FullSimplify works in the first case and fails in the
> second? That FunctionExpand works in both is interesting of course, but IMO
> this is only part of the answer.
>
> Jack
>
>
>
> Quoting Bob Hanlon <hanlonr357@gmail.com>:
>
>> Binomial[m + 1, n + 1]/Binomial[m, n] //
>> FunctionExpand
>>
>> (1 + m)/(1 + n)
>>
>> Binomial[m, n + 1]/Binomial[m, n] //
>> FunctionExpand
>>
>> (m - n)/(1 + n)
>>
>>
>> Bob Hanlon
>>
>>
>> On Wed, Aug 8, 2012 at 9:36 PM, Themis Matsoukas <tmatsoukas@me.com>
>> wrote:
>>>
>>> This works:
>>>
>>> FullSimplify[Binomial[m + 1, n + 1]/Binomial[m, n]]
>>>
>>> (1 + m)/(1 + n)
>>>
>>> but this doesn't:
>>>
>>> FullSimplify[Binomial[m, n + 1]/Binomial[m, n]]
>>>
>>> Binomial[m, 1 + n]/Binomial[m, n]
>>>
>>> How do I get Mathematica to simplify the last result to (m-n)/n?
>>>
>>> Thanks
>>>
>>
>>
>>
>>
>
>
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web