From: deepak on
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
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
"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