[Jprogramming] status FFTW

2014-01-29 Thread R.E. Boss
Tried to use the lab Fast Fourier Transform but the first simple example already crashed: fftw i.8 |domain error: cd | 0 pick cmd cd(#shape);shape;in;out;dir;flag both in J801 end J602. What is the status of the addon math/fftw ? R.E. Boss (Add your info to http://www.jsoftware.com/j

Re: [Jprogramming] status FFTW

2014-01-29 Thread bill lam
Please give a detail bug report such as: What are your running environment, such as OS, 32/64, version numbers of base library and fftw addon, what errors being reported by cder'' and cderx'', what is your DLL_jfftw_, do you have that file in that location? Ср, 29 янв 2014, R.E. Boss писал(а): >

Re: [Jprogramming] status FFTW

2014-01-29 Thread R.E. Boss
Windows 7 64 JVERSION Engine: j701/2011-01-10/11:25 Library: 8.01.019 Qt IDE: 1.0.22/4.8.5 Platform: Win 64 Installer: j801 beta install FFTW 1.1.8 cder'' 1 0 cderx'' +---+-+ |122|The data area passed to a system call is too small. |

Re: [Jprogramming] status FFTW

2014-01-29 Thread bill lam
Thanks, now fixed, but now sure why the server did not response. May be you can try pacman update later. Ср, 29 янв 2014, R.E. Boss писал(а): > Windows 7 64 > >JVERSION > Engine: j701/2011-01-10/11:25 > Library: 8.01.019 > Qt IDE: 1.0.22/4.8.5 > Platform: Win 64 > Installer: j801 beta instal

Re: [Jprogramming] status FFTW

2014-01-29 Thread R.E. Boss
In trying to run the fftw-lab (and other labs) I got error in: labsel_ok_button smact: command not found: wd (wd::(_)'qer') (13!:8)3 with cder'' 2 0 cderx'' +--+--+ |18|There are no more files. | +--+--+ But I could proceed with the lab

Re: [Jprogramming] status FFTW

2014-01-29 Thread bill lam
Thanks for report. Now fixed. smact needs jqt update. Ср, 29 янв 2014, R.E. Boss писал(а): > In trying to run the fftw-lab (and other labs) I got > > error in: labsel_ok_button > smact: command not found: wd > (wd::(_)'qer') (13!:8)3 > > with >cder'' > 2 0 >cderx'' > +--+--

[Jprogramming] math requests

2014-01-29 Thread Pascal Jasmin
With all of the mathematicians on this list, these functions have likely been implemented before in J. elyptic curve point add, multiplication and double a python reference implementation:  https://github.com/warner/python-ecdsa/blob/master/ecdsa/ellipticcurve.py the functions are: __add__  __

Re: [Jprogramming] math requests

2014-01-29 Thread Pascal Jasmin
Here is the first invmod method invmod=: 4 : 0 NB. inverse of y mod x (x|y) NB. uc vc ud vd d c  where d c init as x y NB. q =. d<.@%c -- (4&{ <.@%~ {:) a=. imw^:_ ] 1x,0x,0x,1x,x,y if. 1~: 4{a do. 0 return. end. if.0< 2{ a do. 2{ a else. x+2{a end. ) imw =: ((2&{ - {. * 4&{ <.@% {:),(3&{ - 1&{

Re: [Jprogramming] math requests

2014-01-29 Thread Cliff Reiter
Some elliptic curve stuff; I think there is a +1 error that Roger Hui noticed in the factorization method. http://archive.vector.org.uk/art10007270 http://archive.vector.org.uk/art10007280 Best, Cliff On 1/29/2014 11:35 AM, Pascal Jasmin wrote: With all of the mathematicians on this list, th

Re: [Jprogramming] math requests

2014-01-29 Thread Pascal Jasmin
thank you,  some exploration/toy code for eliptic curves: CurvePoints =: 4 : 0"1 0 'p a b' =. x p | %: (b + ^&3 + a&*) y ) intCurvePointsX =: (] #~ CurvePoints = <.@CurvePoints) intCurvePointsY =: ([ CurvePoints intCurvePointsX) NB. x is prime, a, b defining curve: y^2 = x^3 +ax + b mod prime N

Re: [Jprogramming] math requests

2014-01-29 Thread Cliff Reiter
For modular inverses in teaching I use gcd2x=: 3 : 0 'r0 r1'=.y 's0 s1'=.1 0 't0 t1'=.0 1 while. r1 ~: 0 do. q=. <. r0 % r1 'r0 r1'=. r1,r0-q*r1 's0 s1'=. s1,s0-q*s1 't0 t1'=. t1,t0-q*t1 end. r0,s0,t0 ) invmod=: 4 : 'y| {: gcd2x y,x' 5 invmod 21 17 21|5*17 1 Best, Cliff On 1/29

[Jprogramming] setting rank to a conjunction

2014-01-29 Thread Pascal Jasmin
Is there a way to set the rank of the resulting verb of a conjunction?  A bit surprisingly, this workaround does not work: t=:  2 : '(u@:v)"1'    ] t+/ 3 3 $ i.9 9 12 15 result desired:    ]@:+/"1 ] 3 3 $ i.9 3 12 21 Ideally, it should be possible to set rank like: t =: 2 : 0 ("1) ... ) I g

Re: [Jprogramming] setting rank to a conjunction

2014-01-29 Thread bill lam
You forgot to bracket +/ On Jan 30, 2014 9:09 AM, "Pascal Jasmin" wrote: > Is there a way to set the rank of the resulting verb of a conjunction? A > bit surprisingly, this workaround does not work: > > t=: 2 : '(u@:v)"1' > > >] t+/ 3 3 $ i.9 > 9 12 15 > > result desired: >]@:+/"1 ] 3 3

Re: [Jprogramming] math requests

2014-01-29 Thread Pascal Jasmin
Interesting that your code for ec add mult and double is part of J's source code for what I think is optimizations for q: or general factoring. https://github.com/tavmem/j/blob/master/v2.c  - Original Message - From: Cliff Reiter To: programm...@jsoftware.com Cc: Sent: Wednesday, Ja

Re: [Jprogramming] setting rank to a conjunction

2014-01-29 Thread Raul Miller
Seconded - try ] t (+/) Thanks, -- Raul On Wed, Jan 29, 2014 at 8:21 PM, bill lam wrote: > You forgot to bracket +/ > On Jan 30, 2014 9:09 AM, "Pascal Jasmin" wrote: > >> Is there a way to set the rank of the resulting verb of a conjunction? A >> bit surprisingly, this workaround does not wo

[Jprogramming] shared objects removed from linux addons

2014-01-29 Thread bill lam
Shared objects (.so files) have been removed from JAL addons for Linux, in particular FFTW and LAPACK addons. Addons for Linux will instead use libraries provided by Linux distro. Please install the packages needed from distro if those addons fail because of missing dependency. arc/zip is un-affe

Re: [Jprogramming] setting rank to a conjunction

2014-01-29 Thread Linda Alvord
t2=: 13 :'+/|:y' t2 [: +/ |: t2 3 3$i.9 3 12 21 Linda -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Raul Miller Sent: Wednesday, January 29, 2014 8:46 PM To: Programming forum Subject: R

Re: [Jprogramming] setting rank to a conjunction

2014-01-29 Thread Linda Alvord
I always preferred this to the vocabulary definition of @: f=: 13 :'*/ x + y' x f y 2016 f [: */ + It seems to me that J does too. Linda -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda