MathGroup Archive 2005

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

Search the Archive

Re: Re: FortranForm o/p question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg56174] Re: [mg56154] Re: FortranForm o/p question
  • From: Chris Chiasson <chris.chiasson at gmail.com>
  • Date: Mon, 18 Apr 2005 03:08:31 -0400 (EDT)
  • References: <d3qi5k$ojl$1@smc.vnet.net> <200504170706.DAA08398@smc.vnet.net>
  • Reply-to: Chris Chiasson <chris.chiasson at gmail.com>
  • Sender: owner-wri-mathgroup at wolfram.com

Would it make more sense to associate the Format[Power[E, x_],
FortranForm] :=exp[x] with Power or with Format?

On 4/17/05, Jens-Peer Kuska <kuska at informatik.uni-leipzig.de> wrote:
> Unprotect[Power]
> Power /: Format[Power[E, x_], FortranForm] :=
> exp[x]
> Protect[Power]
> 
> and
> 
> In[]:=FortranForm[Exp[-a*t]*Cos[omega*t]]
> 
> Out[]=Cos(omega*t)/exp(a*t)
> 
> Regards
> 
>   Jens
> 
> "Madhusudan Singh" <spammers-go-here at spam.invalid>
> schrieb im Newsbeitrag
> news:d3qi5k$ojl$1 at smc.vnet.net...
> > Hi
> >
> > Is it possible to make Mathematica o/p exp(arg)
> > instead of E**arg, when
> > using the FortranForm[] wrapper ?
> >
> > Thanks.
> >
> 
> 


-- 
Chris Chiasson
Kettering University
Mechanical Engineering
Graduate Student
1 810 265 3161


  • Prev by Date: Re: Typesetting Mathematica code
  • Next by Date: Re: Mathematica Symbolic Toolbox
  • Previous by thread: Re: FortranForm o/p question
  • Next by thread: Re: removing subelements