MathGroup Archive 2010

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

Search the Archive

exporting numerical data

  • To: mathgroup at
  • Subject: [mg106642] exporting numerical data
  • From: Very Bad Motherfucker <shinytinkerbell at>
  • Date: Wed, 20 Jan 2010 06:46:23 -0500 (EST)


I have the following problem:
I've created a table in mathematica that looks like this:
TabIntegral={ {{m_1,k_1,F(m_1,k_1)},{m_1,k_2,F(m_1,k_2)},...
{m_1,k_N,...,F(m_1,k_N)}} , {{m_2,k_1,F(m_2,k_1)},{m_2,k_2,F
(m_2,k_2)},...,{m_2,k_N,F(m_2,k_N)}} , ... , {{m_N,k_1,F(m_N,k_1)},
{m_N,k_2,F(m_N,k_2)},...,{m_N,k_N,F(m_N,k_N)}} };
So something like an array of {x,y,F(x,y)} records. Now, I'd like to
save this in human readable form in a file in such a way that I'd have
three columns:
m_1   k_1  F(m_1,k_1)
m_1   k_2  F(m_1,k_2)
m_1   k_N  F(m_1,k_N)
m_2   k_1  F(m_2,k_1)
m_2   k_N  F(m_2,k_N)
m_N   k_N  F(m_N,k_N)

I've tried like that:
Export["TabIntegral.dat", TabIntegral, "Table"]
but I got smth like this:
{0, 0, 5.641587818867172*^-9}   {0, 0.2271979480396873,
5.6073615530027356*^-9} {0, 0.4543958960793746,
which is definitely not what I need. So now I guess my question is
clear, how can I get what I need?

The second question would be the following: as you see I have in my
file small numbers such like 5.6073615530027356*^-9 that I'd like to
read later on with a C-written program. If I'll leave it in this
format as it is, there's no way C-program can read that. So how to
write/format such small numbers while exporting to guarantee that I'll
be able to C-read them later?

Any help will be appreciated.
Kind regards,

  • Prev by Date: Re: Convert string list to number list
  • Next by Date: Re: First function debug help
  • Previous by thread: Re: Sorting paired columns of dates and values
  • Next by thread: Re: exporting numerical data