nonZeroSols = nonZeroFilter(sols,k,tol)
A solution has its k-th coordinate non-zero when the abs function evaluates to a number greater than the given tolerance.
|
|
|
|
|
|
Here is another system where we filter solutions with `large enough' first coordinate:
|
|
|
|
|
Good values for the tolerance are relative to the accuracy and the condition number of the solution. To improve the accuracy of a solution, apply refineSolutions with a higher working precision.
The method returns the complement of the result of zeroFilter.
The object nonZeroFilter is a method function.