Tag Info

New answers tagged

1

You can use RunThrough to pipe through stdin | fortran | stdout: here has a minimal fortran example: real*8 x read(*,*)x write(*,*)x**2*cos(x)+1 end in mathematica: f[v_?NumericQ]:=RunThrough["path/file" , FortranForm[v] ] NMinimize[f[x],x] //AbsoluteTiming {17.993699, {-10.6378, {x -> -3.6436}}} There ...



Top 50 recent answers are included