DMUG-Archiv 1998

Frühere

 

Chronologischer Index

 

Spätere

Vorherige

 

Thematischer Index

 

Nächste

Re: FortranForm komplexer Zahlen

So auf die schnelle wuerde ich folgende Loesung fuer das  
Fortran-Format-Problem vorschlagen.


Unprotect[Complex];
Format[c_Complex, FortranForm] :=
        StringJoin[
                "(",
                ToString[Re[Numerator[c]]],
                ",",
                ToString[Im[Numerator[c]]],
                ")/",
                ToString[Denominator[c]]
        ];
Protect[Complex];



Markus van Almsick
---------------------------------------------------------
Max-Planck-Institut fuer Biophysik,     Frankfurt am Main
Application Consultant,              Wolfram Research Inc. 


Verweise:
FortranForm komplexer Zahlen
Claus Fuetterer, 02.12.1996

Frühere

 

Chronologischer Index

 

Spätere

Vorherige

 

Thematischer Index

 

Nächste

DMUG-Archiv, http://www.mathematica.ch/dmug-liste.html; Letzte Änderung: 08.09.2003 20:44