AminetAminet
Search:
84493 packages online
About
Recent
Browse
Search
Upload
Setup
Services

dev/mui/MCC_MathString.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:The string gadget with a PhD in Mathematics, MUI Custom Class
Author:Vincenzo Gervasi (gervasi at di.unipi.it)
Uploader:Vincenzo Gervasi (gervasi di unipi it)
Type:dev/mui
Version:1.5
Requires:MUI 3.2+
Architecture:m68k-amigaos
Date:1996-09-11
Download:http://aminet.net/dev/mui/MCC_MathString.lha - View contents
Readme:http://aminet.net/dev/mui/MCC_MathString.readme
Downloads:1001

MathString is a subclass of the String class that adds mathematical
abilities to its superclass.

A MathString object can accept complex floating-point expressions,
including algebraic operators, functions, measuring units, and
return to the application only the value of the expression, giving
the user the freedom to express a value as (S)HE feels it's easier,
without burdening the application. For most things, handling
a MathString object is as easy as a traditional String object via
the MUIA_String_Integer tag.

The language accepted by a MathString object is as follows:

id 	::= 1-to-4-character (like IFF's IDs)
num 	::= signed floating point, simple or exponential notation
mnum	::= num
	  | num id              /* id is measuring unit */
mexp	::= mnum
	  | mexp*mnum
	  | mexp/mnum
	  | (aexp)
	  | id(aexp)            /* id is function name  */
	  | id                  /* id is a constant     */
aexp	::= mexp
	  | aexp+mexp
	  | aexp-mexp

Spaces are not significant, except between digits, in an id, or
between an id and a "(".

Some example:

	3.4 m / (1e10+3Km)
	2*sin(30°)
	1 in - 12 pt
	cos(pi)/(1/3)

MathString supports custom measuring units, custom functions,
custom constants, single- or double-precision IEEE and FFP modes,
automatic error	handling, several built-in measuring systems
and more.


DISTRIBUTION

MathString is (C) 1996 V. Gervasi, but freely distributable as long
as the following conditions are met:

1. If you use MathString in a commercial or shareware product, you
   have to send me a full (registered) package (copy) of the product,
   including any update that still uses MathString.mcc.
   Also, the text "MathString (C) 1996 V. Gervasi" should go in your
   printed documentation, if any.

2. If you use MathString in a PD product, you only have to put the text
   "MathString (C) 1996 V. Gervasi" in your "About" window OR in the same
   place where the "MUI (C) Stefan Stuntz" text is OR in the documentation.

In any case, I would appreciate an e-mail announcing the product.
Provided that the above mentioned conditions are met, you can distribute
MathString with your product, having care not to overwrite any later
MathString.mcc the user could have already installed.


AUTHOR

Vincenzo Gervasi			gervasi at di.unipi.it
Dipartimento di Informatica
Corso Italia, 40
I-56125 PISA
Italy


Contents of dev/mui/MCC_MathString.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                  833    1567  53.2% -lh5- 5ac7 Aug 27  1996 MCC_MathString.info
[generic]                  653    1192  54.8% -lh5- d7dd Aug  4  1996 MCC_MathString/Demos.info
[generic]                 9208   14556  63.3% -lh5- 7f93 Sep  8  1996 MCC_MathString/Demos/MathString-Demo
[generic]                  812    1663  48.8% -lh5- 2c2e Aug  4  1996 MCC_MathString/Demos/MathString-Demo.info
[generic]                 8412   24430  34.4% -lh5- 2748 Sep  8  1996 MCC_MathString/Developer/Autodocs/MCC_MathString.doc
[generic]                 1470    3740  39.3% -lh5- ba12 Sep  8  1996 MCC_MathString/Developer/C/Examples/MathString-Demo.c
[generic]                 1476    4331  34.1% -lh5- e414 Jul 19  1996 MCC_MathString/Developer/C/Include/MUI/MathString_mcc.h
[generic]                  773    1192  64.8% -lh5- 1ad7 Aug  4  1996 MCC_MathString/Docs.info
[generic]                  611    1144  53.4% -lh5- 880f Aug  4  1996 MCC_MathString/Docs/English.info
[generic]                 1614    3430  47.1% -lh5- ee4b Sep  8  1996 MCC_MathString/Docs/English/MathString_mcc.doc
[generic]                  506    1391  36.4% -lh5- dbdc Aug  3  1996 MCC_MathString/Docs/English/MathString_mcc.doc.info
[generic]                 2406    5548  43.4% -lh5- 7884 Sep  8  1996 MCC_MathString/Docs/English/MathString_mcc.guide
[generic]                  676    1817  37.2% -lh5- 06b9 Aug  3  1996 MCC_MathString/Docs/English/MathString_mcc.guide.info
[generic]                 8188   14068  58.2% -lh5- 6e12 Sep  8  1996 MCC_MathString/Libs/MUI/MathString.mcc
[generic]                18280   92120  19.8% -lh5- 3231 Sep  8  1996 MCC_MathString/MCC-Install
[generic]                 1533    2582  59.4% -lh5- 749f Sep  8  1996 MCC_MathString/MCC-Install.info
[generic]                 1253    2529  49.5% -lh5- d70e Sep  1  1996 MCC_MathString/MCC_MathString.readme
[generic]                  506    1391  36.4% -lh5- 6596 Aug  4  1996 MCC_MathString/MCC_MathString.readme.info
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        18 files   59210  178691  33.1%            Sep 11  1996

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>