[comp.sources.wanted] mathematical expression handler

kjartan@zig.inria.fr (Kjartan Emilson) (02/25/91)

Does anyone know of a mathematical expression handler, in
the spirit of for example regex(3) for regular expression.

What I would like the thing to do is for example take a
string:

		"tanh(0.3)+2.0*sin(3.2)-3.0"

and return its value, and be reasonably fast.  I`m sure there
must be something like that lurking somewhere, so I could spare
me the yacc hacking.

		Thanks,

				Kjartan

---------------------------------------------------------------
Kjartan Pierre Emilsson
Institut Non Lineaire de Nice
Universite de Nice Sophia Antipolis
Parc Valrose
Nice
France			e-mail: kjartan@zig.inria.fr

ts@uwasa.fi (Timo Salmi) (02/26/91)

In article <10252@mirsa.inria.fr> kjartan@zig.inria.fr (Kjartan Emilson) writes:
>Does anyone know of a mathematical expression handler, in
>the spirit of for example regex(3) for regular expression.
>
>What I would like the thing to do is for example take a
>string:
>
>		"tanh(0.3)+2.0*sin(3.2)-3.0"
>
>and return its value, and be reasonably fast.  I`m sure there
>must be something like that lurking somewhere, so I could spare
:

/pc/ts/tsfunc13.arc (for MsDos users)

TSFUNC13.ARC    Plot/calculate functions T.Salmi
Filename        Comment                             Date      Time    CRC
--------        --------------------------------    ----      ----    ---
FN.EXE          Calculator (evaluates functions)  12-28-88  15:33:36  CEBA
FNP.EXE         Plots any function                12-28-88  15:32:48  8D72
FNT.EXE         Tabulates user's function         12-28-88  15:50:52  1D41
TSFUNC.INF      Document                          06-01-89  12:43:42  2DEA
TSPROG.INF      List of PD programs from T.Salmi  05-28-89  13:10:24  F9AA
----            ------             ------  -----
0005            137693             100441   28%

The wares are available by anonymous ftp from garbo.uwasa.fi, Vaasa,
Finland, 128.214.12.37, or by using our mail server (use the latter
if, and only if you don't have anonymous ftp).  If you are not
familiar with anonymous ftp or mail servers, I am prepared to send
prerecorded instructions on request.  (If you don't get the
instructions from me within a few days, it will mean that your email
address cannot be reached by a simple email reply, and you wouldn't
be able to utilize the mail server anyway.)

...................................................................
Prof. Timo Salmi        
Moderating at garbo.uwasa.fi anonymous ftp archives 128.214.12.37
School of Business Studies, University of Vaasa, SF-65101, Finland
Internet: ts@chyde.uwasa.fi Funet: gado::salmi Bitnet: salmi@finfun

Dan_Jacobson@ATT.COM (02/26/91)

In article <10252@mirsa.inria.fr> kjartan@zig.inria.fr (Kjartan Emilson) writes:

>What I would like the thing to do is for example take a
>string:
>
>		"tanh(0.3)+2.0*sin(3.2)-3.0"
>
>and return its value, and be reasonably fast.

I bet daveg@csvax.cs.caltech.edu's GNU Emacs calc program [has 300
page manual] could help somehow ... I think it's ftp-able from that
machine, or e-mail him.
-- 
Dan_Jacobson@ATT.COM  Naperville IL USA  +1 708-979-6364