Try
adv =: 1 : '(,>{.y)u,>}.y'
a adv d
0 0 0 0 0 0 0 0 0 0 0
_5 _4 _3 _2 _1 0 1 2 3 4 5
_10 _8 _6 _4 _2 0 2 4 6 8 10
--Kip
Sent from my iPad
> On Nov 3, 2013, at 1:59 AM, "Linda Alvord" <[email protected]> wrote:
>
> Here's the next roadblock:
>
> a=:*/
> b=:i.3
> c=:i:5
> ]d=:(<b),<c
> ┌─────┬──────────────────────────┐
> │0 1 2│_5 _4 _3 _2 _1 0 1 2 3 4 5│
> └─────┴──────────────────────────┘
>
> (,>{.d)a,>}.d
> 0 0 0 0 0 0 0 0 0 0 0
> _5 _4 _3 _2 _1 0 1 2 3 4 5
> _10 _8 _6 _4 _2 0 2 4 6 8 10
>
> The result above is what I want. But…
>
> f=: 13 :'(,>{.y)x,>}.y'
> a f d
> |domain error: f
> | a f d
> |[-8] c:\users\owner\j801-user\temp\94.ijs
>
> Is there a way to get that result? Linda
>
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of km
> Sent: Saturday, November 02, 2013 10:58 PM
> To: [email protected]
> Subject: Re: [Jprogramming] Times Table Therapy
>
> Nice-looking table! --Kip
>
> Sent from my iPad
>
>> On Nov 2, 2013, at 7:16 PM, "Linda Alvord" <[email protected]> wrote:
>>
>> Next I want to create the table from only a, b and c as input data. Any
>> thoughts?
>>
>> a=:'*'
>> b=:i:4
>> c=:i:_4
>> d=:b*/c
>>
>> over2=: 13 :'({.;}.)":x,y'
>> by2=: 13 : '('' *''&;,.x) ,.y'
>>
>> c by2 b over2 d
>> ┌──┬─────────────────────────────┐
>> │ *│ _4 _3 _2 _1 0 1 2 3 4│
>> ├──┼─────────────────────────────┤
>> │ 4│_16 _12 _8 _4 0 4 8 12 16│
>> │ 3│_12 _9 _6 _3 0 3 6 9 12│
>> │ 2│ _8 _6 _4 _2 0 2 4 6 8│
>> │ 1│ _4 _3 _2 _1 0 1 2 3 4│
>> │ 0│ 0 0 0 0 0 0 0 0 0│
>> │_1│ 4 3 2 1 0 _1 _2 _3 _4│
>> │_2│ 8 6 4 2 0 _2 _4 _6 _8│
>> │_3│ 12 9 6 3 0 _3 _6 _9 _12│
>> │_4│ 16 12 8 4 0 _4 _8 _12 _16│
>> └──┴─────────────────────────────┘
>>
>> over
>> ({. ; }.)@":@,
>> over2
>> [: ({. ; }.) [: ": ,
>>
>>
>>
>> by
>> ' *'&;@,.@[ ,. ]
>> by2
>> ] ,.~ [: ' *'&; [: ,. [
>>
>> Raul’s is still the shortest. Linda
>>
>>
>>
>> -----Original Message-----
>> From: [email protected]
>> [mailto:[email protected]] On Behalf Of km
>> Sent: Saturday, November 02, 2013 6:55 PM
>> To: [email protected]
>> Subject: Re: [Jprogramming] Times Table Therapy
>>
>> See the last example in
>>
>> http://www.jsoftware.com/docs/help701/dictionary/d602.htm
>>
>> ==Kip
>>
>> Sent from my iPad
>>
>>>
>>>> On Nov 2, 2013, at 12:21 PM, "Linda Alvord" <[email protected]>
>>>> wrote:
>>>>
>>>> How about 4 boxes instead of 2 for this? Note the two labels or “axes”,
>>>> correspond to the conventional numbering of the x-axis and y-axis in
>>>> Cartesian graphs.
>>>> a=:'*'
>>>> b=:i:4
>>>> c=:i:_4
>>>> d=:b*/c
>>>> (' *',":,.c);b,d
>>>> ┌──┬─────────────────────────────┐
>>>> │ *│ _4 _3 _2 _1 0 1 2 3 4│
>>>> │ 4│_16 _12 _8 _4 0 4 8 12 16│
>>>> │ 3│_12 _9 _6 _3 0 3 6 9 12│
>>>> │ 2│ _8 _6 _4 _2 0 2 4 6 8│
>>>> │ 1│ _4 _3 _2 _1 0 1 2 3 4│
>>>> │ 0│ 0 0 0 0 0 0 0 0 0│
>>>> │_1│ 4 3 2 1 0 _1 _2 _3 _4│
>>>> │_2│ 8 6 4 2 0 _2 _4 _6 _8│
>>>> │_3│ 12 9 6 3 0 _3 _6 _9 _12│
>>>> │_4│ 16 12 8 4 0 _4 _8 _12 _16│
>>>> └──┴─────────────────────────────┘
>>>>
>>>> Linda
>>>>
>>>> -----Originaforl Message-----
>>>> From: [email protected]
>>>> [mailto:[email protected]] On Behalf Of km
>>>> Sent: Saturday, November 02, 2013 10:43 AM
>>>> To: [email protected]
>>>> Subject: Re: [Jprogramming] Times Table Therapy
>>>>
>>>> Perhaps you can find a way to use Format ":
>>>>
>>>> --Kip Murray
>>>>
>>>> Sent from my iPad
>>>>
>>>>> On Nov 2, 2013, at 9:17 AM, "Linda Alvord" <[email protected]>
>>>>> wrote:
>>>>>
>>>>> I better do it myself. (I may call for help...) Thanks for the offer.
>>>>> Linda
>>>>>
>>>>> -----Original Message-----
>>>>> From: [email protected]
>>>>> [mailto:[email protected]] On Behalf Of Raul
>>>>> Miller
>>>>> Sent: Saturday, Novembere 02, 2013 8:07 AM
>>>>> To: Programming forum
>>>>> Subject: Re: [Jprogramming] Times Table Therapy
>>>>>
>>>>> Do you want an explanation? Or would it be more fun to work it out by
>>>>> yourself?
>>>>>
>>>>> Thanks,
>>>>>
>>>>> --
>>>>> Raul
>>>>>
>>>>>
>>>>>
>>>>> On Sat, Nov 2, 2013 at 7:37 AM, Ben Gorte - CITG
>>>>> <[email protected]>wrote:
>>>>>
>>>>>> Do you mean the over/by thing of
>>>>>> http://www.jsoftware.com/help/dictionary/intro03.htm ?
>>>>>>
>>>>>> over =: ({. ; }.)@":@,
>>>>>> by =: ' '&;@,.@[ ,. ]
>>>>>> b by (c over d)
>>>>>> ┌──┬─────────────────────────────┐
>>>>>> │ │ 4 3 2 1 0 _1 _2 _3 _4│
>>>>>> ├──┼─────────────────────────────┤
>>>>>> │_4│_16 _12 _8 _4 0 4 8 12 16│
>>>>>> │_3│_12 _9 _6 _3 0 3 6 9 12│
>>>>>> │_2│ _8 _6 _4 _2 0 2 4 6 8│
>>>>>> │_1│ _4 _3 _2 _1 0 1 2 3 4│
>>>>>> │ 0│ 0 0 0 0 0 0 0 0 0│
>>>>>> │ 1│ 4 3 2 1 0 _1 _2 _3 _4│
>>>>>> │ 2│ 8 6 4 2 0 _2 _4 _6 _8│
>>>>>> │ 3│ 12 9 6 3 0 _3 _6 _9 _12│
>>>>>> │ 4│ 16 12 8 4 0 _4 _8 _12 _16│
>>>>>> └──┴─────────────────────────────┘
>>>>>>
>>>>>> (not that I competely understand it, by the way).
>>>>>>
>>>>>> Ben
>>>>>> ________________________________________
>>>>>> From: [email protected] [
>>>>>> [email protected]] on behalf of Linda
>>>>>> Alvord [ [email protected]]
>>>>>> Sent: Saturday, November 02, 2013 11:27
>>>>>> To: [email protected]
>>>>>> Subject: [Jprogramming] Times Table Therapy
>>>>>>
>>>>>> Maybe these will be better boxes.
>>>>>>
>>>>>> a=:' '
>>>>>> b=:i:4
>>>>>> c=:i:_4
>>>>>> d=:b*/c
>>>>>>
>>>>>> b,d
>>>>>> _4 _3 _2 _1 0 1 2 3 4
>>>>>> _16 _12 _8 _4 0 4 8 12 16
>>>>>> _12 _9 _6 _3 0 3 6 9 12
>>>>>> _8 _6 _4 _2 0 2 4 6 8
>>>>>> _4 _3 _2 _1 0 1 2 3 4
>>>>>> 0 0 0 0 0 0 0 0 0
>>>>>> 4 3 2 1 0 _1 _2 _3 _4
>>>>>> 8 6 4 2 0 _2 _4 _6 _8
>>>>>> 12 9 6 3 0 _3 _6 _9 _12
>>>>>> 16 12 8 4 0 _4 _8 _12 _16
>>>>>>
>>>>>> ]e=:(<b),:<d
>>>>>> ------------------------------┐
>>>>>> │_4 _3 _2 _1 0 1 2 3 4 │
>>>>>> +-----------------------------+
>>>>>> │_16 _12 _8 _4 0 4 8 12 16│
>>>>>> │_12 _9 _6 _3 0 3 6 9 12│
>>>>>> │ _8 _6 _4 _2 0 2 4 6 8│
>>>>>> │ _4 _3 _2 _1 0 1 2 3 4│
>>>>>> │ 0 0 0 0 0 0 0 0 0│
>>>>>> │ 4 3 2 1 0 _1 _2 _3 _4│
>>>>>> │ 8 6 4 2 0 _2 _4 _6 _8│
>>>>>> │ 12 9 6 3 0 _3 _6 _9 _12│
>>>>>> │ 16 12 8 4 0 _4 _8 _12 _16│
>>>>>> L------------------------------
>>>>>>
>>>>>> ]f=:(<a),:<,.c
>>>>>> ---┐
>>>>>> │ │
>>>>>> +--+
>>>>>> │ 4│
>>>>>> │ 3│
>>>>>> │ 2│
>>>>>> │ 1│
>>>>>> │ 0│
>>>>>> │_1│
>>>>>> │_2│
>>>>>> │_3│
>>>>>> │_4│
>>>>>> L---
>>>>>>
>>>>>> f,.e
>>>>>> ---T-----------------------------┐
>>>>>> │ │_4 _3 _2 _1 0 1 2 3 4 │
>>>>>> +--+-----------------------------+
>>>>>> │ 4│_16 _12 _8 _4 0 4 8 12 16│
>>>>>> │ 3│_12 _9 _6 _3 0 3 6 9 12│
>>>>>> │ 2│ _8 _6 _4 _2 0 2 4 6 8│
>>>>>> │ 1│ _4 _3 _2 _1 0 1 2 3 4│
>>>>>> │ 0│ 0 0 0 0 0 0 0 0 0│
>>>>>> │_1│ 4 3 2 1 0 _1 _2 _3 _4│
>>>>>> │_2│ 8 6 4 2 0 _2 _4 _6 _8│
>>>>>> │_3│ 12 9 6 3 0 _3 _6 _9 _12│
>>>>>> │_4│ 16 12 8 4 0 _4 _8 _12 _16│
>>>>>> L--+------------------------------
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------
>>>>>> -
>>>>>> --
>>>>>> - 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
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm