Re: Interpolation[] problem

• To: mathgroup at smc.vnet.net
• Subject: [mg18522] Re: Interpolation[] problem
• From: Attico Nicola <attico at cibs.sns.it>
• Date: Thu, 8 Jul 1999 22:32:56 -0400
• Organization: Universita' di Pisa
• References: <7m14um\$pls@smc.vnet.net>
• Sender: owner-wri-mathgroup at wolfram.com

```> hi all,
> i've an incomprehensible problem with
> Interpolation[].
> I need to interpolate a two dimensional
> function z(x,y) and i've in a file
> the values of the functions in different
> points in the form:
>
> x_i y_i z_i
>
> (ive copied my file in attchmnt)
>
> [contact the author to obtain the attachment -moderator]
>
> Is important that the my grid is homogeneous
> in the y direction, but inhomogeneous along x.
> Im able to read data in a list with the
> command
>
> t=%
>
> and now t is a list of the form:
>
> {{x1,y1,z1},{x2,y2,z2},,....,{xN,yN,zN}}
>
> So, i trie to interpolate 2-dimensionally
> with:
>
> f=Interpolation[t]
>
> as is specified in the manual but Mathematica refuse
> to work with the error:
>
> Interpolation::indim:
>                              -6       -6       -6
>    The coordinates {0., 1. 10  , 3. 10  , 6. 10  , 0.000011, <<24>>,
>      3.553326, 5.196734} in dimension 1
>      are not consistent with other coordinates in this dimension.
>
> maybe mathematica does not work with inhomogeneous grid.
> What can i do otherwise?

because the file is too long i would like to
post some line as example

0.000000 -1.000000 1.000000
0.000001 -1.000000 0.999999
0.000001 -1.000000 0.999998
0.000003 -1.000000 0.999996
0.000006 -1.000000 0.999991
0.000011 -1.000000 0.999982
0.000022 -1.000000 0.999965
0.000043 -1.000000 0.999932
0.000081 -1.000000 0.999872
0.000151 -1.000000 0.999762
0.000277 -1.000000 0.999566
0.000499 -1.000000 0.999222
0.000000 -0.900000 1.000000
0.000001 -0.900000 0.999999
0.000001 -0.900000 0.999998
0.000003 -0.900000 0.999996
0.000006 -0.900000 0.999991
0.000011 -0.900000 0.999982
0.000022 -0.900000 0.999965
0.000043 -0.900000 0.999932
0.000081 -0.900000 0.999872
0.000151 -0.900000 0.999762
0.000277 -0.900000 0.999566
etc etc.....

Thank you

```

• Prev by Date: Re: Re: Select in Math.
• Next by Date: Charles Muses work on hypernumbers, metadimensions, and Chronotopology.
• Previous by thread: Re: Re: Re: Select in Math.
• Next by thread: Re: Interpolation[] problem