{'fraction_non_alphanumeric': 0.025356576862123614, 'fraction_numerical': 0.039619651347068144, 'mean_word_length': 4.962264150943396, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Variational order for forced Lagrangian systems

We are able to derive the equations of motion for forced mechanical systems in a purely variational setting, both in the context of Lagrangian or Hamiltonian mechanics, by duplicating the variables of the system as introduced by Galley (2013 Phys. Rev. Lett. 110 174301) and Galley et al (2014 arXiv:1412.3082). We show that this construction is useful to design high-order integrators for forced Lagrangian systems and, more importantly, we give a characterization of the order of a method applied to a forced system using the corresponding variational order of the duplicated one.