(adsbygoogle = window.adsbygoogle || []).push({}); Hello everyone! I've been wondering if it is possible in Fortran to 'read' a function.For instance when I code this:

It would be ideal if the program allowed the user to type the function each time, rather than having it pre-set by the programmer.Thanks in advance!Code (Fortran):contains

function f(x)

double precision :: f

double precision ::x

f=(whatever the function)

return

end function

end program

**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!

# Fortran Fortran 90/95 function

Tags:

Loading...

Similar Threads for Fortran function |
---|

Fortran Successive Over Relaxation Method in FORTRAN |

If statement for Monte Carlo integration |

C/++/# How to use C++ in studying calculus |

Fortran How to buy Fortran Programming Software Commersial License |

Fortran Fortran external functions vs subroutines |

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