Skip to content
Advertisement

Integrating Matrix Elements TypeError: f() takes 1 positional argument but 3 were given

I’m working on a linear variational problem for a general PIB and I keep encountering the same problem, and I know its a rather simple solution. Any suggestions?

JavaScript

The problem is 100% in the integration of the matrix elements, but I cannot figure out how to rectify it.

Thanks!

Advertisement

Answer

It runs for me:

JavaScript

returns

JavaScript

Try updating your packages

I am using PyCharm and Python 3.8

enter image description here

JP

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement