Hello,(adsbygoogle = window.adsbygoogle || []).push({});

I am trying to write a Fortran subroutine to solve non-linear equations (given by external functionfnxname) using Newton's method, where the derivative is given by finite difference calculation. How may I use the function in the program.

Suppose the desired function name is given by a string "fnxname", I cannot write fnxname(x), can I? In MATLAB, I may write eval(cat('fnxname','(x)')) or something like that. Is there a similar command in Fortran?

Replies would be much appreciated. Thank you very much.

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Homework Help: Is there any command in Fortran that is similar to eval in MATLAB?

**Physics Forums | Science Articles, Homework Help, Discussion**