Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.maple > #1198

Convert to factorial, bug?

X-Received by 10.68.180.1 with SMTP id dk1mr15411155pbc.1.1446403201546; Sun, 01 Nov 2015 10:40:01 -0800 (PST)
X-Received by 10.140.97.70 with SMTP id l64mr303005qge.19.1446403201245; Sun, 01 Nov 2015 10:40:01 -0800 (PST)
Path csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!i2no2169088igv.0!news-out.google.com!j14ni17883qge.0!nntp.google.com!m48no4014954qgd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.soft-sys.math.maple
Date Sun, 1 Nov 2015 10:40:01 -0800 (PST)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=2a00:c1a0:4a01:b800:b01f:8d95:a78a:103; posting-account=PEh90woAAACWN3C9IZwQVmbvngXF6iWJ
NNTP-Posting-Host 2a00:c1a0:4a01:b800:b01f:8d95:a78a:103
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <26ea1f78-736f-4827-830b-e3af8ecc1b8a@googlegroups.com> (permalink)
Subject Convert to factorial, bug?
From Peter Luschny <peter.luschny@gmail.com>
Injection-Date Sun, 01 Nov 2015 18:40:01 +0000
Content-Type text/plain; charset=ISO-8859-1
Xref csiph.com comp.soft-sys.math.maple:1198

Show key headers only | View raw


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

Back to comp.soft-sys.math.maple | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Convert to factorial, bug? Peter Luschny <peter.luschny@gmail.com> - 2015-11-01 10:40 -0800
  Re: Convert to factorial, bug? Axel Vogt <&noreply@axelvogt.de> - 2015-11-02 08:44 +0100
    Re: Convert to factorial, bug? Peter Luschny <peter.luschny@gmail.com> - 2015-11-02 00:15 -0800

csiph-web