Karim Belabas on Wed, 14 Jun 2023 23:59:49 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Give up with MT, need help!!!
|
- To: pari-dev@pari.math.u-bordeaux.fr
- Subject: Re: Give up with MT, need help!!!
- From: Karim Belabas <Karim.Belabas@math.u-bordeaux.fr>
- Date: Wed, 14 Jun 2023 23:55:07 +0200
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1686779698; c=relaxed/relaxed; bh=wEj3Q9K1eCbP94NBERvQUGKrBYinGbc/Jdu1KZyWgJs=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; b=WuIrTt0zZfT3UvQSm0KiCrrmK/DdHK/tZ1UzppxNK5Vti/+/NorBr11oZc1RA+zFKxRwD1xiJEJWfSo5/O2DdSVCu5btMlhQa29NcumDXytEgro0j9CYnv+5zKtwC0taj0oUhdctyf1E1UX9mMHZpECIOhVWcIBjux0HLzTaqucvM21bsd4Ymyz2Dduc5E9F4anoRMHhdavB46VSGmCNPSXBqxpybhv5nwGIJEhsVT8M9m2GZAx+/kKrf6IyrHBVO1rKJP1EoR5udaiFRgTcWtgQ7V5IbmxQ+CTnlV8LZNncbJQUoMArUVheN1pV/EeevvaFNzNpTuQKzTDWNOq7f6GaFLIlo8BcxxLykMWHcD1hC9+2Q/R9xsbEkQjG4KtMD15oVWlZINKmBC92I82LWZuBzkGlmmuCLUqIIaefb6ONPhGCfqSDDMacZ06p27Eeet44tsbkNjhZLRvP0lcaG6XaMc07KdAfSsMo6z27be6jFjeJ9wo9fImj1fPNy8xERVG5869JTrBk9QCTjCkpTTVhomXIY8omEa9gRkbWh++C6vLwien/Lg3ZgVAYpudZHkOCpDFbnZJa8BUEHD0Bo70aNVRwgg+kmKQeGhTi2dyS3INW8rvxHn29fJlIZsr8EinHvQMzNCzvaSOD/PGrY3vnPdCOJ+8LkVM8q9/8lxo=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1686779698; cv=none; b=AbVL8h0HIqg8DbaNMC710Jdw60v+6cnnxwkss7+DxBQHTz8NGds9hybXsoOkYJ+C70Zu9tPITEkaU0LAap0TyteNTP5ksPMZyBs8LBlP3naX7N1/uu+Awv04zdlEJwam5c+DPDRF6fG3uUnaiBln/dJhZDhpk5PEKe1mhAiV+nAXik3vVlRzWSYHQyUadRkHfdUs4b26NjHwJrEVYnik71KJIOOHX/iK90xeG1Oi0P6wm5KqnDc4geDd9tnIYDshWN5kFHMYLDMdjoVb9o4g+bdQMFXGCPoZ/jGwsuCtRgJLBgQBm6A+2qTv/xbNudknv2wyu1Aef4TyM6EfWyvs0lPm0SN0jGiBFF6DIfh1n4gTLNIUmTkxMYmdExiSfoyeKIQBrSaZuj1+4DdLTBXFZCIIFa5Dw0nM3mIcVKYyUDKa8CayD0r5zHP9X0uzrcfrhC6xYm9sckmdmMm8jcOPlfbw6+SMyab01Zq7/tHGiCw8f1TKXNOpNaoAxYiZU1kQxiJjFp0qX8PVNAJH9+PvwwCebZdiLqrLWFvdxnpp4nZTM1gZxg2S6eE6GHVrNNQp4O2Dh7nDWt3GpfLV+KUSiARqL4t9H6yHEIKEoRZqRJovJuoxK9KNkN+cplQPoWBqWT/i7oKQwlvdDCuGqVOFtulUPkeBleidb8YdIP17iVs=
- Authentication-results: smail; arc=none
- Delivery-date: Wed, 14 Jun 2023 23:59:49 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1686779698; bh=wEj3Q9K1eCbP94NBERvQUGKrBYinGbc/Jdu1KZyWgJs=; h=Date:From:To:Subject:References:In-Reply-To:From; b=dL05A/RcBRdrCM3fVt0d4fhodDunu0jbQ5P29OzrVKTm0BLUkm5B4V2xgbG3hD2XD gtKtwX/Y8FgCcquSN3iqS+AdCP+MyyhnsSJyYt6ZB7HMTpwGsIaCOmjVNUTee6G8Fa Yee6TW3fETx41UqFDxP2xZjqwO0LZ5u3eS0/7YDP+6Khl9Sn3oM0/3hWP8o5vpF5rP 0GoD6JL+bnOEsTvtkUdcgJKiEUbfYudvWWe8FMzL5sFEqOcjG260bM4Sult6f9H6sn 1dKvbTakkvLH4HGGFTMwpFNQobh0qh6xZmBM/MajccBmW7Td+4dE3HpebXTVNFrTcG FU2KWgUMh+xXB8wPU0CTIXCSAILS3yEMLE24hPCKatJ1taHrpGgF2sGNOhBTMlgneZ PEx6PEM8XQiStPyL0RgpUZxYDHhSHod2E4yUnRuAHkpXcuaGrIeBpkEzejOsVmiVBI i7bfMXeG1HUUIr56jfnroUR/asUt3MCcipk9MrWfclGpj/+4oe2GDf/RR4wB1NgRU4 ll9K5qIs6qwwcE3qu93YgGxiJK8r+Ozyw0eBVgjnHR5b25John256ZZJishupsLI+B GIuPpFoFSH/fzdYRcyBv0ddzWvhhqIrtpcGPJLHGdCgUIpqfAc8QxPBLMvj3kW7LbK ycnqNUB81ErpQl1yyKguIY80=
- In-reply-to: <ZIoVPOC14zaWkb3T@seventeen>
- Mail-followup-to: pari-dev@pari.math.u-bordeaux.fr
- References: <2d27a45d-8fec-c98a-645c-c235dec5274e@free.fr> <ZIoVPOC14zaWkb3T@seventeen>
* Bill Allombert [2023-06-14 21:30]:
[...]
> But this is not the right way to compute this. You should use
> the recurrence formula for the factorial
> k! = k*(k-1)! and not recompute k!^3, (3*k)!, (6*k)! for all k from scratch.
> (3*k)!= (3*k)*(3*k-1)*(3*k-2)*(3*(k-1))!
> etc.
> Also you should factor out 640320^(3/2) to avoid recomputing it.
... and use binary splitting to have the right complexity
(a multithreaded version remains possible, but harder to get right).
Cheers,
K.B.
--
Pr. Karim Belabas, U. Bordeaux, Vice-président en charge du Numérique
Institut de Mathématiques de Bordeaux UMR 5251 - (+33) 05 40 00 29 77
http://www.math.u-bordeaux.fr/~kbelabas/