help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

4d integral


From: Enrique
Subject: 4d integral
Date: Sat, 4 Jan 2025 04:29:36 +0100

Hi, I'm performing a 4d integral with colloc, but not sure if I'm doing well, like this:
---

[t,~,~,q]=colloc(4);

[t1,t2,t3,t4]=ndgrid(t);

[q1,q2,q3,q4]=ndgrid(q);

int=sum(sum(sum(sum(U(t1,t2, t3, t4).*q1.*q2.*q3.*q4))));

---

 U(....) it's function I'm integrating.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]