so
zeta =: [:+/(%@^~>:@i.)
then
2 zeta 2e5
1.64493
3 zeta 1e5
1.20206
this also works for non-integer arguments:
3.5 zeta 1e5
1.12673
3.5j0.5 zeta 1e5
1.11256j_0.053509
Cheers,
-Dan
On 9 Mar 2014, at 11:54, Aai wrote:
> in fact something like:
>
> 2 +/@:(%@^~) 1+i.100000
> 1.64492
>
> --
> Met vriendelijke groet,
> @@i = Arie Groeneveld
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm