mirror of https://github.com/texmacs/doc.git
161 lines
82 KiB
Plaintext
161 lines
82 KiB
Plaintext
|
<TeXmacs|1.0.1.20>
|
||
|
|
||
|
<style|<tuple|tmdoc|maxima>>
|
||
|
|
||
|
<\body>
|
||
|
<\expand|tmdoc-title>
|
||
|
Using Yacas sessions inside <TeXmacs>
|
||
|
</expand>
|
||
|
|
||
|
As its name indicates, <name|Yacas> is Yet Another CAS, which can be
|
||
|
downloaded from
|
||
|
|
||
|
<\verbatim>
|
||
|
\ \ \ \ http://www.xs4all.nl/~apinkus/yacas.html
|
||
|
</verbatim>
|
||
|
|
||
|
You may start a <name|Yacas> session using
|
||
|
<apply|menu|Insert|Session|Yacas>. Here follows a short demo:
|
||
|
|
||
|
<\session|yacas|defau>
|
||
|
<\output>
|
||
|
\;
|
||
|
</output>
|
||
|
|
||
|
<\input|yacas] >
|
||
|
f(x):= x+Sin(x);
|
||
|
</input>
|
||
|
|
||
|
<\output>
|
||
|
<\with|mode|math>
|
||
|
<with|math font family|rm|True>
|
||
|
</with>
|
||
|
</output>
|
||
|
|
||
|
<\input|yacas] >
|
||
|
D(x) f(x);
|
||
|
</input>
|
||
|
|
||
|
<\output>
|
||
|
<\with|mode|math>
|
||
|
cos x+1
|
||
|
</with>
|
||
|
</output>
|
||
|
|
||
|
<\input|yacas] >
|
||
|
Integrate(x,0,Pi) f(x);
|
||
|
</input>
|
||
|
|
||
|
<\output>
|
||
|
<\with|mode|math>
|
||
|
<frac|\<pi\><rsup|2>|2>+2
|
||
|
</with>
|
||
|
</output>
|
||
|
|
||
|
<\input|yacas] >
|
||
|
GnuPlot(-10,10,80,f(x));
|
||
|
</input>
|
||
|
|
||
|
<\output>
|
||
|
<\with|mode|math>
|
||
|
<with|math font family|rm|True>
|
||
|
</with>
|
||
|
</output>
|
||
|
|
||
|
<\input|yacas] >
|
||
|
\;
|
||
|
</input>
|
||
|
</session>
|
||
|
|
||
|
The produced graph in the last command is shown in another window. Using
|
||
|
the ``snapshot'' of the <name|Gimp> you can save the graph as an image and
|
||
|
embed into the worksheet using <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/4.eps\n%%CreationDate: Thu Jul 10
|
||
|
07:21:51 2003\n%%DocumentData: Clean7Bit\n%%LanguageLevel: 2\n%%Pages:
|
||
|
1\n%%BoundingBox: 14 14 625 485\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 470.000000 translate\n610.000000 -470.000000
|
||
|
scale\n% Image geometry\n610 470 8\n% Transformation matrix\n[ 610 0 0 470
|
||
|
0 0 ]\n% Strings to hold RGB-samples per scanline\n/rstr 610 string
|
||
|
def\n/gstr 610 string def\n/bstr 610 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: \ \ \ \ \ \ \ 71894 ASCII
|
||
|
Bytes\ncolorimage\nrVqEKJH16$JH2PIrr7K~\>\nrVqEKJH16$JH2PIrr7K~\>\nrVqEKJH16$JH2PIrr7K~\>\ns3UcGoD\\g*JcC\<$JcC\<$mJd1$bQ%SB!WUMs~\>\ns3UcGoD\\g*JcC\<$JcC\<$mJd1$bQ%SB!WUMs~\>\ns3UcGoD\\g*JcC\<$JcC\<$mJd1$bQ%SB!WUMs~\>\n!RLi9eUc;&eq)D'f'V#h^Xho)s46\\is46bks8W*!J,~\>\n!RLi9eUc;&eq)D'f'V#h^Xho)s46\\is46bks8W*!J,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Y~\>\n!\<E/rb5[+ib5TR3];E-\<V9?Z3^\<\<LA`lkWUW2c0+bGM&DUp%t`\\u^^p^WXg&Xh(@BrlYDMR]3NB\nbCRifbFcrY^WZW!pOiFes3(Da!/(*i!/(6ms3(DarIb-mrIb'k!WN.M~\>\n!\<E/rb5[+ib5TR3];E-\<V9?Z3^\<\<LA`lkWUW2c0+bGM&DUp%t`\\u^^p^WXg&Xh(@BrlYDMR]3NB\nbCRifbFcrY^WZW!pOiFes3(Da!/(*i!/(6ms3(DarIb-mrIb'k!WN.M~\>\n!\<E/rb5[+ib5TR3];E-\<V9?Z3^\<\<LA`lkWUW2c0+bGM&DUp%t`\\u^^p^WXg&Xh(@BrlYDMR]3NB\nbCRifbFcrY^WZW!pOiFes3(Da!/(*i!/(6ms3(DarIb-mrIb'k!WN.M~\>\n!\<E/hao'\<]`;e!ZaT0K_aoBKa`5hi!"f8iK`lcI$ao9Eaa2#gpb5]G3b(7]db+?`V^WQMsq1JUe\ns2t;^q1JUes2t;^s+C9ls+C6k!WN.M~\>\n!\<E/hao'\<]`;e!ZaT0K_aoBKa`5hi!"f8iK`lcI$ao9Eaa2#gpb5]G3b(7]db+?`V^WQMsq1JUe\ns2t;^q1JUes2t;^s+C9ls+C6k!WN.M~\>\n!\<E/hao'\<]`;e!ZaT0K_aoBKa`5hi!"f8iK`l
|
||
|
graph of <with|mode|math|x+sin x> as produced by <name|Yacas>.>
|
||
|
|
||
|
<apply|tmdoc-copyright|2003|Chu-Ching Huang>
|
||
|
|
||
|
<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|english>
|
||
|
</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|toc-12|<tuple|8.4|?>>
|
||
|
<associate|gly-2|<tuple|2|?>>
|
||
|
<associate|idx-2|<tuple|<uninit>|?>>
|
||
|
<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|toc-16|<tuple|8.8|?>>
|
||
|
<associate|gly-6|<tuple|6|?>>
|
||
|
<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||<pageref|gly-1>>
|
||
|
</associate>
|
||
|
</collection>
|
||
|
</auxiliary>
|