Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: complex function fitting?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg98364] Re: complex function fitting?
  • From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
  • Date: Wed, 8 Apr 2009 02:50:11 -0400 (EDT)
  • References: <grcgjg$pml$1@smc.vnet.net>

Ned,

It looks like Mathematica already can do this:

In[673]:=
data = Table[{y = RandomComplex[],
    RandomReal[{0.9, 1.1}] y^2 + RandomReal[{0.9, 1.1}] y + 1 +
     I}, {20}];

In[672]:= Fit[data, {1, x, x^2}, x]

Out[672]= (0.988738 +
   0.984148 I) + (1.0509 - 0.0357287 I) x + (1.0156 + 0.0497595 I) x^2

Cheers -- Sjoerd

On Apr 6, 11:04 am, "Ned Lieb" <okty.gy.... at gmail.com> wrote:
> Does anyone know how I could extend the domain of Mathematica's
> function-fitting functions so I can use complex-valued data?



  • Prev by Date: Re: Difficulties with Re
  • Next by Date: Re: Show[list] does not work
  • Previous by thread: Re: complex function fitting?
  • Next by thread: Re: complex function fitting?