def maclaurin_sinh(value, k):
    """
    Compute maclaurin's series approximation for sinh(x)
    """
    
    global first_value    
    first_value = 0.0
    
    #attempt to Approximate sinh(x) for a given value    
    try:
        for item in xrange(1,k,2):
            next_value = (value*pi/180)**item/factorial(item)
            first_value += next_value
            
        return first_value
    
    #Raise TypeError if input is not a number   
    except TypeError:
        print 'Please enter an integer or a float value'

    Compute maclaurin's series approximation for sinh(x)
    
recipes/Python/577288_Maclaurinsseriessinh/recipe-577288.py