MathGroup Archive 2009

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

Search the Archive

Re: Help with an error with NonlinearModelFit, Mathematica 7.0

  • To: mathgroup at smc.vnet.net
  • Subject: [mg99587] Re: Help with an error with NonlinearModelFit, Mathematica 7.0
  • From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
  • Date: Fri, 8 May 2009 00:18:54 -0400 (EDT)
  • References: <gtudh6$it8$1@smc.vnet.net>

Please post the list, 35 pairs of numbers is not that long. Are you
sure you didn't confuse an o or O for a 0? Or type two decimal points
in a number or so?

Try this on your list:

And @@ NumericQ /@ Flatten[{{1, 2}, {3, 3}, {2, 3}}]

replace the list above with yours. It should yield True.

Additionally, your fit function is missing a space between k and its
coefficients...

Cheers -- Sjoerd

On May 7, 12:35 pm, Anonymous <mgao4... at gmail.com> wrote:
> I'm trying to find a fit to a large set of data.
>
> Here are In[1], In[2].
>
> In[1] := {{421.1, 6591.10}, ...};
>
> (there are way more points, in fact there are 35 in total, but I don't
> want to list them.  All are real numbers.)
>
> In[2] := nlm = NonlinearModelFit[data, Log[ak^2 + bk + c], {a,b,c}, k=
]
>
> Then mathematica gives an error that basically says that the function
> "is not a list of real numbers"
>
> Of course it is, so how do I fix this?



  • Prev by Date: Re: defining consecutive variables
  • Next by Date: Re: TraditionForm Appears to be Inconsistent
  • Previous by thread: Re: Help with an error with NonlinearModelFit, Mathematica 7.0
  • Next by thread: Re: Help with an error with NonlinearModelFit, Mathematica 7.0