Skip to main content
added 4 characters in body
Source Link
cvgmt
  • 84.1k
  • 6
  • 97
  • 179

We use ReIm@p to get the real pairs then use FindFit.

solsol1 = FindFit[ReIm@p, a x + b, {a, b}, x];
eqnR[x_]eqnR1[x_] := a x + b /. sol;sol1;
eqnR[x]eqnR1[x]
Show[ListPlot[ReIm@p, Joined -> False], 
 Plot[eqnR[x]Plot[eqnR1[x], {x, 0, 1.4}, PlotStyle -> Red]]

enter image description here

We use ReIm@p to get the real pairs then use FindFit.

sol = FindFit[ReIm@p, a x + b, {a, b}, x];
eqnR[x_] := a x + b /. sol;
eqnR[x]
Show[ListPlot[ReIm@p, Joined -> False], 
 Plot[eqnR[x], {x, 0, 1.4}, PlotStyle -> Red]]

enter image description here

We use ReIm@p to get the real pairs then use FindFit.

sol1 = FindFit[ReIm@p, a x + b, {a, b}, x];
eqnR1[x_] := a x + b /. sol1;
eqnR1[x]
Show[ListPlot[ReIm@p, Joined -> False], 
 Plot[eqnR1[x], {x, 0, 1.4}, PlotStyle -> Red]]

enter image description here

deleted 1 character in body
Source Link
cvgmt
  • 84.1k
  • 6
  • 97
  • 179

We use ReIm@p theto get the real pairs then use FindFit.

sol = FindFit[ReIm@p, a x + b, {a, b}, x];
eqnR[x_] := a x + b /. sol;
eqnR[x]
Show[ListPlot[ReIm@p, Joined -> False], 
 Plot[eqnR[x], {x, 0, 1.4}, PlotStyle -> Red]]

enter image description here

We use ReIm@p the get the real pairs then use FindFit.

sol = FindFit[ReIm@p, a x + b, {a, b}, x];
eqnR[x_] := a x + b /. sol;
eqnR[x]
Show[ListPlot[ReIm@p, Joined -> False], 
 Plot[eqnR[x], {x, 0, 1.4}, PlotStyle -> Red]]

We use ReIm@p to get the real pairs then use FindFit.

sol = FindFit[ReIm@p, a x + b, {a, b}, x];
eqnR[x_] := a x + b /. sol;
eqnR[x]
Show[ListPlot[ReIm@p, Joined -> False], 
 Plot[eqnR[x], {x, 0, 1.4}, PlotStyle -> Red]]

enter image description here

deleted 1 character in body
Source Link
cvgmt
  • 84.1k
  • 6
  • 97
  • 179

We use ReIm@p the get threthe real pairs then use FindFit.

sol = FindFit[ReIm@p, a x + b, {a, b}, x];
eqnR[x_] := a x + b /. sol;
eqnR[x]
Show[ListPlot[ReIm@p, Joined -> False], 
 Plot[eqnR[x], {x, 0, 1.4}, PlotStyle -> Red]]

We use ReIm@p the get thre real pairs then use FindFit.

sol = FindFit[ReIm@p, a x + b, {a, b}, x];
eqnR[x_] := a x + b /. sol;
eqnR[x]
Show[ListPlot[ReIm@p, Joined -> False], 
 Plot[eqnR[x], {x, 0, 1.4}, PlotStyle -> Red]]

We use ReIm@p the get the real pairs then use FindFit.

sol = FindFit[ReIm@p, a x + b, {a, b}, x];
eqnR[x_] := a x + b /. sol;
eqnR[x]
Show[ListPlot[ReIm@p, Joined -> False], 
 Plot[eqnR[x], {x, 0, 1.4}, PlotStyle -> Red]]
Source Link
cvgmt
  • 84.1k
  • 6
  • 97
  • 179
Loading