choreo.segm.ODE.ImplicitRKTable.is_symplectic#
- ImplicitRKTable.is_symplectic(self, double tol=1e-12)#
Returns
True
if the Runge-Kutta method is symplectic.The method is inferred symplectic if its symplecticity default falls under the specified tolerance
tol
.Example
>>> import choreo >>> Radau_IA = choreo.segm.multiprec_tables.ComputeImplicitRKTable(method="Radau_IA") >>> Radau_IA.is_symplectic() False >>> Radau_IB = choreo.segm.multiprec_tables.ComputeImplicitRKTable(method="Radau_IB") >>> Radau_IB.is_symplectic() True
See also
- Parameters:
tol (
numpy.float64
, optional) – Tolerance on symplecticity default, by default1e-12
.- Returns:
Whether the method is symplectic given the tolerance
tol
.- Return type: