       RE: Need to evaluate functions of the form y=5e+5 x1+2e-1x2, etc., were e means 10^

• To: mathgroup at smc.vnet.net
• Subject: [mg36871] RE: [mg36847] Need to evaluate functions of the form y=5e+5 x1+2e-1x2, etc., were e means 10^
• From: "DrBob" <drbob at bigfoot.com>
• Date: Mon, 30 Sep 2002 03:03:18 -0400 (EDT)
• Sender: owner-wri-mathgroup at wolfram.com

```input = "5e+5x1+2e-1x2";

StringJoin[Characters[input] //. "e" -> "*10^"]

"5*10^+5x1+2*10^-1x2"

ToExpression[%]

500000*x1 + x2/5

Bobby Treat

-----Original Message-----
From: Chuck [mailto:koehlerc at execpc.com]
To: mathgroup at smc.vnet.net
Subject: [mg36871] [mg36847] Need to evaluate functions of the form y=5e+5
x1+2e-1x2, etc., were e means 10^

Hello,

I have an odd problem.  I need to use and simplify functions that have
been provided by a piece of software that insists on outputing the
functional results of a data mining proceedure, using "e" when
outputing numbers in scientific notation.

I'm having difficultly using Replace, Hold, etc. to correctly evaluate
these types of function formats.  For example, y = 5e+5x1+2e-1x2,
should be transcribed into 5 10^5 x1 + 0.2 x2.

Thanks,

Chuck

```

• Prev by Date: Linux Users?
• Next by Date: Determination of a double integral
• Previous by thread: Need to evaluate functions of the form y=5e+5 x1+2e-1x2, etc., were e means 10^
• Next by thread: Accuracy and Precision