Closed lesshaste closed 4 years ago
Yes, but variables
returns a tuple (of Variables). Two solutions:
a, b,c = parameters('a, b, c')
x, = variables('x') # Note the extra comma
model = a*x**b + c
or
x = Variable('x')
Thank you so much.
I would like to perform a least-squares fit to a curve. I tried
However symfit complains about the exponentiation with
Is this possible to do in symfit?