I am wondering if there is a way to set the precision for sympy objects.
I have two sympy objects (a and q) that when I execute q*a*inv(q), the result is of the form:
ans = 1.0*n_o + x1*e_1 + x2*e_2 + x3*e_3 + x4*n_i + x5*e_1^e_2^n_i
where x5 is on the order of 1E-9.
My problem is that I then want to calculate MV.norm(a), which throws a ValueError that the result is not a scalar, due to the last term. The precision I need to assume something is zero is much less, say 0.001. If that term was assumed to be zero the operation would work as with my other cases. Is there a way to set this at the start of the program and carry throughout all operations?
Thanks,
-Robert