Skip to main content
7 events
when toggle format what by license comment
Jul 5, 2022 at 23:07 comment added Michael E2 @swish47 It might be, since you can plug in your own methods (see here and here). I have not tried implementing a vector method. I'm not familiar with any integration rule for integrating vectors. I could only do it by applying rules for scalar functions to each coordinate.
Jul 5, 2022 at 22:38 comment added swish47 Thank you so much. I finally understand some weird error from NIntergrate before. And is it possible to modify the definition of NIntegrate to intergrate a list value function directly but not map to 1d integral?
Jul 5, 2022 at 14:55 comment added Michael E2 @swish47 Both Integrate and NIntegrate will integrate func[x_] := {x^2, x^3};. Neither will integrate gunk[x_?NumericQ] := {x^2, x^3};. Integrate has a special rule built in to integrate vector valued interpolating functions like the OP's f[t], but it won't integrate other expressions with interpolating functions as the OP shows (not even scalar valued ones). NIntegrate does not have this special case. In my first case, NIntegrate maps itself to two 1-dim integrals, NIntegrate[x^2,...] and NIntegrate[x^3,...]. Basically, the NIntegrate rules handle only scalar functions.
Jul 5, 2022 at 14:30 comment added swish47 Thanks for your answer. NIntegrate can only recognize number value function but not a function with list output? Seems it not looks like Integrate.
Apr 13, 2017 at 12:55 history edited CommunityBot
replaced http://mathematica.stackexchange.com/ with https://mathematica.stackexchange.com/
Sep 14, 2016 at 23:28 vote accept Lyle Ramshaw
Sep 14, 2016 at 22:33 history answered Michael E2 CC BY-SA 3.0