RE: Converting a string to reals
- From: meek@xxxxxxxxxxxxxxx
- Date: 29 MAR 07 20:07:38 GMT
In a previous article, "psycho_dad" <s.nesseris@xxxxxxxxx> wrote:
Hi all,What you want is to write a compiler. But barring that
I have the following problem in f90 for which I would like some help.
I would like to know
how can I convert a string, say "b**2" to a variable so given the
value b=2. the outcome will be 4.?
Imagine that there may be more complex functions like "exp(b**2)" etc
which I would like to be
able to convert them from strings to variables and given a value for b
get a real result.
Can anyone help me?
Cheers,
psycho_dad
write a little fortran source (text) to a file from fortran,
compile and run it with a system call, and it writes
the result to a file. Then read the file.
There are easier ways to make a living.
Chris
.
- Follow-Ups:
- Re: Converting a string to reals
- From: psycho_dad
- Re: Converting a string to reals
- References:
- Converting a string to reals
- From: psycho_dad
- Converting a string to reals
- Prev by Date: Converting a string to reals
- Next by Date: Re: Starting to doubt fortran
- Previous by thread: Converting a string to reals
- Next by thread: Re: Converting a string to reals
- Index(es):
Relevant Pages
|
|