First time here? Check out the FAQ!
answered 12 years ago
You could fake it like this:
find_fit([(2,2),(3,2.9),(4,4.1)],(abs(a)+1)/abs(b)*x,variables=[x],initial_guess=(-2,-2))
So the best fit values of a,b are negative, but their absolute values are a "good fit" in your model.
a,b