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? > > >