> -----Message d'origine----- > De : [EMAIL PROTECTED] [mailto:maxima-lang-fr- > [EMAIL PROTECTED] De la part de seb_kramm > Envoyé : mardi 6 février 2007 09:53 > À : [email protected] > Objet : Re: [Maxima-lang-fr] [Fwd: Num et Denom d'un é lément d'une matrice] > > Robert Dodier a écrit : > > row(M, i) => returns a matrix > > M[i] => returns a list > > > So these are a little bit different. (In Maxima, lists and matrices are > > distinct > > -- a list is not a 1-row matrix.) The representation of a matrix in Maxima > > is very > > naive -- a matrix is just a list of lists (i.e., a list of rows). This > > makes M[i] > > => row very easy, but there is no equally simple notation to obtain a > > column. We > > have discussed matrix representation on the Maxima mailing list, so > > something > > might be changed in the not-too-distant future. > > Thanks for your comments. > > Donc, si je comprends bien, la variable 'scalarmatrixp', si true, ne provoque > pas une > conversion automatique d'une liste à 1 élément vers un scalaire.
Non. Par contre dans ce cas une MATRICE 1 x 1 RESULTAT D'UN PRODUIT SCALAIRE est convertie en scalaire (comme cela est spécifier dans la documentation). Si scalarmatrixp:all alors une MATRICE 1 x 1 RESULTAT d'une opération mathématique est convertie en scalaire. Ce qui veut dire en particulier que le résultat d'une opération d'accès à un élément d'une matrice n'est pas affecté par la valeur de scalarmatrixp. J'admets que ce dernier point n'est pas très clair dans la documentation. L'ambiguïté serait levée si la documentation était: When scalarmatrixp is all, then all 1 x 1 matrices produced as a result of mathematic operation are simplified to scalars. Ou quelque chose comme ça. > Il serait peut-être > judicieux de préciser ce fait dans la doc ? > > Peut-être est-ce un comportement à modifier ? Ou bien prévoir une autre > variable > similaire, permettant de convertir (ou non) automatiquement une liste à 1 > élément en > scalaire ? Je n'ai pas trouvé dans la doc. > Mais, encore une fois, je n'ai certainement pas tous les éléments en main... > Et, > surtout, maintenant, je suis informé de ce fait. > > > All the best, and my apologies for not writing in the official language of > > the > > list. > > You're welcome ! Laurent. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Maxima-lang-fr mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/maxima-lang-fr
