Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Axel Vogt <&noreply@axelvogt.de> Newsgroups: comp.soft-sys.math.maple Subject: Re: Convert to factorial, bug? Date: Mon, 2 Nov 2015 08:44:37 +0100 Lines: 20 Message-ID: References: <26ea1f78-736f-4827-830b-e3af8ecc1b8a@googlegroups.com> Reply-To: &noreply@axelvogt.de Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net wJuSi69BpMzWfTYwpJIMDAFQebTBKLpNL5e9uED27OHEWeFv4= Cancel-Lock: sha1:Dcd2FJTbNe4XLVIxti7WwWO79ig= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <26ea1f78-736f-4827-830b-e3af8ecc1b8a@googlegroups.com> Xref: csiph.com comp.soft-sys.math.maple:1199 On 01.11.2015 19:40, Peter Luschny wrote: > A:=(n,k)->(n!/k!)*binomial(k,n-k)*2^(2*k-n); > convert(A(n,k), factorial); > B:=(n,k)->n!*2^(2*k-n)/((n-k)!*(2*k-n)!); > > A(1,0); # gives 0 > B(1,0); # Error, div by zero > > Peter > I guess that Maple uses 1 diveded by GAMMA and not the function 1/GAMMA, which is holomorphic and zero in non-negative integers. B(n,0) = 2^(-n)/(-n)! = 2^(-n)/GAMMA(-n+1) To work around that weakness here one can use the limit to get the result: 'Limit(B(n,0), n=1)'; ``= %; #convert(%, GAMMA); value(%); # gives 0