0

Hey everyone,

I'm checking some bessel functions in python using mathematica, and I can't find anything online about how to import values into python with exponentials.

I know how to values with exponents. For example:

x=2032.43 * 10 **23

However, when I read in a data file, say with one column of values such as the one above, such a notation is not recognized by:

f=open('data.dat', 'r')
     for line in f:
         print float(line)

I've also tried other notations. What is the correct notation? Thanks

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by JoshuaBurleson
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.