#NEWLINE# def E_n( n , omega ) : #NEWLINE# #INDENT# '\n    Returns the Energy of the One-dimensional harmonic oscillator\n\n    ``n``\n        the "nodal" quantum number\n    ``omega``\n        the harmonic oscillator angular frequency\n\n    The unit of the returned value matches the unit of hw, since the energy is\n    calculated as:\n\n        E_n = hbar * omega*(n + 1/2)\n\n    Examples\n    ========\n\n    >>> from sympy.physics.qho_1d import E_n\n    >>> from sympy import var\n    >>> var("x omega")\n    (x, omega)\n    >>> E_n(x, omega)\n    hbar*omega*(x + 1/2)\n    ' #NEWLINE# return ( ( hbar * omega ) * ( n + Rational ( 1 , 2 ) ) )