1
0
Fork 0
doc/plugins/maxima/maxima-main.en.tm

135 lines
139 KiB
Plaintext
Raw Normal View History

2011-08-28 16:02:22 +08:00
<TeXmacs|1.0.4.7>
<style|<tuple|tmdoc|maxima>>
<\body>
<\tmdoc-title>
Using Maxima sessions inside <TeXmacs>
</tmdoc-title>
<name|Maxima> is a popular general purpose computer algebra system. You can
download the newest source or binary distribution from
<\verbatim>
\ \ \ \ http://maxima.sf.net
</verbatim>
The installation procedure from source is still quite unstable, so we
recommend you to use the binary distributions or the rpm.
Here follows a sample session, which was started using
<menu|Insert|Session|Maxima>. A nice <hlink|tutorial|maxima-tutorial/maxima-tutorial.en.tm>
by Andrey Grozin is also available.
<with|prog-language|maxima|prog-session|default|<\session>
<\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|math-display|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|math-display|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|math-display|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|math-display|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>>
The result graph of <verbatim|<with|color|red|(C4)>> is shown in a popup
window, which is not yet embedded into the worksheet. You should save it as
a postscript file or capture the image and use <menu|Insert|Image> in order
to insert the graph into your document:
<\big-figure>
<postscript|<tuple|<#252150532D41646F62652D332E3020455053462D332E300A252543726561746F723A2047494D5020506F73745363726970742066696C6520706C7567696E205620312E3132206279205065746572204B69726368676573736E65720A25255469746C653A202F686F6D652F63636875616E672F332E6570730A25254372656174696F6E446174653A20546875204A756C2031302030363A35313A333520323030330A2525446F63756D656E74446174613A20436C65616E374269740A25254C616E67756167654C6576656C3A20320A252550616765733A20310A2525426F756E64696E67426F783A20313420313420353333203534370A2525456E64436F6D6D656E74730A2525426567696E50726F6C6F670A2520557365206F776E2064696374696F6E61727920746F2061766F696420636F6E666C696374730A3130206469637420626567696E0A2525456E6450726F6C6F670A2525506167653A203120310A25205472616E736C61746520666F72206F66667365740A31342E3137333232382031342E313733323238207472616E736C6174650A25205472616E736C61746520746F20626567696E206F66206669727374207363616E6C696E650A302E303030303030203533322E303030303030207472616E736C6174650A3531382E303030303030202D3533322E303030303030207363616C650A2520496D6167652067656F6D657472790A3531382035333220380A25205472616E73666F726D6174696F6E206D61747269780A5B20353138203020302035333220302030205D0A2520537472696E677320746F20686F6C64205247422D73616D706C657320706572207363616E6C696E650A2F727374722035313820737472696E67206465660A2F677374722035313820737472696E67206465660A2F627374722035313820737472696E67206465660A7B63757272656E7466696C65202F415343494938354465636F64652066696C746572202F52756E4C656E6774684465636F64652066696C74657220727374722072656164737472696E6720706F707D0A7B63757272656E7466696C65202F415343494938354465636F64652066696C746572202F52756E4C656E6774684465636F64652066696C74657220677374722072656164737472696E6720706F707D0A7B63757272656E7466696C65202F415343494938354465636F64652066696C746572202F52756E4C656E6774684465636F64652066696C74657220627374722072656164737472696E6720706F707D0A7472756520330A2525426567696E446174613A202020202020202036383439322041534349492042797465730A636F6C6F72696D6167650A7248214D694A483136244A6350646B4A2C7E3E0A7248214D694A483136244A6350646B4A2C7E3E0A7248214D694A483136244A6350646B4A2C7E3E0A73335563476F445C672A4A63433C244A63456A6C2135485F5772723C2A226421757E3E0A73335563476F445C672A4A63433C244A63456A6C2135485F5772723C2A226421757E3E0A73335563476F445C672A4A63433C244A63456A6C2135485F5772723C2A226421757E3E0A21524C69396555633B26657129446F656345503A6E434051696E434051696F2521643F727240517E3E0A21524C69396555633B26657129446F656345503A6E434051696E434051696F2521643F727240517E3E0A21524C69396555633B26657129446F656345503A6E434051696E434051696F2521643F727240517E3E0A21524C6939653A482F24655563386D65482A47386E43374B676E43374B676E5E49583F2121254E7E3E0A21524C6939653A482F24655563386D65482A47386E43374B676E43374B676E5E49583F2121254E7E3E0A21524C6939653A482F24655563386D65482A47386E43374B676E43374B676E5E49583F2121254E7E3E0A213C452F6864742D2322653A482C6B652C643E366E432E45656E432E45656E5E494F3C2121254E7E3E0A213C452F6864742D2322653A482C6B652C643E366E432E45656E432E45656E5E494F3C2121254E7E3E0A213C452F6864742D2322653A482C6B652C643E366E432E45656E432E45656E5E494F3C2121254E7E3E0A213C452F686466255672642958482B64664965436F40215D616B4C3046526D46292D5E61336A62342137284468213743656D21374C656F213673635773334C6570642F4D475C6466405B450A64742D213664664935346E43253F637252314C6F72366B566F7252315E757252315E7572523160472121254E7E3E0A213C452F686466255672642958482B64664965436F40215D616B4C3046526D46292D5E61336A62342137284468213743656D21374C656F213673635773334C6570642F4D475C6466405B450A64742D213664664935346E43253F637252314C6F72366B566F7252315E757252315E7572523160472121254E7E3E0A213C452F686466255672642958482B64664965436F40215D616B4C3046526D46292D5E61336A62342137284468213743656D21374C656F213673635773334C6570642F4D475C6466405B450A64742D213664664935346E43253F637252314C6F72366B566F7252315E757252315E7572523160472121254E7E3E0A213C453021644A6E6A72644A6E6A74644A6850735830302B3654443F6E3A5E346A752D644B373161532C435C386267355F2A214B595873644B4871645D722F403C644B37616156746E614A0A602F4D2537592C3955705E54336A73644B2E533C705830445354242A35345C5C6365436069415B5A216D6440364A5E542B746C643E674B6464595A6164662E59674B44
</big-figure|A sample graph produced by <name|Maxima>.>
<tmdoc-copyright|2003|Chu-Ching Huang>
<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|language|english>
</collection>
</initial>