From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6232 invoked by alias); 15 Sep 2002 22:44:02 -0000 Mailing-List: contact gsl-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gsl-discuss-owner@sources.redhat.com Received: (qmail 6225 invoked from network); 15 Sep 2002 22:44:01 -0000 Received: from unknown (HELO blueyonder.co.uk) (195.188.53.96) by sources.redhat.com with SMTP; 15 Sep 2002 22:44:01 -0000 Received: from pcow053o.blueyonder.co.uk ([127.0.0.1]) by blueyonder.co.uk with Microsoft SMTPSVC(5.5.1877.757.75); Sun, 15 Sep 2002 23:44:00 +0100 Received: from localhost (unverified [62.30.73.82]) by pcow053o.blueyonder.co.uk (Content Technologies SMTPRS 4.2.9) with ESMTP id ; Sun, 15 Sep 2002 23:44:00 +0100 Received: by network-theory.co.uk via sendmail from stdin id (Debian Smail3.2.0.102) for daveb@ffem.org; Sun, 15 Sep 2002 23:43:47 +0100 (BST) From: Brian Gough MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-ID: <15749.3363.263107.980105@debian> Date: Mon, 16 Sep 2002 03:06:00 -0000 To: Dave Benson Cc: gsl-discuss@sources.redhat.com Subject: Re: string <-> function code In-Reply-To: <20020911093106.V7991@luca.pas.lab> References: <20020911093106.V7991@luca.pas.lab> X-SW-Source: 2002-q3/txt/msg00207.txt.bz2 Dave Benson writes: > i've been working on code which allows users to enter math > expressions at runtime for a fair while. Looks interesting, have you tried Formulc? http://www.cs.brandeis.edu/~hhelf/formu/formulc.html My goals for an ideal expression evaluator would be minimal size and dependencies, pure ANSI-C and support for standard languages & precedence (C/Fortran/..) .. complex support could be useful (for fortran) but if parameters have different types it's not so easy to pass them in safely, similar problems for matrices/vectors... beyond scalar expressions it might be better to use a scripting language.