MathGroup Archive 2010

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

Search the Archive

FindFit Mathematica 7

  • To: mathgroup at smc.vnet.net
  • Subject: [mg113879] FindFit Mathematica 7
  • From: Derivator <derivatorb at gmail.com>
  • Date: Wed, 17 Nov 2010 05:27:22 -0500 (EST)

Hi. I have a question regarding the use of constraints in FindFit.

In the version 6 the following command

 FindFit[{{0., 1.}, {1., -1}}, {a x + b, b==0}, {a, b}, x]

yields a -> -1, b -> 0 (b==0 is a constraint).

 I find in the version 7 that the same command produces an error of
the type 1/0.
Of course I still could use something like

FindFit[{{0., 1.}, {1., -1}}, {a x + b, Abs[b] < 0.001}, {a, b}, x]

or

With[{b=0},FindFit[{{0., 1.}, {1., -1}}, {a x + b}, {a}, x]

but this is not very natural. Is this a bug or is there a way around?

Regards

L.L.


  • Prev by Date: Re: sq[x_]:=x*x vs sq=Function[x, x*x]
  • Next by Date: HoldForm[0] (???)
  • Previous by thread: Re: Problem with Series
  • Next by thread: Re: FindFit Mathematica 7