1 Answer
Because it's a vector/array, not a single value. You may try the following:
np.set_printoptions(precision=2)
print(f'x = {x} -> q = {q}')
You could also take a look at numpy.array2string function.
Because it's a vector/array, not a single value. You may try the following:
np.set_printoptions(precision=2)
print(f'x = {x} -> q = {q}')
You could also take a look at numpy.array2string function.