| 1 | <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> |
| 2 | Normally you interact with the calculator in the <span class="guilabel">Console</span> tab of the |
| 3 | work area. If you are running the text only version then the console |
| 4 | will be the only thing that is available to you. If you want to use |
| 5 | <span class="application">Genius Mathematics Tool</span> as a calculator only, just type in your expression in the console, it |
| 6 | will be evaluated, and the returned value will be printed. |
| 7 | </p><p> |
| 8 | To evaluate an expression, type it into the <span class="guilabel">Console</span> work area and press enter. |
| 9 | Expressions are written in a |
| 10 | language called GEL. The most simple GEL expressions just looks like |
| 11 | mathematics. For example |
| 12 | </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> |
| 13 | </pre><p> |
| 14 | or |
| 15 | </p><pre class="screen"><code class="prompt">genius> </code><strong class="userinput"><code>62734 + 812634 + 77^4 mod 5</code></strong> |
| 16 | </pre><p> |
| 17 | or |
| 18 | </p><pre class="screen"><code class="prompt">genius> </code><strong class="userinput"><code>| sin(37) - e^7 |</code></strong> |
| 19 | </pre><p> |
| 20 | or |
| 21 | </p><pre class="screen"><code class="prompt">genius> </code><strong class="userinput"><code>sum n=1 to 70 do 1/n</code></strong> |
| 22 | </pre><p> |
| 23 | (Last is the harmonic sum from 1 to 70) |
| 24 | </p><p> |
| 25 | To get a list of functions and commands, type: |
| 26 | </p><pre class="screen"><code class="prompt">genius> </code><strong class="userinput"><code>help</code></strong> |
| 27 | </pre><p> |
| 28 | If you wish to get more help on a specific function, type: |
| 29 | </p><pre class="screen"><code class="prompt">genius> </code><strong class="userinput"><code>help FunctionName</code></strong> |
| 30 | </pre><p> |
| 31 | To view this manual, type: |
| 32 | </p><pre class="screen"><code class="prompt">genius> </code><strong class="userinput"><code>manual</code></strong> |
| 33 | </pre><p> |
| 34 | </p><p> |
| 35 | Suppose you have previously saved some GEL commands as a program to a file and |
| 36 | you now want to execute them. |
| 37 | To load this program from the file <code class="filename">path/to/program.gel</code>, |
| 38 | type |
| 39 | </p><pre class="screen"><code class="prompt">genius> </code><strong class="userinput"><code>load path/to/program.gel</code></strong> |
| 40 | </pre><p> |
| 41 | <span class="application">Genius Mathematics Tool</span> keeps track of the current directory. |
| 42 | To list files in the current directory type <span class="command"><strong>ls</strong></span>, to change directory |
| 43 | do <strong class="userinput"><code>cd directory</code></strong> as in the UNIX command shell. |
| 44 | </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> |