I want to solve this system symbolically but it didn't work. where did I make the mistake? and how can I solve it?
import numpy as np
from sympy import symbols,Matrix
Y, C, I0, G0, a, b = symbols('Y, C, I_0, G_0, a, b')
npA = np.array(([1, -1], [-b, 1]))
npd = np.array((I0 + G0, a))
x = np.linalg.solve(npA, npd)
x
I get this error
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-42-7ec4f3174f18> in <module>
5 npA = np.array(([1, -1], [-b, 1]))
6 npd = np.array((I0 + G0, a))
----> 7 x = np.linalg.solve(npA, npd)
8 x
<__array_function__ internals> in solve(*args, **kwargs)
~\anaconda3\lib\site-packages\numpy\linalg\linalg.py in solve(a, b)
392 signature = 'DD->D' if isComplexType(t) else 'dd->d'
393 extobj = get_linalg_error_extobj(_raise_linalgerror_singular)
--> 394 r = gufunc(a, b, signature=signature, extobj=extobj)
395
396 return wrap(r.astype(result_t, copy=False))
TypeError: No loop matching the specified signature and casting was found for ufunc solve1