I need to integrate an expression using Nintegrate. A problematic part is that this expression contains a variable Cp whose values come from an discrete array which is accessed like Cp[[n]] for the nth element.
The integrand contains such quantities where the variable is such that Cp[[magnitude of a vector]] hence I would have to round the vector magnitude to ensure it’s an integer and hence one can access the correct element of Cp. However, when I use Round, I get the following error.
Part::pkspec1: The expression IntegerPart[Sqrt[Abs[l1 Cos[\[CapitalPhi]]]^2+Abs[l1 Sin[\[CapitalPhi]]]^2]] cannot be used as a part specification.
This is the full integral in question
