mathomatic/doc/rmath.1.html

153 lines
6.2 KiB
HTML

<!-- manual page source format generated by PolyglotMan v3.2, -->
<!-- available at http://polyglotman.sourceforge.net/ -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="generator" content=
"HTML Tidy for Linux (vers 25 March 2009), see www.w3.org">
<title>RMATH(1) manual page</title>
</head>
<body bgcolor='white'>
<a href='#toc'>Table of Contents</a>
<h2><a name='sect0' href='#toc0' id="sect0">Name</a></h2>rmath -
a computer algebra system with functions and readline<br>
matho - a computer algebra system with functions
<h2><a name='sect1' href='#toc1' id=
"sect1">Synopsis</a></h2><b>rmath</b> [ input_files ]<br>
<b>matho</b> [ input_files ]
<h2><a name='sect2' href='#toc2' id=
"sect2">Description</a></h2>Mathomatic is a general-purpose
computer algebra system (CAS) that can symbolically solve,
simplify, combine, and compare algebraic equations, perform
standard, complex number, modular, and polynomial arithmetic,
etc. It does some calculus and handles all elementary algebra,
except logarithms. Plotting expressions with <b>gnuplot</b> is
also supported.
<p><b>rmath</b> and <b>matho</b> are shell scripts that allow you
to use Mathomatic with input of functions like
<b>sin</b><i>(x)</i> and <b>sqrt</b><i>(x)</i> automatically
expanded to equivalent algebraic expressions by the <b>m4</b>
macro preprocessor. A matching pair of parentheses is required
around the parameters for all functions in m4 Mathomatic; m4
requires this. <b>rmath</b> also runs the <b>rlwrap</b> readline
wrapper utility if available, to provide readline input editing
support similar to that provided by <a href=
'mathomatic.1.html'><b>mathomatic</b>(1)</a> .</p>
<p><b>rmath</b> and <b>matho</b> define and enable named math
functions in Mathomatic. Most functions enabled here should be
real number, complex number, and symbolically capable. One
exception is the <b>abs</b><i>(x)</i> function, which
doesn&rsquo;t work with complex numbers, because it is defined in
Mathomatic as (((x)^2)^.5).</p>
<p>The following general functions are defined when using
<b>rmath</b> or <b>matho:</b> <b>sqrt</b><i>(x),</i>
<b>cbrt</b><i>(x),</i> <b>exp</b><i>(x),</i>
<b>pow</b><i>(x,y),</i> <b>abs</b><i>(x),</i>
<b>sgn</b><i>(x),</i> <b>factorial</b><i>(x),</i>
<b>gamma</b><i>(x),</i> <b>floor</b><i>(x),</i>
<b>ceil</b><i>(x),</i> <b>int</b><i>(x),</i> and
<b>round</b><i>(x).</i></p>
<p>The following standard trigonometric functions are defined:
<b>sin</b><i>(x),</i> <b>cos</b><i>(x),</i> <b>tan</b><i>(x),</i>
<b>cot</b><i>(x),</i> <b>sec</b><i>(x),</i> and
<b>csc</b><i>(x).</i> <b>sinc</b><i>(x)</i> is the normalized
sinc function, defined as
<b>sin</b><i>(pi*x)</i><b>/(pi*x)</b><i>.</i></p>
<p>The following standard hyperbolic trigonometric functions are
defined: <b>sinh</b><i>(x),</i> <b>cosh</b><i>(x),</i>
<b>tanh</b><i>(x),</i> <b>coth</b><i>(x),</i>
<b>sech</b><i>(x),</i> and <b>csch</b><i>(x).</i></p>
<p>The following universal constants are defined: <i>pi,</i>
<i>e,</i> <i>i</i> (the imaginary unit), <i>euler</i> (the
Euler-Mascheroni constant), <i>omega,</i> and <i>phi</i> (the
golden ratio).</p>
<h2><a name='sect3' href='#toc3' id="sect3">General</a></h2>Text
files may be specified on the shell command line that will be
automatically read in through the m4 preprocessor into
Mathomatic. After any files are read in, Mathomatic prompts for
input from the console.
<p>Mathomatic is best run from within a terminal emulator. It
uses console line input and output for the user interface. First
you type in your mathematical equations in standard algebraic
notation, then you can solve them by typing in the variable name
at the prompt, or perform operations on them with simple English
commands. Type "help" or "?" for the help command, "help
examples" to get started. If the command name is longer than 4
letters, you only need to type in the first 4 letters. Most
commands operate on the current equation by default.</p>
<p>Complete documentation is available in HTML and PDF formats;
see the local documentation directory or online at "<a href=
'http://mathomatic.org/math/doc/'>http://mathomatic.org/math/doc/</a>
" for the latest Mathomatic documentation.</p>
<h2><a name='sect4' href='#toc4' id="sect4">Files</a></h2>
<dl>
<dt><b>~/.mathomaticrc</b></dt>
<dd>Optional startup file containing Mathomatic set command
options. It should be a text file with one or more set options
per line. For example, the line "no color" will make Mathomatic
default to non-color mode, which is useful if you aren&rsquo;t
using a supported color device.</dd>
</dl>
<h2><a name='sect5' href='#toc5' id=
"sect5">Author</a></h2>Mathomatic has been written by George
Gesslein II (gesslein@mathomatic.org), with help from the
Internet community.
<h2><a name='sect6' href='#toc6' id="sect6">Reporting
Bugs</a></h2>Please report any bugs to the author or on the
Launchpad website: "<a href=
'https://launchpad.net/mathomatic'>https://launchpad.net/mathomatic</a>
".
<h2><a name='sect7' href='#toc7' id="sect7">See
Also</a></h2><a href='mathomatic.1.html'><b>mathomatic</b>(1)</a>
, <a href='matho-primes.1.html'><b>matho-primes</b>(1)</a> ,
<a href='primorial.1.html'><b>primorial</b>(1)</a> , <a href=
'matho-mult.1.html'><b>matho-mult</b>(1)</a> , <a href=
'matho-sum.1.html'><b>matho-sum</b>(1)</a> , <a href=
'matho-pascal.1.html'><b>matho-pascal</b>(1)</a> , <a href=
'matho-sumsq.1.html'><b>matho-sumsq</b>(1)</a>
<hr>
<p><a name='toc' id="toc"><b>Table of Contents</b></a></p>
<ul>
<li><a name='toc0' href='#sect0' id="toc0">Name</a></li>
<li><a name='toc1' href='#sect1' id="toc1">Synopsis</a></li>
<li><a name='toc2' href='#sect2' id="toc2">Description</a></li>
<li><a name='toc3' href='#sect3' id="toc3">General</a></li>
<li><a name='toc4' href='#sect4' id="toc4">Files</a></li>
<li><a name='toc5' href='#sect5' id="toc5">Author</a></li>
<li><a name='toc6' href='#sect6' id="toc6">Reporting
Bugs</a></li>
<li><a name='toc7' href='#sect7' id="toc7">See Also</a></li>
</ul>
</body>
</html>