Questions about interfacing Mathematica and Fortran. This also includes conversion of Fortran style numbers to Mathematica style.

learn more… | top users | synonyms

25
votes
1answer
857 views

Linking FORTRAN with Librarylink

FORTRAN code can be called using MathLink or .NET/Link (see the link for a worked examples). But as mentioned in a talk by T.Gayley and J.Klein in Wolfram Technology Conference 2011, LibraryLink, ...
17
votes
2answers
1k views

How can I get Mathematica to produce better Fortran code?

I am new to Mathematica and I am trying to get to it to produce some expressions in Fortran code. However, it seems that Mathematica will output duplicated expressions, that is, expressions the need ...
7
votes
2answers
670 views

How to change an expression to Fortran90 form?

I have a large expression produced by Mathematica. To use this expression in my Fortran program I need to change it to a Fortran90 form. I am not satisfied with the ...
5
votes
1answer
206 views

How to load FORTRAN libraries through Librarylink

First, the main reference is the thread Linking FORTRAN with Librarylink, which teaches how to make the link between a FORTRAN subroutine and a Mathematica code, by using Librarylink. This must done ...
5
votes
0answers
99 views

Output most efficient Fortran code by mathematica

I am trying to output most efficient Fortran code by mathematica 9.0 with the method Simon provided: How can I get Mathematica to produce better Fortran code? The expressions is as follows: ...
4
votes
1answer
331 views

How to create FORTRAN Cell?

I want to create a FORTRAN cell in Mathematica. ...
1
vote
1answer
61 views

Using FortranForm

I need to use in Fortran, matrices that I create in Mathematica, therefore, I need to format them, so that Fortan can understand them. I focus on the simplest example: Let's say I have tha matrix A ...
1
vote
0answers
51 views

Mathlink and Fortan: A list with more than 10 elements as result [closed]

I have a problem with Mathlink (Mathematica 9.0), form which I call a Fortran subroutine which should return a list of 13 numbers. I have written a C-wrapper to call the Fortran subroutine (called ...
1
vote
1answer
169 views

Latest Mathematica 9.0 can't use Format.m to generate optimized Fortran code [closed]

Before updating to Mathematica 9.0, I have successfully generated beautiful Fortran code using Mark Sofroniou's Format.m package, which is posted on MathSource. ...
0
votes
3answers
89 views

Formatting Fortran complex number output for use in Mathematica

Here is a list that was orignially output from Fortran. {{"(0.277336296055697, 0.120000000000000E+000)"}, {"(-1.489297392708939E-002, 0.340000000000000E+000)"}} ...