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: [mg98351] Re: complex function fitting?
  • From: dh <dh at metrohm.com>
  • Date: Wed, 8 Apr 2009 02:47:49 -0400 (EDT)
  • References: <grcgjg$pml$1@smc.vnet.net>


Hi Ned,

Mathematica works by default with complex numbres. E.g. using "Fit":

d = Table[{x + I y, Exp[x + y I ]}, {x, 0, 1, .1}, {y, 0, 1, .1}];

d = Flatten[d, 1];

pol = Fit[d, {1, x, x^2}, x]

yc = pol /. x -> d[[All, 1]];

ListPlot[{Re[#], Im[#]} & /@  (yc - d[[All, 2]]), PlotRange -> All]

Daniel



Ned Lieb 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: overlay of multiple plots Show command does not work
  • Next by Date: Re: Show[list] does not work
  • Previous by thread: complex function fitting?
  • Next by thread: Re: complex function fitting?