I have a 3D curve
K2[s_] :=
c1[s] + 0.4*(j[s]*Sin[500*Pi*s/97.8] - v[s]*Cos [500*Pi*s/97.8])
where j and v are frame vectors.
I want to find the integral of the squared second derivative of the curve with respect to parameter s, from 0 to 5.
h[s_] := D[D[K2[s], s], s]
NIntegrate[(h[s])^2, {s, 0, 5}]
takes too long and gives;
The integrand (<<6>>+0.4` (<<1>>))^2 has evaluated to non-numerical \
values for all sampling points in the region with boundaries \
{{0,5`}}. >
Where do I do wrong? Should I use numerical derivatives?
Thank you.
K2[s]evaluate to a numerical value within the region{s,0,5}? – bobthechemist Apr 17 '15 at 17:26