Re: [Jprogramming] A Tale Without End

2014-02-24 Thread Linda Alvord
I've been trying to remember Newton's Method and I came upon this: f=: 13 :'(A=:1 + ] - *:)N^:y]1' f 3 : '(A=:1 + ] - *:)N^:y]1' f 4 1597r987 A 4 _11 _11 N^:4]1 |nonce error: N | -u%u d.1 It has been such a long time since I have seen a nonce error that I thought it

Re: [Jprogramming] Finding Largest Prime of Numbers (Tacit)

2014-02-24 Thread Raul Miller
You have asked "please pounce on my errors" and I am waiting for an extraction process to complete. So: On Tue, Feb 25, 2014 at 1:12 AM, David Lambert wrote: > Trains have infinite rank, that's why we cannot consider a single verb as > a train. I agree that trains have infinite rank, but usual

Re: [Jprogramming] Finding Largest Prime of Numbers (Tacit)

2014-02-24 Thread David Lambert
j is a multiple instruction single data language and has many many ways to pass data, including as far as I can tell all combinations of monadic, dyadic verbs considering single verbs, their obverses where practical, the trains of even numbers of verbs, and of odd numbers of verbs with more tha

Re: [Jprogramming] Finding Largest Prime of Numbers (Tacit)

2014-02-24 Thread Raul Miller
On Mon, Feb 24, 2014 at 10:27 PM, Jon Hough wrote: > {: 3 p: 567That works fine.OK, so I want to wrap that into a tacit > verb.Here was my first attempt: > bigdiv =. {: 3 p:|syntax error| bigdiv=.{:3 p: I am not sure why > this fails. Apparently we need a & between the two verbs "{:" and

Re: [Jprogramming] apl character support

2014-02-24 Thread bill lam
This seems simpler. The first thing to do is build a prototype implementaton, and then we can see what are other problems out there. Пн, 24 фев 2014, Don Guinn писал(а): > A middle ground might be to allow for some Unicode (UTF-8​​) to be > considered letters like a-z,A-Z. Then one could name APL

Re: [Jprogramming] apl character support

2014-02-24 Thread Don Guinn
A middle ground might be to allow for some Unicode (UTF-8​​) to be considered letters like a-z,A-Z. Then one could name APL iota to something like i. . In addition, it would allow non-English languages not be restricted to ASCII characters for names. Greek letters in mathematics could be used as na

Re: [Jprogramming] apl character support

2014-02-24 Thread bill lam
(continue..) Monad ;: already can distinguish strings and primitives. ;: 'f=: ''i.''&i.' +-+--++-+--+ |f|=:|'i.'|&|i.| +-+--++-+--+ Вт, 25 фев 2014, bill lam писал(а): > If internal representation is only visible in 5!:x conjunction, > perhaps we can keep original 5!:x that print ascii

Re: [Jprogramming] apl character support

2014-02-24 Thread bill lam
If internal representation is only visible in 5!:x conjunction, perhaps we can keep original 5!:x that print ascii and add some new 5!:(10+x) to print APL glyph. Пн, 24 фев 2014, Roger Hui писал(а): > Don't go there. Let's say you have some internal representation for > index-of. What do you out

Re: [Jprogramming] Finding Largest Prime of Numbers (Tacit)

2014-02-24 Thread Pascal Jasmin
You're trying to make a tacit version of: {: 3 p: 567 3&p: is the verb you could bind to.  And:  {:@(3&:p) You can always ask for hint/solution by:    13 : '{: 3 p: y' [: {: 3 p: ] - Original Message - From: Henry Rich To: programm...@jsoftware.com Cc: Sent: Monday, February 24,

Re: [Jprogramming] apl character support

2014-02-24 Thread Roger Hui
Don't go there. Let's say you have some internal representation for index-of. What do you output for 5!:5 <'f' where f=: 'i.'&i.? Would that result have different lengths at different times? Would the character string 'i.' in the definition of f be stored as the ASCII characters 105 and 46?

Re: [Jprogramming] Finding Largest Prime of Numbers (Tacit)

2014-02-24 Thread Henry Rich
I can't see any newlines in this post, so it's very hard to see what was executed. everything runs together. Henry Rich On 2/24/2014 10:27 PM, Jon Hough wrote: As a beginner in J, I am attempting to get a footing in tacit verbs.Lots of things still confuse me, so I want to go through my tria

Re: [Jprogramming] apl character support

2014-02-24 Thread bill lam
I guess J can support both ascii and APL glyph as primitives by modifying the c source code for monad ;: and map both ascii and APL glyph to the same internal representation token for the primitives. Since J is script-based, J itself does not need to concern how APL character will be input or outp

[Jprogramming] Finding Largest Prime of Numbers (Tacit)

2014-02-24 Thread Jon Hough
As a beginner in J, I am attempting to get a footing in tacit verbs.Lots of things still confuse me, so I want to go through my trial-and-error working, and hopefully, if someone has the time, they can explain some things to me. First I wanted to find the largest prime divisor of a given number

Re: [Jprogramming] jhs and iphone safari

2014-02-24 Thread bill lam
On further testing, it seemed the problem was un-related to safari, sorry for the noise. Вс, 23 фев 2014, bill lam писал(а): > On my iphone 3gs (iOS5), using it safari browser, I can connect > to jhs jijx, jijxm, jijxm, the page can show but once typing > anything for execution, from ~user/.applo

[Jprogramming] jqt and qt addon updated

2014-02-24 Thread bill lam
jqt has been updated to 1.0.24 and qt addon to 1.0.143, these two versions must be used together. install'jqt' inside jconsole will update both of them at the same time. For those installed by windows installer, either using the install'jqt' or installing the updated installer will both work. Fo

Re: [Jprogramming] apl character support

2014-02-24 Thread Paul Jackson
There has been some nice work in other areas to support keyboards. The following page uses that work to provide an APL keyboard. http://home.comcast.net/~paul.l.jackson/APL.js/ If you know the APL keyboard, just type ` followed by a normal character and an APL character will appear. If you don'

Re: [Jprogramming] jsoftware web site

2014-02-24 Thread bill lam
There has been a dns problem and fixed now. On Feb 25, 2014 4:54 AM, "Jan-Pieter Jacobs" wrote: > I also had a timeout in the afternoon, but now things seem to work ... > > > 2014-02-24 20:28 GMT+01:00 Kenneth Lettow : > > > No problems here. > > > > > > On Mon, Feb 24, 2014 at 11:29 AM, John Bak

Re: [Jprogramming] A Tale Without End

2014-02-24 Thread Don Guinn
Thanks. Ctrl-Shift-C worked great. On Mon, Feb 24, 2014 at 7:21 AM, Raul Miller wrote: > On Mon, Feb 24, 2014 at 8:30 AM, Don Guinn wrote: > > (Had to add spaces to get the lines with blanks to line up. For some > reason > > copying and pasting from J likes to compress leading blanks.) > > If

Re: [Jprogramming] jsoftware web site

2014-02-24 Thread Jan-Pieter Jacobs
I also had a timeout in the afternoon, but now things seem to work ... 2014-02-24 20:28 GMT+01:00 Kenneth Lettow : > No problems here. > > > On Mon, Feb 24, 2014 at 11:29 AM, John Baker wrote: > > > Is anyone else experiencing problems accessing www.jsoftware.com today? > > > > I am getting a w

Re: [Jprogramming] apl character support

2014-02-24 Thread Raul Miller
I think you joined it about 20 minutes after I posted my message. http://jsoftware.com/pipermail/chat/2014-February/005754.html and 10 minutes after http://jsoftware.com/pipermail/chat/2014-February/005755.html See also: http://jsoftware.com/pipermail/chat/2014-February/date.html FYI, -- Rau

Re: [Jprogramming] Tacit recursion without $:

2014-02-24 Thread Thomas Costigliola
Dan, If someone can provide me with a clean compiling 64 bit windows GPL source package, I would be happy to apply the patches and host the binary at http://www.2bestsystems.com/foundation/j/ On Mon, Feb 24, 2014 at 1:23 PM, Dan Bron wrote: > This is tailor-made Dan-bait. I need some time to

Re: [Jprogramming] best way to write modifier that can have m or u

2014-02-24 Thread Dan Bron
I wrote: > There are also ways to use u without explictly inspecting or switching on > its nameclass, but these are use-case specific, obviously. > > If you post your fuller use-case or current adverb, we might be able > to help you minimize bookkeeping on the argument's nameclass. I re-read you

Re: [Jprogramming] best way to write modifier that can have m or u

2014-02-24 Thread Pascal Jasmin
thank you Dan, enjoyed all the tips. I realized that going from verb or noun to noun is pretty straightforward with u"_ , and it was turning a noun as the basis for a verb that I had not previously done before, and so understandably slightly more hoop jumpy. One huge benefit of single lines for

Re: [Jprogramming] apl character support

2014-02-24 Thread PMA
Ok. I just joined it. Thanks for the prod. Raul Miller wrote: Let's take this to the chat forum... (I'm composing for the chat forum now.) -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] best way to write modifier that can have m or u

2014-02-24 Thread Dan Bron
Pascal wrote: >  '+: y' (1 : 'if. isNoun ''u'' do. u =. (13 : u) end.  u ') 3   > NB. TIL you can add code after 'end.' on same line. The reason you can put 'end.' on the same line is that in an explicit context (i.e. running under : ), 'end.' is considered punctuation, as is any control word. T

Re: [Jprogramming] A Tale Without End

2014-02-24 Thread Roger Hui
In this instance Newton's method gives the same results as the following ( http://www.jsoftware.com/jwiki/Essays/Fibonacci%20Sequence#Matrix_power): M=: 0 1,:1 1x +/ .*~^:5 M 1346269 2178309 2178309 3524578 % %/ {: +/ .*~^:5 M 3524578r2178309 (1 + ] - *:) N^:5 ] 1 3524578r2178309

Re: [Jprogramming] jsoftware web site

2014-02-24 Thread Kenneth Lettow
No problems here. On Mon, Feb 24, 2014 at 11:29 AM, John Baker wrote: > Is anyone else experiencing problems accessing www.jsoftware.com today? > > I am getting a web page not available. Mind you it could be our corporate > network ninnies that are always blocking websites without reason or > w

Re: [Jprogramming] apl character support

2014-02-24 Thread Raul Miller
Let's take this to the chat forum... (I'm composing for the chat forum now.) Thanks, -- Raul On Mon, Feb 24, 2014 at 2:00 PM, PMA wrote: > I'd love to hear -- putting aside implementation issues, people's aversion > to the unfamiliar, and what is or isn't ugly -- how the list members would > e

Re: [Jprogramming] Tacit recursion without $:

2014-02-24 Thread Raul Miller
For computational purposes, I favor primitive recursion (http://en.wikipedia.org/wiki/Primitive_recursive_arithmetic) over elementary recursion (http://en.wikipedia.org/wiki/Elementary_recursive_arithmetic). Still, I thought I'd post an explicit implementation of Recursion. I understand that being

Re: [Jprogramming] apl character support

2014-02-24 Thread PMA
I'd love to hear -- putting aside implementation issues, people's aversion to the unfamiliar, and what is or isn't ugly -- how the list members would expect adoption of APL chars to impact (enhance/ruin/...) J. Roger Hui wrote: I love the APL chars as much as the next guy. Some people would arg

Re: [Jprogramming] Tacit recursion without $:

2014-02-24 Thread Dan Bron
This is tailor-made Dan-bait. I need some time to study it (this is the first email I've physically printed out - on paper - in years!), but even on a first inspection there's some exciting ideas here . This one already has some wheels turning in my mind: > Is there any benefit for defining adve

Re: [Jprogramming] best way to write modifier that can have m or u

2014-02-24 Thread Dan Bron
That's the basic pattern. The name 'u' refers to the adverb's argument, so it will always exist and be either a verb or a noun. If the adverb is passed a verb, then u will exist and be a verb; if the adverb is passed a noun, then u will exist and be a noun. In addition to u, if the adverb is p

Re: [Jprogramming] apl character support

2014-02-24 Thread Roger Hui
I love the APL chars as much as the next guy. Some people would argue that APL chars are no longer a problem, but recent experience with my Samsung tablet indicates otherwise. On Mon, Feb 24, 2014 at 8:27 AM, Raul Miller wrote: > Maybe I should be doing this in a different forum? It's hard to

Re: [Jprogramming] Generalized continued fractions

2014-02-24 Thread km
Here is how I would generate the terms of the finite continued fraction 1 + 2 -- 3 + 4 -- 5 + 6 -- 7 cf =: {.@] , {.@] + [: ([: %`+/ 0 ,~ ,/)\ (,. }.) 2 4 6 cf 1 3 5 7x 1 5r3 29r19 233r151 The underlying idea

Re: [Jprogramming] apl character support

2014-02-24 Thread Lee Fallat
Someone could edit the J interpreter such that when you type a combination of characters, it will replace them with a better, one character alternative. The question is if people want this to be only visual or actually change what you've typed in. On Mon, Feb 24, 2014 at 11:27 AM, Raul Miller wro

[Jprogramming] apl character support

2014-02-24 Thread Raul Miller
Maybe I should be doing this in a different forum? It's hard to anticipate if or where conversation will go. Anyways, http://www.johndcook.com/symbols/2014/02/apl/ reminded me to think about the tradeoffs involved in J's design: thru=: [ + 1 i.@+ -~ 10 thru 20 10 11 12 13 14 15 16 17 18 19

Re: [Jprogramming] jsoftware web site

2014-02-24 Thread Dan Abell
okay from here ... -Dan On 24 Feb 2014, at 09:29, John Baker wrote: > Is anyone else experiencing problems accessing www.jsoftware.com today? > > I am getting a web page not available. Mind you it could be our corporate > network ninnies that are always blocking websites without reason o

[Jprogramming] best way to write modifier that can have m or u

2014-02-24 Thread Pascal Jasmin
For some reason, I remember there was an easier way to get an adverb to notice whether it had an m or u parameter, but I can't recall if that was the case, or how to do it.  Is there an easier way to write the adverb below? isNoun =: (0 = 4!:0 ( :: 0:))@:<    2 (1 : 'if. isNoun ''u'' do. u

[Jprogramming] jsoftware web site

2014-02-24 Thread John Baker
Is anyone else experiencing problems accessing www.jsoftware.com today? I am getting a web page not available. Mind you it could be our corporate network ninnies that are always blocking websites without reason or warning. Cheers -- John D. Baker bakerj...@gmail.com

Re: [Jprogramming] A Tale Without End

2014-02-24 Thread Raul Miller
On Mon, Feb 24, 2014 at 8:30 AM, Don Guinn wrote: > (Had to add spaces to get the lines with blanks to line up. For some reason > copying and pasting from J likes to compress leading blanks.) If you are using chrome, try the right click option: "Paste as plain text" (or control-shift-v). Thanks,

Re: [Jprogramming] A Tale Without End

2014-02-24 Thread Don Guinn
Extended integers seems to work on base ten thousand. On J8 64 bit I get 3!:3&.>1x;1x;1x ++++ |e300|e300|e300| |4000|4000|4000| |0100|01000

Re: [Jprogramming] A Tale Without End

2014-02-24 Thread Nimp O
Another nice way to get a lot of digits from the golden ratio is using Newton's Method. In : http://www.jsoftware.com/jwiki/Essays/Newton%27s%20Method N=: 1 : '- u % u d. 1' correct50 =: '1.61803398874989484820458683436563811772030917980576' 0j50 ": (1 + ] - *:) N^:7 ] 1 1.6180339887498948482

Re: [Jprogramming] A Tale Without End

2014-02-24 Thread Linda Alvord
Here is the number from the web page you included. NB.0.6180339887 4989484820 4586834365 6381177203 0917980576 2862135448 6227052604 6281890244 9707207204 1893911374 Your function provides a decimal value. The result here is a rational number: g=: 13 :'(+%)/\y$1x' ]B=:0{|.g 300

Re: [Jprogramming] Tacit recursion without $:

2014-02-24 Thread Linda Alvord
I'm glad there are people like you who are worried about all this. I'm quite content to use J as a powerful calculator which has provided 50 digits of the Golden Ratio. Unless I hear otherwise, I will continue to trust it is providing correct answers. I wish you all the best as you work to mak

Re: [Jprogramming] A Tale Without End

2014-02-24 Thread Jan-Pieter Jacobs
Aww... tricky send button. Corrections: digits_g =: 0j50 ": B - 1 NB. and digits_g -: 52{.(#~ ' ' ~: ]) dw Jan-Pieter 2014-02-24 11:32 GMT+01:00 Jan-Pieter Jacobs : > It seems they are the same as on this page: > http://home.adelphi.edu/~stemkoski/mathematrix/constant.html > Atleast for the f

Re: [Jprogramming] A Tale Without End

2014-02-24 Thread Jan-Pieter Jacobs
It seems they are the same as on this page: http://home.adelphi.edu/~stemkoski/mathematrix/constant.html Atleast for the fractional part. g=: 13 :'(+%)/y$1x' NB. removed the \ making things slower, only returning the last result ]B=: g 200 digits_g =: 0j50 ": B NB. first 100 digits from the webs

Re: [Jprogramming] Tacit recursion without $:

2014-02-24 Thread Linda Alvord
Jose, I had a vague fuzzy feeling that my method wasn't recursion. I'll go back to read your original message more carefully. Linda -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Jose Mario Quintana Sent

Re: [Jprogramming] A Tale Without End

2014-02-24 Thread Linda Alvord
Ric, are these 50 digits correct. Is it doing the "long division" to get the answer? Linda -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda Alvord Sent: Monday, February 24, 2014 5:01 AM To: programm...

Re: [Jprogramming] A Tale Without End

2014-02-24 Thread Linda Alvord
Nice. This is all it takes in a fresh start in J: g=: 13 :'(+%)/\y$1x' ]B=:0{|.g 200 453973694165307953197296969697410619233826r280571172992510140037611932413038 677189525 0j50 ": B 1.61803398874989484820458683436563811772030917980576 Is this the same j of complex numbers or is

Re: [Jprogramming] A Tale Without End

2014-02-24 Thread Linda Alvord
Yes! Thanks, Kip. g=: 13 :'(+%)/\y$1x' 0{|.g 200 453973694165307953197296969697410619233826r280571172992510140037611932413038 677189525 _1 x: 0{|.g 200 1.61803 Linda -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jso

Re: [Jprogramming] A Tale Without End

2014-02-24 Thread Ric Sherlock
No need to convert to floating point first: 0j42 ": 5r3 1.67 On Mon, Feb 24, 2014 at 8:32 PM, km wrote: > Floating point digits beyond the 17th are illusory on my 32-bit machine: > > 0j42 ": x:^:_1 [ 5r3 > 1.66674068153497501043602