1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Chapter 3. Basic Usage</title><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="index.html" title="Genius Manual"><link rel="up" href="index.html" title="Genius Manual"><link rel="prev" href="ch02s02.html" title="When You Start Genius"><link rel="next" href="ch03s02.html" title="To Create a New Program"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 3. Basic Usage</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch02s02.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="ch03s02.html">Next</a></td></tr></table><hr></div><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a name="genius-usage"></a>Chapter 3. Basic Usage</h1></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl class="toc"><dt><span class="sect1"><a href="ch03.html#genius-usage-workarea">Using the Work Area</a></span></dt><dt><span class="sect1"><a href="ch03s02.html">To Create a New Program </a></span></dt><dt><span class="sect1"><a href="ch03s03.html">To Open and Run a Program </a></span></dt></dl></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="genius-usage-workarea"></a>Using the Work Area</h2></div></div></div><p>
Normally you interact with the calculator in the <span class="guilabel">Console</span> tab of the
work area. If you are running the text only version then the console
will be the only thing that is available to you. If you want to use
<span class="application">Genius Mathematics Tool</span> as a calculator only, just type in your expression in the console, it
will be evaluated, and the returned value will be printed.
</p><p>
To evaluate an expression, type it into the <span class="guilabel">Console</span> work area and press enter.
Expressions are written in a
language called GEL. The most simple GEL expressions just looks like
mathematics. For example
</p><pre class="screen"><code class="prompt">genius> </code><strong class="userinput"><code>30*70 + 67^3.0 + ln(7) * (88.8/100)</code></strong>
</pre><p>
or
</p><pre class="screen"><code class="prompt">genius> </code><strong class="userinput"><code>62734 + 812634 + 77^4 mod 5</code></strong>
</pre><p>
or
</p><pre class="screen"><code class="prompt">genius> </code><strong class="userinput"><code>| sin(37) - e^7 |</code></strong>
</pre><p>
or
</p><pre class="screen"><code class="prompt">genius> </code><strong class="userinput"><code>sum n=1 to 70 do 1/n</code></strong>
</pre><p>
(Last is the harmonic sum from 1 to 70)
</p><p>
To get a list of functions and commands, type:
</p><pre class="screen"><code class="prompt">genius> </code><strong class="userinput"><code>help</code></strong>
</pre><p>
If you wish to get more help on a specific function, type:
</p><pre class="screen"><code class="prompt">genius> </code><strong class="userinput"><code>help FunctionName</code></strong>
</pre><p>
To view this manual, type:
</p><pre class="screen"><code class="prompt">genius> </code><strong class="userinput"><code>manual</code></strong>
</pre><p>
</p><p>
Suppose you have previously saved some GEL commands as a program to a file and
you now want to execute them.
To load this program from the file <code class="filename">path/to/program.gel</code>,
type
</p><pre class="screen"><code class="prompt">genius> </code><strong class="userinput"><code>load path/to/program.gel</code></strong>
</pre><p>
<span class="application">Genius Mathematics Tool</span> keeps track of the current directory.
To list files in the current directory type <span class="command"><strong>ls</strong></span>, to change directory
do <strong class="userinput"><code>cd directory</code></strong> as in the UNIX command shell.
</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch02s02.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="ch03s02.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">When You Start Genius </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> To Create a New Program </td></tr></table></div></body></html>
|