Hello,(adsbygoogle = window.adsbygoogle || []).push({});

I want to fit a two-parameter function to two points in this way:

FindFit[{{0, 1}, {1, 0}}, D + C *Log[-1 + Sqrt[-C^2 + (-1 + x)^2] + x], {C, D}, x]

But Mathematica won't give the values for parameters C and D. Instead it says:

"FindFit::nrlnum: "The function value {0. -3.14159\ I,1. -1.5708\ I}\\n is not a list of real numbers with dimensions {2} at {C,D} = {1.,1.}."

Does anyone know what is the problem?

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# FindFit doesn't work for me in Mathematica

Tags:

Loading...

Similar Threads - FindFit doesn't Mathematica | Date |
---|---|

[Mathematica] FindFit/NonlinearModelFit with non-gaussian residuals | Mar 2, 2014 |

Mathematica to FindFit for multiple data set | Mar 5, 2013 |

Log doesn't work properly in MMA | Sep 22, 2012 |

Problem with FindFit | May 13, 2012 |

FindFit for the 4-parameter beta distribution | Jan 6, 2012 |

**Physics Forums - The Fusion of Science and Community**