MathGroup Archive 2003

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

Search the Archive

Re: scientific mode for powers

  • To: mathgroup at smc.vnet.net
  • Subject: [mg43963] Re: scientific mode for powers
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Thu, 16 Oct 2003 04:15:58 -0400 (EDT)
  • Organization: Universitaet Leipzig
  • References: <bmj29l$por$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

it is very clever to use Mathematica to convert a polynomial and
than to use GnuPlot instead of Mathematicas Plot[] command.
But what may

test = -8.670077820*10^-06;
CForm[test]
NumberForm[test, NumberFormat -> (ToString[#1] <> "**" <> ToString[#3]
&)]

output ??

Regards
  Jens

Bernhard Hidding wrote:
> 
> Hello,
> I am new to mathematica. I use it to convert 7th order polynomials to 5th
> order polynomials. I plot them with gnuplot afterwards.
> Doing so, it is quite time-consuming to change the syntax. As far as I got
> it, mathematica just does not understand if numbers are given in scientific
> mode you know from Fortran or C. So, for each and every number, I have to
> change e.g.
> 
> -8.670077820E-06 into -8.670077820*10^-06 and back again.
> 
> (Additionally, gnuplot doesn't understand 10^-06 but needs 10**-06)
> 
> Does anyone know how to convert from scientific mode to "10^xx"-notation
> automatically?
> 
> Thanks in advance,
> Bernhard Hidding


  • Prev by Date: Re: what's the largest system solvable in mathematica?
  • Next by Date: Re: Concentric contours about the centroid, having the same length, and interior to an initial contour.
  • Previous by thread: Re: scientific mode for powers
  • Next by thread: Re: scientific mode for powers