|
[Date Index]
[Thread Index]
[Author Index]
List -> Fortran array?
- To: mathgroup at christensen.cybernetics.net
- Subject: [mg527] List -> Fortran array?
- From: John.R.Manuel at Dartmouth.EDU (John R. Manuel)
- Date: 09 Mar 95 15:21:34 EST
Hi,
I have a long result from a symbolic calculation which I'd now like to
translate into a Fortran expression. FortranForm[] works, but it doesn't know
what to do with the List elements that appear in the expression, e.g.,
b[[2]] (n[[2]] - 2 d1[[5]] uff[[1]] / rho) // FortranForm
Part(b,2)*(Part(n,2) - 2*Part(d1,5)*Part(uff,1)/rho)
while what I want is
b(2)*(n(2) - (2*d1(5)*uff(1))/rho)
Can anyone suggest a simple way to go from a Mathematica List element to a
Fortran array element? There ought to be a rule I can apply here...
John
----
John R. Manuel office: (603) 646-2723 fax: (603) 646-3856
Dartmouth College, Thayer School of Engineering, Hanover, NH, 03755 USA
Prev by Date:
Extracting Coefficients
Next by Date:
Re: Graphics on a NeXT into MSWord on a PC?
Previous by thread:
Extracting Coefficients
Next by thread:
Mathematic and HP Plotters
|