Skip to main content

Questions tagged [fortran]

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

1 vote
1 answer
264 views

I would like to export in txt or tsv format a table that contains both alphameric and numeric entries, but I would like the numeric entries to be exported in Fortran format. For example 1.234E-9. Is ...
David Keith's user avatar
  • 5,434
6 votes
1 answer
271 views

I am trying to use the Mathematica output of a complicated expression as input for python. As suggested in this answer, the FortranForm of an expression already ...
sqrt6's user avatar
  • 63
20 votes
1 answer
1k views

Here is my problem: I'm diagonalizing some matrices using Eigensystem[] to obtain eigenvalues and eigenvectors and I'm diagonalizing the same matrices using a ...
User3000's user avatar
  • 311
0 votes
1 answer
312 views

I try to transform the following expression into fortranform ...
Yong's user avatar
  • 1
1 vote
1 answer
283 views

I would like to run an external code, written in Fortran, C++, or Python, within Wolfram Mathematica 12 on my MAC OS. I looked up on Internet and I tried to read the WSTP documentation on Wolfram ...
VDF's user avatar
  • 543
2 votes
3 answers
319 views

My .dat file (Fortran) consists of data (x y u) as three columns and I would like to plot the variable "u" against the variables "x" and "y&...
Mohamed Hajjaj's user avatar
3 votes
2 answers
2k views

I am writing a Fortran function that needs to receive two vectors of reals, and as an output, returns a vector. The function could be for example the sum of the two vectors: ...
Denis Cousineau's user avatar
0 votes
0 answers
181 views

I'm trying to run a code like this in Mathematica: ...
Linus's user avatar
  • 3
2 votes
0 answers
179 views

I have a huge Mathematica function (plain text ranging 10-100MB) that I am trying to convert to Fortran for external use. I tried using FortranForm, which does most of the work, and cleaned the code ...
lll's user avatar
  • 21
6 votes
3 answers
769 views

What is the most elegant way to convert arbitrary numbers written as (verbatim): 1.13903 e - 08 into traditional Mathematica number form without having to ...
David G. Stork's user avatar
1 vote
0 answers
269 views

I am trying to integrate the solver for the set of nonlinear equations link written in Fortran language into mathematica . To do so i developed a function called netlib based on the explanation given ...
user49047's user avatar
  • 811
2 votes
2 answers
279 views

I have some polynomial e.g. $2x^2 + 3x + 4$ In Mathematica I can define this, and convert it to a string simply enough ...
user1887919's user avatar
1 vote
0 answers
234 views

How to link Mathematica and Fortran with WSTP?
Prabhakar Namdev's user avatar
2 votes
2 answers
560 views

I have an integral in which the integrand is a combination of ratio of modified bessel function of second kind. I am able to find the solution of this integral with mathematica Nintegrate module with ...
Prabhakar Namdev's user avatar
1 vote
1 answer
431 views

Let's say I have some Table object. The elements of this table are accessed as Table[[i,j,k]]. For each element in the array I ...
user1887919's user avatar

15 30 50 per page