[Jprogramming] Factorial divided by factorial

Clifford Reiter reiterc at lafayette.edu
Tue Apr 6 13:14:59 UTC 2021


Use exact integers:

!50

3.04141e64

!50x

30414093201713378043612608166064768844377641568960512000000000000

(!1000x)%(!999x)

1000




On Tue, Apr 6, 2021 at 9:09 AM cilz <cilzone at cilzone.fr> wrote:

> Hi,
>
> I just try:
>
> (!1000)%(!999)
>
> and got "NaN error".
>
> Is there a way to get the exact result in J?
>
> Tkx, Eric
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>


More information about the Programming mailing list