def octave_code(expr, assign_to=None, **settings):
 return OctaveCodePrinter(settings).doprint(expr, assign_to)

def octave_code ( expr , assign_to = None , ** settings ) : return OctaveCodePrinter ( settings ) . doprint ( expr , assign_to )
converts expr to a string of octave code .