mirror of https://github.com/texmacs/doc.git
214 lines
79 KiB
Plaintext
214 lines
79 KiB
Plaintext
|
<TeXmacs|1.0.1.18>
|
|||
|
|
|||
|
<style|<tuple|tmdoc|maxima>>
|
|||
|
|
|||
|
<\body>
|
|||
|
<\expand|tmdoc-title>
|
|||
|
Utilizzare sessioni di Maxima in <TeXmacs>
|
|||
|
</expand>
|
|||
|
|
|||
|
<name|Maxima> <20> un popolare sistema di computer algebra. Si pu<70> scaricare
|
|||
|
le distribuzioni pi<70> aggiornate dei codici sorgenti e binari da
|
|||
|
|
|||
|
<\verbatim>
|
|||
|
\ \ \ \ http://maxima.sf.net
|
|||
|
</verbatim>
|
|||
|
|
|||
|
La procedura di installazione dai sorgenti <20> ancora piuttosto instabile,
|
|||
|
pertanto raccomandiamo di usare le distribuzioni binarie o i pacchetti rpm.
|
|||
|
Qui di seguito <20> riportata un esempio di sessione, che si inizia usando
|
|||
|
<apply|menu|Insert|Session|Maxima>:
|
|||
|
|
|||
|
<\session|maxima|default>
|
|||
|
<\output>
|
|||
|
GCL (GNU Common Lisp) \ Version(2.4.4) <20>g<EFBFBD>@ \ 2<><32> 17 15:25:31 CST 2003
|
|||
|
|
|||
|
Licensed under GNU Library General Public License
|
|||
|
|
|||
|
Contains Enhancements by W. Schelter
|
|||
|
|
|||
|
Maxima 5.9.0 http://maxima.sourceforge.net
|
|||
|
|
|||
|
Distributed under the GNU Public License. See the file COPYING.
|
|||
|
|
|||
|
Dedicated to the memory of William Schelter.
|
|||
|
|
|||
|
This is a development version of Maxima. The function bug_report()
|
|||
|
|
|||
|
provides bug reporting information.
|
|||
|
|
|||
|
\;
|
|||
|
</output>
|
|||
|
|
|||
|
<\input|<\with|color|red>
|
|||
|
(C1) <with|color|black|>
|
|||
|
</with>>
|
|||
|
f(x):=x+sin(x)
|
|||
|
</input>
|
|||
|
|
|||
|
<\output>
|
|||
|
<\with|mode|math>
|
|||
|
<with|formula style|true|<with|mode|text|font
|
|||
|
family|tt|color|red|(D1) <with|color|black|>>f<left|(>x<right|)>:=x+sin
|
|||
|
x>
|
|||
|
</with>
|
|||
|
|
|||
|
\;
|
|||
|
</output>
|
|||
|
|
|||
|
<\input|<\with|color|red>
|
|||
|
(C2) <with|color|black|>
|
|||
|
</with>>
|
|||
|
diff(f(x),x)
|
|||
|
</input>
|
|||
|
|
|||
|
<\output>
|
|||
|
<\with|mode|math>
|
|||
|
<with|formula style|true|<with|mode|text|font
|
|||
|
family|tt|color|red|(D2) <with|color|black|>>cos x+1>
|
|||
|
</with>
|
|||
|
|
|||
|
\;
|
|||
|
</output>
|
|||
|
|
|||
|
<\input|<\with|color|red>
|
|||
|
(C3) <with|color|black|>
|
|||
|
</with>>
|
|||
|
integrate(f(x),x)
|
|||
|
</input>
|
|||
|
|
|||
|
<\output>
|
|||
|
<\with|mode|math>
|
|||
|
<with|formula style|true|<with|mode|text|font
|
|||
|
family|tt|color|red|(D3) <with|color|black|>><frac|x<rsup|2>|2>-cos
|
|||
|
x>
|
|||
|
</with>
|
|||
|
|
|||
|
\;
|
|||
|
</output>
|
|||
|
|
|||
|
<\input|<\with|color|red>
|
|||
|
(C4) <with|color|black|>
|
|||
|
</with>>
|
|||
|
plot2d(f(x),[x,-10,10]);
|
|||
|
</input>
|
|||
|
|
|||
|
<\output>
|
|||
|
<\with|mode|math>
|
|||
|
<with|formula style|true|<with|mode|text|font
|
|||
|
family|tt|color|red|(D4) <with|color|black|>>0>
|
|||
|
</with>
|
|||
|
|
|||
|
\;
|
|||
|
</output>
|
|||
|
|
|||
|
<\input|<\with|color|red>
|
|||
|
(C5) <with|color|black|>
|
|||
|
</with>>
|
|||
|
\;
|
|||
|
</input>
|
|||
|
</session>
|
|||
|
|
|||
|
Il grafico prodotto in <verbatim|<with|color|red|(C4)>> viene visualizzato
|
|||
|
in una finestra popup, al di fuori del foglio di lavoro. Per inserire il
|
|||
|
grafico nel proprio documento <TeXmacs>, si deve salvarlo come file
|
|||
|
postscript o catturare l'immagine e usare <apply|menu|Insert|Image>:
|
|||
|
|
|||
|
<\expand|big-figure>
|
|||
|
<postscript|<tuple|<raw_data|%!PS-Adobe-3.0 EPSF-3.0\n%%Creator: GIMP
|
|||
|
PostScript file plugin V 1.12 by Peter Kirchgessner\n%%Title:
|
|||
|
/home/cchuang/3.eps\n%%CreationDate: Thu Jul 10 06:51:35
|
|||
|
2003\n%%DocumentData: Clean7Bit\n%%LanguageLevel: 2\n%%Pages:
|
|||
|
1\n%%BoundingBox: 14 14 533 547\n%%EndComments\n%%BeginProlog\n% Use own
|
|||
|
dictionary to avoid conflicts\n10 dict begin\n%%EndProlog\n%%Page: 1 1\n%
|
|||
|
Translate for offset\n14.173228 14.173228 translate\n% Translate to begin
|
|||
|
of first scanline\n0.000000 532.000000 translate\n518.000000 -532.000000
|
|||
|
scale\n% Image geometry\n518 532 8\n% Transformation matrix\n[ 518 0 0
|
|||
|
532 0 0 ]\n% Strings to hold RGB-samples per scanline\n/rstr 518 string
|
|||
|
def\n/gstr 518 string def\n/bstr 518 string def\n{currentfile
|
|||
|
/ASCII85Decode filter /RunLengthDecode filter rstr readstring
|
|||
|
pop}\n{currentfile /ASCII85Decode filter /RunLengthDecode filter gstr
|
|||
|
readstring pop}\n{currentfile /ASCII85Decode filter /RunLengthDecode
|
|||
|
filter bstr readstring pop}\ntrue 3\n%%BeginData: \ \ \ \ \ \ \ 68492
|
|||
|
ASCII Bytes\ncolorimage\nrH!MiJH16$JcPdkJ,~\>\nrH!MiJH16$JcPdkJ,~\>\nrH!MiJH16$JcPdkJ,~\>\ns3UcGoD\\g*JcC\<$JcEjl!5H_Wrr\<*"d!u~\>\ns3UcGoD\\g*JcC\<$JcEjl!5H_Wrr\<*"d!u~\>\ns3UcGoD\\g*JcC\<$JcEjl!5H_Wrr\<*"d!u~\>\n!RLi9eUc;&eq)DoecEP:nC@QinC@Qio%!d?rr@Q~\>\n!RLi9eUc;&eq)DoecEP:nC@QinC@Qio%!d?rr@Q~\>\n!RLi9eUc;&eq)DoecEP:nC@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cEXn*`K."0\n[[m3\>"JrlZ^SpkP$-o``cd/c.cF'PEcNKZI\\$)t5cN'@2cNL&\\cEX\\ScN0`\\p\<O&7`O)YVcd04s\nR/YDN]8E`)X0BprY.i2hVU*Sa_ToElcbQR,SBn^jJ^8nnqTf2Wcg]6[ci22iKDEdmKDj*qchu)c\nKDWpprr@Q~\>\n!\<E/uc2!"ic2Golc+fd\>c,H@Qc3p)acG$7&^nSfe_jUJK!1\<]0!MIL4c4%L_`Po`_cH`E!cHa]0\nc30cFaNhp%c3h[o_9U?DVU!K(V\>/=;R**YMc2a72c2k_ZrltM2rltP;a7dd]W3+14\\c'eRR/P;?\nR*O!lVp\<2WcHa;'cG6CXc3K`^c(3(@agZiHJ^4):!PcqLc2Z)gblEClblECpc2Z)ec23.jblRhE\nJ,~\>\n!\<E/uc2!"ic2Golc+fd\>c,H@Qc3p)acG$7&^nSfe_jUJK!1\<]0!MIL4c4%L_`Po`_cH`E!cHa]0\nc30cFaNhp%c3h[o_9U?DVU!K(V\>/=;R**YMc2a72c2k_ZrltM2rltP;a7dd]W3+14\\c'eRR/P;?\nR*O!lVp\<2WcHa;'cG6CXc3K`^c(3(@agZiHJ^4):!PcqLc2Z)gblEClblECpc2
|
|||
|
</expand|Un esempio di grafico prodotto da <name|Maxima>.>
|
|||
|
|
|||
|
<apply|tmdoc-copyright|2003|Chu-Ching Huang, Lucia Gecchelin>
|
|||
|
|
|||
|
<expand|tmdoc-license|Permission is granted to copy, distribute and/or
|
|||
|
modify this document under the terms of the GNU Free Documentation License,
|
|||
|
Version 1.1 or any later version published by the Free Software Foundation;
|
|||
|
with no Invariant Sections, with no Front-Cover Texts, and with no
|
|||
|
Back-Cover Texts. A copy of the license is included in the section entitled
|
|||
|
"GNU Free Documentation License".>
|
|||
|
</body>
|
|||
|
|
|||
|
<\initial>
|
|||
|
<\collection>
|
|||
|
<associate|paragraph width|150mm>
|
|||
|
<associate|odd page margin|30mm>
|
|||
|
<associate|page right margin|30mm>
|
|||
|
<associate|page top margin|30mm>
|
|||
|
<associate|reduction page right margin|25mm>
|
|||
|
<associate|page type|a4>
|
|||
|
<associate|reduction page bottom margin|15mm>
|
|||
|
<associate|even page margin|30mm>
|
|||
|
<associate|reduction page left margin|25mm>
|
|||
|
<associate|page bottom margin|30mm>
|
|||
|
<associate|reduction page top margin|15mm>
|
|||
|
<associate|language|italian>
|
|||
|
</collection>
|
|||
|
</initial>
|
|||
|
|
|||
|
<\references>
|
|||
|
<\collection>
|
|||
|
<associate|toc-10|<tuple|8.2|?>>
|
|||
|
<associate|toc-11|<tuple|8.3|?>>
|
|||
|
<associate|gly-1|<tuple|1|?>>
|
|||
|
<associate|idx-1|<tuple|<uninit>|?>>
|
|||
|
<associate|idx-2|<tuple|<uninit>|?>>
|
|||
|
<associate|gly-2|<tuple|2|?>>
|
|||
|
<associate|toc-12|<tuple|8.4|?>>
|
|||
|
<associate|gly-3|<tuple|3|?>>
|
|||
|
<associate|toc-13|<tuple|8.5|?>>
|
|||
|
<associate|idx-3|<tuple|3|?>>
|
|||
|
<associate|gly-4|<tuple|4|?>>
|
|||
|
<associate|toc-14|<tuple|8.6|?>>
|
|||
|
<associate|idx-4|<tuple|7|?>>
|
|||
|
<associate|gly-5|<tuple|5|?>>
|
|||
|
<associate|toc-15|<tuple|8.7|?>>
|
|||
|
<associate|idx-5|<tuple|8|?>>
|
|||
|
<associate|gly-6|<tuple|6|?>>
|
|||
|
<associate|toc-16|<tuple|8.8|?>>
|
|||
|
<associate|gly-7|<tuple|7|?>>
|
|||
|
<associate|gly-8|<tuple|8|?>>
|
|||
|
<associate|gly-9|<tuple|9|?>>
|
|||
|
<associate|toc-1|<tuple|1|?>>
|
|||
|
<associate|toc-2|<tuple|2|?>>
|
|||
|
<associate|toc-3|<tuple|3|?>>
|
|||
|
<associate|toc-4|<tuple|4|?>>
|
|||
|
<associate|toc-5|<tuple|5|?>>
|
|||
|
<associate|toc-6|<tuple|6|?>>
|
|||
|
<associate|toc-7|<tuple|7|?>>
|
|||
|
<associate|toc-8|<tuple|8|?>>
|
|||
|
<associate|toc-9|<tuple|8.1|?>>
|
|||
|
</collection>
|
|||
|
</references>
|
|||
|
|
|||
|
<\auxiliary>
|
|||
|
<\collection>
|
|||
|
<\associate|figure>
|
|||
|
<tuple|normal|A sample graph produced by <with|font
|
|||
|
shape|<quote|small-caps>|Maxima>.|<pageref|gly-1>>
|
|||
|
</associate>
|
|||
|
<\associate|idx>
|
|||
|
<tuple|<tuple|<with|font family|<quote|ss>|Testo>|<with|font
|
|||
|
family|<quote|ss>|Sessione>|<with|font
|
|||
|
family|<quote|ss>|Maxima>>|<pageref|idx-1>>
|
|||
|
|
|||
|
<tuple|<tuple|<with|font family|<quote|ss>|Inserisci>|<with|font
|
|||
|
family|<quote|ss>|Immagine>>|<pageref|idx-2>>
|
|||
|
</associate>
|
|||
|
</collection>
|
|||
|
</auxiliary>
|