choreo.segm.quad.QuadTable.is_symmetric_pair#
- QuadTable.is_symmetric_pair()#
Returns
Trueif the pair of integration methods is symmetric.The pair of methods
(self, other)is inferred symmetric if its symmetry default falls under the specified tolerancetol.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
See also
- Parameters:
tol (
numpy.float64, optional) – Tolerance on symmetry default, by default1e-12.- Returns:
Whether the method is symmetric given the tolerance
tol.- Return type: