2009/5/7 Silvain Dupertuis <[email protected]>
Pour préciser, dans Lisp, *l'espace des noms de fonctions et celui des noms
de variables (ou autres objets) sont totalement séparés*. C'est sans doute
pourquoi il faut passer par un appel de funcall...
Non, ca n'a rien a voir. C'est parce que les fonctions Maxima sont ecrites
en langage Maxima, et non pas en Lisp. Donc il faut passer par
l'interpreteur Maxima (mfuncall -- a ne pas confondre avec le funcall de
Lisp). Il y a aussi la possibilite de traduire les fonctions Maxima en Lisp
en utilisant la fonction Maxima 'translate'.
A bien noter que la fonction Maxima f(x):=x*x ne correspond pas a la
fonction Lisp (defun $f (x) (* x x)) puisque les operations arithmetique
(p.e. "*") en Maxima sont des operateurs de simplification d'expressions
formelles, pas des operateurs d'arithmetique de nombres.
-s
Le 17:39 07.05.2009,Robert Dodier écrit:
>
> 2009/5/7 Robert SETIF <[email protected]>:
>
> > Par exemple, dans Maxima, ca(x) :=x * x ;to_lisp() ; ($ca 15) -> ca aussi
> > bien que $ca undefined !
> >
> > Y a-t-il une solution ?
>
> ca(x) := x * x;
> :lisp (mfuncall '$ca '$foo)
> => ((MEXPT SIMP) $FOO 2)
> to_lisp();
> MAXIMA> (mfuncall '$ca '$bar)
> => ((MEXPT SIMP) $BAR 2)
>
> > Ce serait intéressant qu’un chapitre de l’aide soit consacré à ce sujet
> (au
> > moins en anglais), et pourquoi pas à propos d’autres passerelles
> possibles
> > avec d’autres langages . Ces renseignements existent peut-être, mais je
> ne
> > les ai pas trouvés.
>
> See: "Lisp and Maxima" in the reference manual.
> ?? lisp
> at the interactive prompt should find it.
> See also "Lisp and Maxima" in the document "Minimal Maxima" at:
> http://maxima.sourceforge.net/documentation.html
>
> Hope this helps!
>
> Robert Dodier
>
>
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> production scanning environment may not be a perfect world - but thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK
> i700
> Series Scanner you'll get full speed at 300 dpi even with all image
> processing features enabled. http://p.sf.net/sfu/kodak-com
> _______________________________________________
> Maxima-lang-fr mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/maxima-lang-fr
>
>
>
>
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> production scanning environment may not be a perfect world - but thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK
> i700
> Series Scanner you'll get full speed at 300 dpi even with all image
> processing features enabled. http://p.sf.net/sfu/kodak-com
> _______________________________________________
> Maxima-lang-fr mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/maxima-lang-fr
>
>
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Maxima-lang-fr mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maxima-lang-fr