Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Format.m

  • To: mathgroup at smc.vnet.net
  • Subject: [mg82894] Format.m
  • From: "Cetin Haftaoglu" <cetin.haftaoglu at bam.de>
  • Date: Fri, 2 Nov 2007 03:35:47 -0500 (EST)

I am using the Format.m package to convert Mathematica expressions in
FORTRAN style.



When I try to convert an If-statement I get the following output:



  In:=      FortranAssign[If[y2=A30.,0.,2. y2  =
y3],AssignFortranNumbers=AEFalse]



Out:=    If(y2.le.0.,0.,FormatxPrivatexFRH(2.*y2*y3))



The normal FortranForm-output is correct:



Out:=            If(y2.le.0.,0.,2.*y2*y3)



Has anybody a solution or a explanation?



TIA



Regards,

Cetin




  • Prev by Date: Re: Re: Parallel computations
  • Next by Date: Converting a number back to a symbol?
  • Previous by thread: Re: Parallel computations
  • Next by thread: Converting a number back to a symbol?