MathGroup Archive 2005

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

Search the Archive

Re: FortranForm o/p question


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.
> 



  • Prev by Date: Re: Position different in 5.0 and 5.1?
  • Next by Date: Mathematica Symbolic Toolbox
  • Previous by thread: FortranForm o/p question
  • Next by thread: Re: Re: FortranForm o/p question