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

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

Josef Eschgfaeller