May-09-2022, 03:21 AM
Please post error message and trace.
The documentation for vstack says it takes one tuple.
https://numpy.org/doc/stable/reference/g...stack.html
You are providing 9 arguments.
Let's count.
Number 1 is a doozy. Unlike the others, it is a tuple all by iteself, and it does this twice:
The documentation for vstack says it takes one tuple.
https://numpy.org/doc/stable/reference/g...stack.html
You are providing 9 arguments.
Let's count.
(ptb / y[4] * y[5] / np.sqrt(y[5]**2 + y[6]**2) * function_deo(y[4], y[5], y[6], y[9], ptb, mqb, pes) - 1 / y[2]**2 + y[1]**2 / y[2], ptb / y[4] * y[6] / np.sqrt(y[5]**2 + y[6]**2) * function_deo(y[4], y[5], y[6], y[9], ptb, mqb, pes) - y[0] * y[1] / y[2]), #1 y[0], #2 y[1] / y[2], #3 -mqb * function_deo(y[4], y[5], y[6], y[9], ptb, mqb, pes), #4 y[6] * y[1] / y[2] - y[7], #5 -y[5] * 2.0 * y[1] / y[2] + y[6] * y[0] / y[2] - y[8] * 1.0 / y[2], #6 y[5] * (-2.0 / y[2]**3 + y[1]**2 / y[2]**2) + y[6] * (-y[0] * y[1]) / y[2] + y[8] * y[1] / y[2]**2, #7 0, #8 ptb / y[4]**2 * (np.sqrt(y[5]**2 + y[6]**2)) * function_deo(y[4], y[5], y[6], y[9], ptb, mqb, pes) #9 )I count 9.
Number 1 is a doozy. Unlike the others, it is a tuple all by iteself, and it does this twice:
ptb / y[4] * y[5] / np.sqrt(y[5]**2 + y[6]**2) * function_deo(y[4], y[5], y[6], y[9], ptb, mqb, pes)