From: deepak on 12 Jul 2010 15:15 hi, I have to measure the exact length of a sine curve say a*sin(b*x) from point x1 to x2. Can you please tell me how can i do that. I've tried quad and also tried to get implicit integral using symbolic but it's npt working. Thanks deepak
From: mt on 12 Jul 2010 15:40 On Jul 12, 3:15 pm, "deepak " <dkjkno...(a)rediff.com> wrote: > hi, > > I have to measure the exact length of a sine curve say > > a*sin(b*x) > > from point x1 to x2. > > Can you please tell me how can i do that. > I've tried quad and also tried to get implicit integral using symbolic but it's npt working. > > Thanks > > deepak you can find more information on this problem here. http://autarkaw.wordpress.com/2008/06/18/finding-the-length-of-curve-using-matlab/
From: Roger Stafford on 12 Jul 2010 16:06 "deepak " <dkjknobel(a)rediff.com> wrote in message <i1fpl0$eih$1(a)fred.mathworks.com>... > hi, > > I have to measure the exact length of a sine curve say > > a*sin(b*x) > > from point x1 to x2. > > Can you please tell me how can i do that. > I've tried quad and also tried to get implicit integral using symbolic but it's npt working. > > Thanks > > deepak - - - - - - - - - Your problem leads to an incomplete elliptic integral, so you had better use numerical integration techniques. What is your problem with quad? You need to evaluate the integral int(from x = x1 to x = x2 of sqrt(1+a^2*b^2*cos(b*x)^2) w.r. x The function quad, quadl, or quadgk should handle that very nicely. Roger Stafford
|
Pages: 1 Prev: Exponential Moving Average without For Loop Next: Reading DICOM US clip (multiframe array) |