Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2003
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2003

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

Search the Archive

Re: exporting an expression which is readable in fortran 77

  • To: mathgroup at smc.vnet.net
  • Subject: [mg39821] Re: [mg39809] exporting an expression which is readable in fortran 77
  • From: BobHanlon at aol.com
  • Date: Sat, 8 Mar 2003 02:47:38 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

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