choreo.segm.quad.QuadTable.is_symmetric_pair#

QuadTable.is_symmetric_pair(self, QuadTable other, double tol=1e-12)#

Returns True if the pair of integration methods is symmetric.

The pair of methods (self, other) is inferred symmetric if its symmetry default falls under the specified tolerance tol.

Example

>>> import choreo
>>> Radau_I = choreo.segm.multiprec_tables.ComputeQuadrature(10, method="Radau_I")
>>> Radau_II = choreo.segm.multiprec_tables.ComputeQuadrature(10, method="Radau_II")
>>> Radau_I.is_symmetric_pair(Radau_I)
False
>>> Radau_I.is_symmetric_pair(Radau_II)
True
Parameters:

tol (numpy.float64 , optional) – Tolerance on symmetry default, by default 1e-12.

Returns:

Whether the method is symmetric given the tolerance tol.

Return type:

bool