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

I'm sorry, could you explain the resolution?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.