[Jprogramming] more RC
David Ward Lambert
b49P23TIvg at stny.rr.com
Sun Apr 21 18:06:21 UTC 2013
I had a definition of factors available for reuse. Yes, I realized it
was needlessly sorted. I will include this definition into my j
arsenal.
> Date: Sat, 20 Apr 2013 09:37:39 -0400
> From: Raul Miller <rauldmiller at gmail.com>
> To: Programming forum <programming at jsoftware.com>
> Subject: Re: [Jprogramming] more RC
> Message-ID:
> <CAD2jOU8d0TnS1jn=JVBLV5WPFjRarmr+DF2
> +HgMioqrg=tfrNQ at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> I took a quick look...
>
> I'd be tempted to write factors more like this:
>
> odometer =: #: i.@(*/)
> factors=: (*/@:^"1 odometer@:>:)/@q:~&__
>
> odometer is from the J wiki.
>
> If the original argument was accurate there is no need to force
> factors to be extended precision. Another issue is that I am more
> comfortable grouping the operations this way. Also, why bother
> sorting?
More information about the Programming
mailing list