public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Scott Fraser <saf104@ukonline.co.uk>
To: gsl-discuss@sources.redhat.com
Subject: Re: String<->function code
Date: Mon, 16 Sep 2002 06:53:00 -0000	[thread overview]
Message-ID: <1032174197.1133.7.camel@dragon> (raw)


>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.

The problem with the different types can (hopefully!) be overcome using
operator overloading in C++, although I know that's not to everyone's
taste.  I'm hoping for this.

A couple of weeks ago I mentioned that I was working on an interpreter
for functions similar to maple, using GSL.  It stalled for a bit, but
the parser is now written and works with operator precedence for
everything except complex numbers and vectors/matrices, although they
should not be too difficult to apply.

As for functions, currently I've implemented polynomial solving and some
statistic's functions which give me enough to test the parser with.

Scott


             reply	other threads:[~2002-09-16 10:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-16  6:53 Scott Fraser [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-09-12  1:50 string <-> function code Dave Benson
2002-09-15 15:44 ` Dave Benson
2002-09-16  3:06 ` Brian Gough

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1032174197.1133.7.camel@dragon \
    --to=saf104@ukonline.co.uk \
    --cc=gsl-discuss@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).