Josef Eschgfaeller on Thu, 22 Oct 2015 16:23:28 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: eval of numeric strings
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Re: eval of numeric strings
- From: Josef Eschgfaeller <esg@unife.it>
- Date: Thu, 22 Oct 2015 16:23:21 +0200
- Delivery-date: Thu, 22 Oct 2015 16:23:28 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unife.it; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=XgmdbHIVXMMshHia3rhY6YB7TIkAJH4uNelzeSPJGvQ=; b=PhBJD1CjBPb6HRMGsFP6Fw/n75/0H2/RvaQTTXyH7B2aLcJoXsN0mru8Ourdi3eHV+ ReppPYGVSq17e08pJRbs0BaY3A/OL7oRG8Wd4jBYGo8AVYkzGCNWVK+uec2b9QhdKMVk ALnB9+ndMSTXsdIapa5KSGgnjWSexyaxM7r2s=
- In-reply-to: <20151022125359.GD29939@yellowpig>
- References: <CAFBvUauVwJpcz3-dmMo4B=6CEc8weGmf4BbLJqSx0NuyF-4kWw@mail.gmail.com> <20151022125359.GD29939@yellowpig>
> What should give:
> evaln("x2")
> evaln("2x")
evaln should not calculate anything,
only "-352.6" should become -352.6,
but "4+5" remains "4+5" and "3^2"
remains "3^2".
The intended purpose is a function
which extracts parameters a,b,c from a
string "a=7; b=John; c=-14.2", etc.,
without any further symbolic calculation.
Also "[3,2]" remains as it is, since it would
be seldom used.
Thanks
Josef Eschgfaeller