Re: [Jprogramming] Hypergeometric capers

2014-01-19 Thread Ian Clark
And don't mistake easiness for unimportance. The solution is even easier than Henry chooses to present it... m=. a,b n=. c That's all anyone needs to know in order to transfer a formula from A&S into J. That's all I was expecting to be told. Yet nobody did. Why not? Henry offers one answer. I

Re: [Jprogramming] J talk in NYC 1/21 - examples welcome

2014-01-19 Thread Devon McCormick
The more I think about it, the more I think that naming things to avoid symbols is a mistake - names can have unintended connotations and they hide relationships between things. However, using them for occasional pedagogic illustration can be useful. On Sun, Jan 19, 2014 at 12:37 AM, Steven Tayl

Re: [Jprogramming] J talk in NYC 1/21 - examples welcome

2014-01-19 Thread Fraser Jackson
We use names for the symbols to talk about them, and to list orally a sequence of them. The symbols are fine on paper, but not adequate for verbal communication. The symbols have names for non-J users which may have no relationship to their use in J. If we are talking about J using the diction

[Jprogramming] problem matching boxed string

2014-01-19 Thread Joe Bogner
Apologies for the trivial question. I've been banging my head against the table for 45 minutes on it. I have a list of strings that aren't behaving like they should. They were grabbed from a larger table It's not matching on i. with a boxed string ll ┌─┬─┬──┬──┐ │=│=│=.│=.│ └─┴─┴──┴──┘ (<'=') i

Re: [Jprogramming] problem matching boxed string

2014-01-19 Thread Henry Rich
It's the ranks of the strings. Try (<,'=') i. ll Henry Rich On 1/19/2014 4:39 PM, Joe Bogner wrote: Apologies for the trivial question. I've been banging my head against the table for 45 minutes on it. I have a list of strings that aren't behaving like they should. They were grabbed from a l

Re: [Jprogramming] problem matching boxed string

2014-01-19 Thread Joe Bogner
That worked. Thank you very much for the reply. I am relieved. I don't understand it though and I can't recall seeing it covered anywhere. If anyone can share a reference or can explain why it applies in the case of my ll example but not the case of (<'=') i. ('=';'=';'=.';'=.') that would be gre

Re: [Jprogramming] problem matching boxed string

2014-01-19 Thread Henry Rich
Strings match only if they have the same shape and the same values. (,'=') -: '=' 0 but look: (,'=') = '=' 1 It's a totally different question. You are asking if the atoms match. The answer is a list rather than a single boolean yes/no: $ (,'=') = '=' 1 Henry Rich On 1/19/2014

Re: [Jprogramming] problem matching boxed string

2014-01-19 Thread Roger Hui
The following may be helpful: Arrays that "look" the same may not be the same. For example, the following arrays all "look" the same but all differ from each other: 123 ,123 '123' 1 1$123 1 1 1 1$123 1 3$'123' 1 1 1 3$'123' '123' If you stand behind the shoulders of an J/APL programmer debu

Re: [Jprogramming] problem matching boxed string

2014-01-19 Thread Joe Bogner
Roger & Henry - Thank you for the explanations I had a feeling that the arrays were structurally different but I couldn't figure out how to tell. I also narrowed it down to my use of cut. I will study that to understand further These were the ways I tried to look before ]a=:('a';'bcd') ┌─┬───┐

Re: [Jprogramming] problem matching boxed string

2014-01-19 Thread Henry Rich
I'd say forget the binary representation. The primitives, namely ;: u;.n u\ u\. u/. produce lists even when there is only one item in the partition. Very regular. The anomalous case stems from simple old keyboard entry. You ran into trouble from 'a';'bcd' because 'a' creates an atom, wh

[Jprogramming] The Accessible Dictionary released

2014-01-19 Thread Ian Clark
Thank you everyone for your help in finishing this (and other) pages: http://www.jsoftware.com/jwiki/Vocabulary/hcapdot This completes NuVoc, the "Accessible Dictionary" the J community started over 2 years ago. Though I've no doubt individual pages can be improved. Comments about this are invited

Re: [Jprogramming] The Accessible Dictionary released

2014-01-19 Thread Brian Schott
Ian, That is amazing. Thank you for that great resource. I don't know if I dare ask the following, but, here goes. Is there any way to add a feature -- I think it's called a tool-tip -- to the main page which would show the rank of each verb when someone hovers over the primitive? If so, would ot

Re: [Jprogramming] more fork examples

2014-01-19 Thread Devon McCormick
NB. Weighted mean: 1 10 1 ((+/ . *) % ([:+/[)) 10 2 30 5 On Thu, Jan 16, 2014 at 8:09 PM, Roger Hui wrote: > The put down was for not so much that our system was not capable of > sensitivity analysis, or perhaps that we did not even know what sensitivity > analysis was, but that we were

Re: [Jprogramming] more fork examples

2014-01-19 Thread Henry Rich
If you use this as an example, be sure you can explain how +/ . *, which is usually matrix multiplication, applies to these operands which are not matrices. Mathematically it would be an error to matrix-multiply two vectors of the same shape. Henry Rich On 1/20/2014 12:14 AM, Devon McCormick

Re: [Jprogramming] Applied APL - How to think like an APL programmer?

2014-01-19 Thread Gilles Kirouac
Joe Here is another suggestion. Learn J by example: READ well written J scripts. Library and system scripts are generally such good examples. ~ Gilles -- For information about J forums see http://www.jsoftware.com/foru

Re: [Jprogramming] The Accessible Dictionary released

2014-01-19 Thread Bo Jacoby
Thanks for the http://www.jsoftware.com/jwiki/Vocabulary/zeroco . I have trouble in understanding the example 0 1} i.6 NB. Try to amend 1{i.6 to zero |rank error | 0 1}i.6 0 1:} i.6 0 0 2 3 4 5 Is there a typo in the comment? ('{' versus '}') I thought that 0 1:} is a fork, but is

Re: [Jprogramming] The Accessible Dictionary released

2014-01-19 Thread Martin Kreuzer
Thank you very much indeed for this beautiful piece of work. As someone who uses J only occasionally (on a very simple level) I tend to forget things (despite taking notes) and have to dig in ever so often again. This looks a great resource easing that first step. In the same context I've ver