Skip to content

ivps.three_body_restricted_first_order TypeError: second_to_first_order_auto ? #133

@denis-bz

Description

@denis-bz

Hi Nicholas
have I done something stupid here ?

import sys
import numpy as np
from diffeqzoo import ivps, backend, __version__ as zooversion

if not backend.has_been_selected:  # 2nd run in ipython
    backend.select( "numpy" )
np.set_printoptions( edgeitems=10, threshold=10, linewidth=120, formatter=dict(
        float = lambda x: "%.2g" % x ))
print( 80 * "▄" )
print( "diffeqzoo", zooversion ) 

moonmass = 0.012277471
    # to change these params, run this.py  a=1  b=2,None  'c = expr' ... in sh or ipython --
for arg in sys.argv[1:]:
    exec( arg )
print( "moonmass = %g" % moonmass )
    
    # $site/ode/diffeqzoo/ivps/_nbody.py
f, u0, t_span, f_args = ivps.three_body_restricted_first_order( moonmass )
# TypeError: second_to_first_order_auto.<locals>.ivp_fn_transformed() takes 0 positional arguments b
    
print( f( u0 ))

What I'm really looking for is largish problems non-chaos, non-stiff, for which Δt oscillates a lot. Any suggestions ?
Thanks,
cheers
-- denis

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions