Skip to main content

Timeline for Using NIntegrate with constants

Current License: CC BY-SA 3.0

12 events
when toggle format what by license comment
Jan 5, 2018 at 15:48 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Dec 6, 2017 at 15:46 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Nov 6, 2017 at 15:34 answer added Will.Mo timeline score: 1
Nov 5, 2017 at 12:06 comment added J. M.'s missing motivation Please go here to have your accounts merged, so that you can access your question again.
Nov 5, 2017 at 11:45 comment added user53311 The codes you have given gives me the error as I try to evaluate function J NIntegrate::inumr: The integrand -(2/Sqrt[x^2+y^2+z^2])+(E^(-(Sqrt[x^2+y^2+z^2]/[Lambda]_)) (2 [Pi] x Cos[([Pi] y)/Pattern[<<2>>]] Cos[([Pi] z)/Pattern[<<2>>]] a_ b_^2 c_^2 [Lambda]_ Sin[([Pi] x)/Pattern[<<2>>]]+Cos[([Pi] x)/Pattern[<<2>>]] (<<1>>)))/(Sqrt[x^2+y^2+z^2] a_^2 b_^2 c_^2 [Lambda]_^2) has evaluated to non-numerical values for all sampling points in the region with boundaries {{0,1},{0,1},{0,1}}.
Nov 5, 2017 at 7:02 comment added Will.Mo @umos Use the 'at' symbol to identify who you are speaking to. Try executing the code I posted above, and see if it does what you want. If you have further questions, try to be more specific.
Nov 4, 2017 at 20:55 comment added umos How could ıI do this?
Nov 4, 2017 at 20:32 comment added Will.Mo You also need bounds for the integral. Maybe you want a function of the constants that does the integral? Then try something like sFcn[x_, y_, z_, a_, b_, c_, λ_] = s; and J[a_, b_, c_, λ_] := NIntegrate[ sFcn[x, y, z, a, b, c, λ], {x, 0, 1}, {y, 0, 1}, {z, 0, 1}]
Nov 4, 2017 at 19:44 comment added J. M.'s missing motivation If you don't specify a value for λ, NIntegrate[] won't work.
Nov 4, 2017 at 19:43 history edited J. M.'s missing motivation CC BY-SA 3.0
edited tags
Nov 4, 2017 at 19:29 review First posts
Nov 4, 2017 at 19:48
Nov 4, 2017 at 19:26 history asked umos CC BY-SA 3.0