Re: [Chicken-users] foreign-lambda - how to declare double array as argument and how to pass things to it?

2007-11-11 Thread Zbigniew
Did you try passing in an f64vector instead of a vector? On 11/11/07, Terrence Brannon <[EMAIL PROTECTED]> wrote: > My guess was f64vector. That compiled, but passing a Scheme vector in failed: > > #;2> (let ([vec (vector 0 1 1)]) (polevl 42 vec (vector-length vec))) > Error: bad argument type - n

Re: [Chicken-users] #(a b c) not accepted as vector of symbols

2007-11-11 Thread Zbigniew
Version 2.732 - macosx-unix-gnu-x86-64 #;1> '#(a b c) #(a b c) #;2> (symbol? (vector-ref #1 0)) #t On 11/11/07, Terrence Brannon <[EMAIL PROTECTED]> wrote: > why would chicken not accept that syntax as a vector of symbols? plt did. ___ Chicken-users m

[Chicken-users] #(a b c) not accepted as vector of symbols

2007-11-11 Thread Terrence Brannon
why would chicken not accept that syntax as a vector of symbols? plt did. ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users

[Chicken-users] foreign-lambda - how to declare double array as argument and how to pass things to it?

2007-11-11 Thread Terrence Brannon
I have this function in C: double polevl( x, coef, N ) double x; double coef[]; int N; { ... } and I am trying to create foreign-lambda for it: (define polevl (foreign-lambda double polevl double f64vector int)) But I know that double[] is wrong. My guess was f64vector. That compiled, but p

[Chicken-users] Fwd: gettings roots (and multiplier) of a polynomial equation and vice versa + Gnu Scientific Library

2007-11-11 Thread Terrence Brannon
Jens wrote some code for this in case there is nothing in Chicken for it at the moment. Only thing is doesnt do is return the multiplier for the factorization. -- Forwarded message -- From: Jens Axel Søgaard <[EMAIL PROTECTED]> Date: Nov 11, 2007 6:44 PM Subject: Re: gettings root

[Chicken-users] chicken.wiki.br - an anti-IE site

2007-11-11 Thread Terrence Brannon
If you visit chicken.wiki.br - http://chicken.wiki.br/Accessing%20external%20objects with IE or an IE-compatible browser, all the code samples do not render, but instead put up scrollable boxes with small windows. ___ Chicken-users mailing list Chicken

[Chicken-users] gettings roots (and multiplier) of a polynomial equation and vice versa + Gnu Scientific Library

2007-11-11 Thread Terrence Brannon
I'm wondering if I overlooked an egg that can do this: 1 - given the (real) coefficients of all terms of a polynomial equation, it returns the roots and multiplier representation of it: For example, the polynomial 2x + 2x^2 factors down to 2 * (x-(-1))(x-0), so the multiplier is 2 and the roots a