Re: Converting a string to reals



psycho_dad wrote:
Actually,
I would like, if possible, to do the analog of what happens in
Mathematica (ToExpression converts strings to functions):

In: x=2;
ToExpression["x^2"]

Out: 4

Perhaps, it's possible in C?

In C, you'd need the same thing you need in Fortran: a third party runtime interpreter.
.



Relevant Pages

  • Re: Converting a string to reals
    ... I would like, if possible, to do the analog of what happens in ... Mathematica (ToExpression converts strings to functions): ...
    (comp.lang.fortran)
  • Re: Ed Barbeaus "Pells Equation"
    ... |> on "the cubic analog of Pell's equation" |> in Barbeau's book. ... Could anyone who has |> read this chapter tell me what this |> analog actually is? ... he also deals with Pell analogs ... Any reader with access to highpowered computer software like Mathematica is earnestly invited to experiment. ...
    (sci.math)