Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Differences from vanilla Eigenmath

Gabriel edited this page Aug 20, 2014 · 2 revisions

This page documents commands and symbols that are not common to standard command-line Eigenmath builds, as well as other differences in the Eigenmath core.

Besides the record command (which is not really a "core" command, but a console-specific command, which means it doesn't work inside a script, for example), this port of Eigenmath includes two simple additional commands which do nothing but return a integer value:

  • random: returns a pseudo-random integer between 0 and 2^31-1 (2147483647);
  • finetiming: returns a signed integer directly from a Prizm's register at 0xA44D00D8, which, according to Simon Lothar, counts about 50000 times per second, or 20µS per tick. Useful to determining how much time expressions take to compute.

This port also checks the values of some user symbols, all starting with prizmUI, to change the UI look and behavior:

  • prizmUIhandleKeys
  • prizmUIfkey1label
  • prizmUIfkey2label
  • prizmUIfkey3label
  • prizmUIfkey4label
  • prizmUIfkey6label
  • prizmUIkeyHandler (is called by the UI under certain circumstances)

Additionally, the following symbols, present in other Eigenmath builds, are modified by the UI under certain circumstances:

  • xrange
  • yrange

Output is pretty-printed when possible:

  • fractions;
  • roots (that is, anything with exponent 1/n where n is an integer >= 1);
  • exponents;
  • parentheses (made tall enough to accomodate the content);
  • Symbols named as Greek letters, are printed as Greek letters ("pi" shows as π, "Gamma" shows as Γ, "gamma" shows as γ, "beta" as β, and so on).

Floating-point output shows with 10 significant digits (same as Casio's math system) instead of the usual 6.

A couple of memory leaks in the Eigenmath core were fixed with the help of the original author, George Weigt.

There should be no other differences, regarding the Eigenmath core, between this port and the command-line version of Eigenmath last available on SourceForge.

Clone this wiki locally