SourceForge has been redesigned. Learn more.

TypeError: unsupported operand type(s)

  • Charles Kiss

    Charles Kiss - 2010-02-07

    For the following function, Is the following error really supposed to be happening??

    def A(t,n):
        A=-k*t/(r**n) + k/((b**n)*t)  # Equation (3)
        return A

    TypeError: unsupported operand type(s) for ** or pow(): 'function' and 'int'

    It doesn't happen in emacs. 

    Very frustrating that every editor has very different bugs!  Is there a way to fix this,  I tried different imports, nothing seems to work.

  • Charles Kiss

    Charles Kiss - 2010-02-07

    Ignore the above post, I can't delete it.

    Sorry I acted out.  Everything is fine. It was all my fault, not the editor's.


Log in to post a comment.