[Jprogramming] rosettacode

2013-04-18 Thread David Ward Lambert
Please modify these new entries as you please: http://rosettacode.org/wiki/Josephus_problem#J http://rosettacode.org/wiki/Continued_fraction/Arithmetic/Construct_from_rational_number#J The continued fraction solution has some oddities. Returning _ to signal "finished" converts the output vector to

Re: [Jprogramming] Can I use J with c#

2013-04-18 Thread Raj kamal Arora
Happy to help you. On Fri, Apr 19, 2013 at 10:43 AM, Greg Borota wrote: > You can via PInvoke: http://www.jsoftware.com/jwiki/Interfaces/PInvoke > Note that code base currently doesn't work with UTF8, only plain ascii. > It's something that I am going to fix at some point. If you want to join >

Re: [Jprogramming] Can I use J with c#

2013-04-18 Thread Greg Borota
You can via PInvoke: http://www.jsoftware.com/jwiki/Interfaces/PInvoke Note that code base currently doesn't work with UTF8, only plain ascii. It's something that I am going to fix at some point. If you want to join the effort, let's discuss. On Thu, Apr 18, 2013 at 9:14 PM, Raj kamal Arora wrote

[Jprogramming] Can I use J with c#

2013-04-18 Thread Raj kamal Arora
Hello, I hope my query is very much clear from subject line. I am working on a big software which requires huge calculations. For the development purpose, I am using VS.Net 2010. I am aware that for huge calculations, J is the best language. So, Can I use J language inside my Visual Studio 2010 b

Re: [Jprogramming] Table of Verbs

2013-04-18 Thread Jose Mario Quintana
One problem is the infamous resilient linear representation bug that unfortunately will be pestering us indefinitely. See your definition of A versus its linear representation and that of the verb (all): A=:0:`(<'`:') lr'A' ;:'0:`:' lr'all' ([: < ([: ,^:(0:``:)&6 [ , [: < [ ('0' ; ]) ])"0

Re: [Jprogramming] i.0 0[A[B

2013-04-18 Thread Peter B. Kessler
http://www.jsoftware.com/help/jforc/declarations.htm mentions The display of a rank-2 array with no items is different: here we have zero lists, so we should expect no lines at all. This is indeed what happens: 0 0$0 (there is no blank line). This is the result you should pro

Re: [Jprogramming] errno

2013-04-18 Thread Raul Miller
:) inurl:dictionary can be a good supplementary constraint when you are looking for reference material. (And, of course, others are plausible.) FYI, -- Raul On Thu, Apr 18, 2013 at 2:07 PM, Greg Borota wrote: > After this post 'errno site:jsoftware.com' will probably return something > usefu

Re: [Jprogramming] errno

2013-04-18 Thread Greg Borota
After this post 'errno site:jsoftware.com' will probably return something useful :-) . Again thanks! On Thu, Apr 18, 2013 at 12:56 PM, Raul Miller wrote: > http://www.jsoftware.com/help/dictionary/dictj.htm > links to > http://www.jsoftware.com/help/dictionary/dx013.htm > which has the text: >

Re: [Jprogramming] errno

2013-04-18 Thread Raul Miller
http://www.jsoftware.com/help/dictionary/dictj.htm links to http://www.jsoftware.com/help/dictionary/dx013.htm which has the text: 13!:11 y Error Number. Last error number. Does not required enabled suspension to work. 13!:12 y Error Message. Last error message. Does not required enabled suspe

[Jprogramming] errno

2013-04-18 Thread Greg Borota
Is there something like errno from C in J? What I am after is for a way to check programmatically if last sentence was an error or not. I don't remember reading anywhere about it, or maybe it just didn't click when I've read about it.

Re: [Jprogramming] i.0 0[A[B

2013-04-18 Thread Greg Borota
I find this very instructive, thank you. On Thu, Apr 18, 2013 at 11:50 AM, Raul Miller wrote: > i.0 0 is a result which displays as 0 lines. The final dimension of > an array is displayed horizontally, the remainder are displayed > vertically. > > Any array with a 0 in a dimension which displa

Re: [Jprogramming] i.0 0[A[B

2013-04-18 Thread Raul Miller
i.0 0 is a result which displays as 0 lines. The final dimension of an array is displayed horizontally, the remainder are displayed vertically. Any array with a 0 in a dimension which displays vertically will occupy 0 lines. FYI, -- Raul On Thu, Apr 18, 2013 at 12:40 PM, Greg Borota wrote:

[Jprogramming] i.0 0[A[B

2013-04-18 Thread Greg Borota
When you load jconsole with no profile, .0 0[A[B is the sentence executed upon start-up. where A are stands for setting ARGV_z_ and B for setting BINPATH_z_. I am guessing the resulting i. 0 0 is just a way of simulating what in other languages would be known as NoOp. If that's the case indeed, wh

Re: [Jprogramming] Graph Multiplication in J

2013-04-18 Thread Raul Miller
On Wed, Apr 17, 2013 at 11:13 PM, Michal D. wrote: >> I'd want to >> understand why you've used "0 1 in its definition - do you really >> support vector left arguments? > > I'm not sure what you mean - what kind of rank would you like to see? "1 would be slightly more concise than "0 1 (for examp

Re: [Jprogramming] Table of Verbs

2013-04-18 Thread bill lam
Oh sorry, both you and I should post to the jbeta forum for j801 related stuff. Чт, 18 апр 2013, bill lam писал(а): > Shortcut name for trace has been add to j801 and will be > available in the next base library update release. > > Чт, 18 апр 2013, Linda Alvord писал(а): > > T =: 2 2 $ +/`|:`|.

Re: [Jprogramming] Table of Verbs

2013-04-18 Thread bill lam
Shortcut name for trace has been add to j801 and will be available in the next base library update release. Чт, 18 апр 2013, Linda Alvord писал(а): > T =: 2 2 $ +/`|:`|.`(-/ .*) >g=:[ , [: < [ ('0';]) ] >A=:0:`(<'`:') > >all=:([:<([:(,^:A)&6 g) f."0 _)"0 _ >T all i.2 2 >

Re: [Jprogramming] Table of Verbs

2013-04-18 Thread Linda Alvord
T =: 2 2 $ +/`|:`|.`(-/ .*) g=:[ , [: < [ ('0';]) ] A=:0:`(<'`:') all=:([:<([:(,^:A)&6 g) f."0 _)"0 _ T all i.2 2 T---┐ │2 4│0 2│ │ │1 3│ +---+---+ │2 3│_2 │ │0 1│ │ L---+ all ([: < ([: ,^:(0:``:)&6 [ , [: < [ ('0' ; ]) ])"0 _)"0 _ trace '([: < ([: ,^:(