MathGroup Archive 2005

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

Search the Archive

appending '.' in CForm

  • To: mathgroup at smc.vnet.net
  • Subject: [mg55419] appending '.' in CForm
  • From: Matt Flax <flatmax at Matt.Flax>
  • Date: Wed, 23 Mar 2005 05:34:32 -0500 (EST)
  • Reply-to: Matt Flax <flatmax at ieee.org>
  • Sender: owner-wri-mathgroup at wolfram.com

Hello,

I have an equation which symbolicly evals. to a 1 MB file when streamed 
to file using CForm ... it is a very very long equation !

I am unsatisfied with the results of CForm, because it writes longs, 
rather then writing doubles out ... for example :
      314572800*Power(b,2)*Power(d,4)*dr*e*Power(f,6)*Power(t,10)*
instead of :
      314572800.0*Power(b,2)*Power(d,4)*dr*e*Power(f,6)*Power(t,10)*

The issue is that the integer aproaches the limit of max. int. which is 
listed in values.h (GNU compiler).

So ... how would I force CForm to print out integers as doubles ?

thanks
Matt
-- 
http://www.flatmax.org

MFFM Bit Stream : 
http://sourceforge.net/projects/mffmbitstream/
Other Projects :
http://sourceforge.net/search/?type_of_search=soft&words=mffm


  • Prev by Date: Re: TrigExpand - Odd behavior
  • Next by Date: Re: Lines in Mathematica Graphics
  • Previous by thread: Re: categorys in the Help Browser
  • Next by thread: Re: appending '.' in CForm