u&n y is defined as y u n

   f=: 13 :'{&_1 1'
   g=: 13 :'y{_1 1'
   f
3 : '{&_1 1'
   g
_1 1 {~ ]

Linda
-----Original Message-----
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda Alvord
Sent: Tuesday, December 11, 2012 4:49 AM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] convert 0,1 coding to _1,1

 This might be the same function.

   amr1=:{&_1 1
   timespacex 'amr1 d'
0.00586723 4.19514e6
   ama1=:_1 1{~]
   timespacex 'amr1 d'
0.00572077 4.19514e6
   
Linda

-----Original Message-----
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda Alvord
Sent: Tuesday, December 11, 2012 4:27 AM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] convert 0,1 coding to _1,1

All I did was use the definition of bond.

u&n y is defined as y u n

Why are they different functions?

Linda

-----Original Message-----
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Roger Hui
Sent: Tuesday, December 11, 2012 4:18 AM
To: Programming forum
Subject: Re: [Jprogramming] convert 0,1 coding to _1,1

The functions you timed are different functions.


On Tue, Dec 11, 2012 at 12:57 AM, Linda Alvord
<lindaalv...@verizon.net>wrote:

> Here's the surprise.
>
>     amr1=: {&_1 1
>    timespacex 'amr1 d'
> 0.00563871 4.19514e6
>
>    ama=:_1 1{]
>    timespacex 'ama d'
> 0.0011887 1.04941e6
>
> Does anyone know how to turn off something that makes the keys jump 
> all over the place in outlook? Some key sends unfinished messages!
>
> Linda
>
>
> -----Original Message-----
> From: programming-boun...@forums.jsoftware.com
> [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda 
> Alvord
> Sent: Tuesday, December 11, 2012 3:51 AM
> To: programm...@jsoftware.com
> Subject: Re: [Jprogramming] convert 0,1 coding to _1,1
>
> Now that I'm awake, I got a surprise.  I us
>
> -----Original Message-----
> From: programming-boun...@forums.jsoftware.com
> [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda 
> Alvord
> Sent: Tuesday, December 11, 2012 3:16 AM
> To: programm...@jsoftware.com
> Subject: Re: [Jprogramming] convert 0,1 coding to _1,1
>
> Sorry, it needs and argument.
>
> Lin
>
> -----Original Message-----
> From: programming-boun...@forums.jsoftware.com
> [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda 
> Alvord
> Sent: Tuesday, December 11, 2012 3:05 AM
> To: programm...@jsoftware.com
> Subject: Re: [Jprogramming] convert 0,1 coding to _1,1
>
>     {&_1 1
> {&_1 1
>
> Roger, you must have typed this incorrectly.
>
> Linda
>
> Original Message-----
> From: programming-boun...@forums.jsoftware.com
> [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Roger 
> Hui
> Sent: Tuesday, December 11, 2012 2:40 AM
> To: Programming forum
> Subject: Re: [Jprogramming] convert 0,1 coding to _1,1
>
> Also {&_1 1 .
>
>
> On Mon, Dec 10, 2012 at 11:32 PM, Roger Hui
> <rogerhui.can...@gmail.com>wrote:
>
> > If you really are converting random boolean values to (1,_1) values, 
> > another possibility is _1&^ or _1^]; i.e. 0 to 1 and 1 to _1.
> >
> >
> >
> > On Mon, Dec 10, 2012 at 8:58 PM, Brian Schott
> <schott.br...@gmail.com>wrote:
> >
> >>    timespacex
> >> 6!:2 , 7!:2@]
> >>    am =:_1& (I.@:-.@]})
> >>    am2=: ((-&1) @ +:)
> >>    amd=: <:@:+:
> >>    aml=: _1 + +:
> >>    d=: 2 6 50000?.@$ 2
> >>    timespacex 'am"1 d'
> >> 0.011278 1.05535e7
> >>    timespacex 'am2 d'
> >> 0.187884 8.39091e6
> >>    timespacex 'amd d'
> >> 0.004365 1.6779e7
> >>    timespacex 'aml d'
> >> 0.004874 1.67789e7
> >>
> >> It looks like David's method is fastest and Peter's is most lean.
> >> And Linda's method loses nothing relative to David's.
> >> -------------------------------------------------------------------
> >> --
> >> - For information about J forums see 
> >> http://www.jsoftware.com/forums.htm
> >>
> >
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to