def hyper_as_trig(rv):
 from sympy.simplify.simplify import signsimp
 from sympy.simplify.radsimp import collect
 trigs = rv.atoms(TrigonometricFunction)
 reps = [(t, Dummy()) for t in trigs]
 masked = rv.xreplace(dict(reps))
 reps = [(v, k) for (k, v) in reps]
 d = Dummy()
 return (_osborne(masked, d), (lambda x: collect(signsimp(_osbornei(x, d).xreplace(dict(reps))), S.ImaginaryUnit)))

def hyper_as_trig ( rv ) : from sympy . simplify . simplify import signsimp from sympy . simplify . radsimp import collect trigs = rv . atoms ( TrigonometricFunction ) reps = [ ( t , Dummy ( ) ) for t in trigs ] masked = rv . xreplace ( dict ( reps ) ) reps = [ ( v , k ) for ( k , v ) in reps ] d = Dummy ( ) return ( _osborne ( masked , d ) , ( lambda x : collect ( signsimp ( _osbornei ( x , d ) . xreplace ( dict ( reps ) ) ) , S . ImaginaryUnit ) ) )
return an expression containing hyperbolic functions in terms of trigonometric functions .