What I want to do is to create an integral and then set the whole integral to a certain power (I don’t want the interior of the integral to the power but the integral itself)
Here is what I want to do:
T = (gfRho**exp * test() ** exp * dx) ** (1/exp)
Also, I want to do the same for a LinearFunction, for exemple :
L= LinearForm(gfRho ** exp * test(u_trial) ** exp *dx) ** (1/exp)
But as soon as I do that, the error is either :
TypeError: unsupported operand type(s) for ** or pow(): ‘ngsolve.comp.SumOfIntegrals’ and ‘int’
or
TypeError: unsupported operand type(s) for ** or pow(): ‘ngsolve.comp.LinearForm’ and ‘int’
Unfortunately, I don’t understand the second part of your answer. How can this Bilinear Form be with a power factor. For me, you just changed the value inside that BilinearForm but I want the whole integral with a certain power