Advertisement
Guest User

Untitled

a guest
Apr 26th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Julia 0.24 KB | None | 0 0
  1. m = 5.3
  2. n1 = 1.0
  3. n2 = 1.0
  4. D = 1.0e-3
  5. k = 22
  6. hcubature(x->(2*x[1]^3*(n1+n2*cos(2*x[2]))/sqrt((x[1]^2-2*m)^2+(2*x[1]*D)^2*(n1^2+n2^2)+2*n1*n2*cos(2*x[2]))),[0.0,0.0],[k,pi])
  7.  
  8. #setfield! immutable struct of type IntegrandData cannot be changed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement