## La recherche a retourné 11 résultats

sam. mars 31, 2012 10:14 pm
Forum : Xcas - English
Sujet : Function variables declared as global! Why?
Réponses : 3
Vues : 4940

### Re: Function variables declared as global! Why?

Hm, actually, just using apply(fn,mtx) or map(mtx,fn) is much quicker.
Very useful, I hadn't noticed it before...
sam. mars 31, 2012 9:51 pm
Forum : Xcas - English
Sujet : Function variables declared as global! Why?
Réponses : 3
Vues : 4940

### Re: Function variables declared as global! Why?

Yes, that solution is perfect! 1.8" for a 500^2 matrix instead of 600".
Thank you so much.

I don't suppose you have any ideas on the "global variable" warning for the function parameters?
sam. mars 31, 2012 2:16 pm
Forum : Xcas - English
Sujet : Function variables declared as global! Why?
Réponses : 3
Vues : 4940

### Function variables declared as global! Why?

I discovered this trying to write a function that processes each element of a matrix. It seems that if there is any level of complexity in the function, the arguments are treated as globals! I am not sure, but I think this may even be related to the problem of currying which I mentioned in the giac ...
lun. mars 26, 2012 4:12 pm
Forum : Giac
Sujet : "Currying" in giac
Réponses : 4
Vues : 3708

### Re: "Currying" in giac

Indeed, partial evaluation seems to be OK for multiple variables too, not just currying. eg: 1>> cfn := unapply(unapply((x^2+y^3)*z,z),(x,y)) (x,y)-> (z)->(x^2+y^3)*z // Time 0 2>> cfn (x,y)-> (z)->(x^2+y^3)*z // Time 0 3>> cfn(3) "[3] size() != [x,y] Error: Bad Argument Value" // Time 0 4>> cfn(3,4...
lun. mars 26, 2012 3:59 pm
Forum : Giac
Sujet : "Currying" in giac
Réponses : 4
Vues : 3708

### Re: "Currying" in giac

Having been away from giac for a while, I recently revisited it, and found that currying CAN be done, in the following manner. Since it seems that the system accepts this "workaround" correctly, it shouldn't be too difficult to adjust the language accordingly. Using the example I gave above, once ag...
mar. janv. 25, 2011 8:46 pm
Forum : Giac
Sujet : Multicore support
Réponses : 1
Vues : 2365

### Multicore support

While testing giac on my twin-core D4 Ubuntu system I noticed // Using locale /usr/share/locale/ // en_GB.UTF-8 // /usr/share/locale/ // giac // UTF-8 // Maximum number of parallel threads 2 // Using keyword file /usr/share/giac/doc/en/keywords Does this mean that giac will use multiple cores for co...
mar. janv. 25, 2011 8:41 pm
Forum : Giac
Sujet : "Currying" in giac
Réponses : 4
Vues : 3708

### Re: "Currying" in giac

Thanks for that feedback, at least I know I have to look for a workaround now.

I am looking forward to examining the source code, but that won't happen for a while yet...
mar. janv. 25, 2011 8:37 pm
Forum : Giac
Sujet : Differentiating vectors of functions
Réponses : 3
Vues : 3859

### Re: Differentiating vectors of functions

Thanks very much for that, I was getting a bit confused with the Maple-mode support...
I now see it's working OK, even if the answer is the slightly different

Code : Tout sélectionner

``````expr("proc(` x`)
cos(` x`);
-(sin(` x`));
1+tan(` x`)^2;

end;")``````
Gives me enough to go on, anyway
mar. janv. 25, 2011 5:56 pm
Forum : Giac
Sujet : Differentiating vectors of functions
Réponses : 3
Vues : 3859

### Differentiating vectors of functions

Just another little thing I noticed, not very important but I think worth mentioning: As far as I can tell, giac's function_diff() is pretty much the same as Maple's D() , which giac also supports. Yet, function_diff([sin,cos,tan]) correctly gives (` x`)->{ cos(` x`); -(sin(` x`)); 1+tan(` x`)^2; } ...
mar. janv. 25, 2011 4:33 pm
Forum : Giac
Sujet : "Currying" in giac
Réponses : 4
Vues : 3708

### "Currying" in giac

Hi I wonder if there are any plans for currying support on giac. At the moment, e.g., the statement below does not work in giac, although it is fine in Maple. cfn := x->y->z->(x+y)*z [ cfn(3)(4)(5) => 35 ] the giac error is // Error(s) // End defining fn undef :1: syntax error, unexpected T_MAPSTO l...
mar. janv. 25, 2011 12:13 pm
Forum : Xcas smartphone/tablette/PDA
Sujet : Request: XCAS for maemo
Réponses : 3
Vues : 25345

### Re: Request: XCAS for maemo

Having just tried the supplied ARM files on a Nokia 770, I can confirm that it does not seem to work. This is a bit peculiar, because the system claims it cannot find the xcas file, even though it is there, with all the correct permissions, etc. I wonder if there is some kind of file size limit on N...