I have a the following code:
p = classp(); for i in range(1,10): x = numpy.array([,,]) print p.update(x) class classp: def __init__(self): self.mymodel = array([2*x], [3*x], [x]); def update(self, x): return self.mymodel #replace x(0)...x(1) with the given parameter
My question is related the code above, I would like to define a model using sympy if it's possible, afterwards in the update function replace the sympy variables with the x values. Is it possible? How can I do that?