MathGroup Archive 2003

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

Search the Archive

Re: exporting an expression which is readable in fortran 77


In a message dated 3/7/03 4:15:16 AM, rajgupta121 at rediffmail.com writes:


> How can I transfer an expression which I get from mathematica to a fortran
> readable format? cut and paste doesn't work.
> 

Have you tried FortranForm?

f[x_] := a*x^2+b*x+c;



f[x]//InputForm



c + b*x + a*x^2


f[x]//FortranForm



c + b*x + a*x**2



Bob Hanlon



  • Prev by Date: Re: Problem for exponent and indice
  • Next by Date: Re: type casting
  • Previous by thread: Re: exporting an expression which is readable in fortran 77
  • Next by thread: Re: exporting an expression which is readable in fortran 77