Re: [Jprogramming] problem with 'plot'

2023-03-18 Thread rsykora via Programming
Dear Maurice, > If I understand correctly, "plot 1 2 3" will > 1. generate j902-user/temp/plot.pdf (default output type) and then > 2. launch xdg-open (yes, a sh file) to display it. > > Does your xdg-open utility work in your linux environment with pdf? thank you! This was what I needed to kno

Re: [Jprogramming] problem with 'plot'

2023-03-17 Thread rsykora via Programming
On 2023-03-17 16:41, bill lam wrote: Which frontend are you using? jconsole or jqt? jconsole on linux On Fri, 17 Mar 2023 at 11:24 PM rsykora via Programming < programm...@jsoftware.com> wrote: Dear list, I use j902. When I try:to use 'plot' I get: load'plot&#

[Jprogramming] problem with 'plot'

2023-03-17 Thread rsykora via Programming
Dear list, I use j902. When I try:to use 'plot' I get: load'plot' plot 1 2 3 sh: line 1: : command not found Do you have any hint where I should look in order to find what could be the problem? Thanks! Ruda -- For inf

Re: [Jprogramming] printf and newlines

2021-08-24 Thread rsykora via Programming
August 23, 2021 5:08 PM, "Raul Miller" wrote: > You might try > require'general/misc/format format/printf' > a=:i.2 2 [ b=:6 > 'v1: %d\nv2: %s\nv3: %d\n' printf b;(flatten a);b Thanks, I did not know 'flatten' before. Ruda -- F

Re: [Jprogramming] crash

2020-03-26 Thread rsykora
> Can you also try turning off antivirus? I do not run anything other than Windows 10 defender. I turned even that off to no avail. No change. Thanks Ruda -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] function within function; scope

2020-03-24 Thread rsykora
Dear Raul and Henry thank you for your comprehensive list of ideas and explanation. It helped. Ruda March 20, 2020 11:22 PM, "Raul Miller" wrote: > There are several ways to accomplish what I think you're asking for: > > Algebraic simplification: > g=:3 :0 > -y > ) > > Pass the intermediat

[Jprogramming] cross product of two vectors

2020-02-08 Thread rsykora
Dear list, is there a concise way to calculate a cross product of 2 vectors (in 3D, of course). Thanks Ruda -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] multiply two multidimensional matrices

2020-02-06 Thread rsykora
February 6, 2020 11:00 PM, "Henry Rich" wrote: > It's not so simple to describe. In fact, you haven't described it. > Your example seems to have a rank-4 array times a rank-5 array producing > a rank-7 array. Is this result the sum of rank-7 arrays created by > multiplying rank-3 times rank

Re: [Jprogramming] multiply two multidimensional matrices

2020-02-06 Thread rsykora
Henry Rich writes: > It depends on what the '*' means in the definition of the product. >> C_ijlmnop = sum_k A_ijkl * B_mknop I really mean the usual multiplication (of numbers). > Have a look at > > a =. i. 2 3 4 5 > b =. i. 2 4 3 5 6 > $ (2 |: a) +/ . * ((|:~ 1 -.~ i.@(#@$)) b) > 2 3 5 2 3

[Jprogramming] multiply two multidimensional matrices

2020-02-06 Thread rsykora
Dear list, having two multidimensional matrices A and B, with some indices, say, A_ijkl and B_mknop, how can I obtain a matrix C, where C_ijlmnop = sum_k A_ijkl * B_mknop ie., C has all indices of A and B but for the index k, which was summed over. Thanks for your suggestions. Best regards Rud