This code is associated to the paper Tummers et al., “Cosserat Rod Modeling of Continuum Robots from Newtonian and Lagrangian Perspectives,” IEEE T-RO. (DOI 10.1109/TRO.2023.3238171) to model tendon actuated continuum robots through both the Newtonian and Lagrangian approaches. Compared to the literature, both approaches are extended with novelties