On May 6, 2010, at 11:21, Sean Lake wrote:

> 
> On May 6, 2010, at 10:40, Jean-François Mertens wrote:
> 
>> 
>> On 06 May 2010, at 19:35, Jean-François Mertens wrote:
>> 
>>> I guess you mean, for the maxima command :
>>> 
>>> assume ( cos (x*y ) > 0 );
>>> integrate((acos(sin(x*y)/sin(y)) - cos(y)*asin(sqrt(1 - (cos(y)/
>>> cos(x*y))^2) / sin(y))) * sin(2*x*y)*2*%pi, x, 0, 1);
>>> 
>>> (without the "assume" maxima even refuses to start here ..)
>>> 
>>> your hoped for answer can't be true, if I read the formula correctly :
>>> eg., for y=3 , x=.5, cos(y)/cos(x*y) is well below  -1 , so the sqrt
>>> you want to take is that of a negative number..
>> 
>> Similarly, for those same values, sin(x*y)/sin(y) is much larger than 1,
>> so its acos is meaningless..
>> 
>> JFm
> 
> Of course, I just type in pos; when it asks if cos(x*y) is positive. y is an 
> angle in the first quadrant and x is between 0 and 1. This comes from the 
> formula for the area of overlap between two offset equal size circles on the 
> surface of a sphere. It's a pain to derive, but I have a much cleaner version 
> of the formula now, too. 
> 
> 4*(%pi*sin(y/2)^2 + cos(y)* asin(tan(x*y)/tan(y)) - asin(sin(x*y)/sin(y))) 
> 
> The 2*%pi*sin(2*x*y) in the integrand above is part of the metric/coordinate 
> Jacobian. I forgot another part of the Jacobian - the changeover to x, y 
> requires a 2*y, too. It looks like I also missed a factor of 4 from the 
> derivation. The result of the integration should also not be 1, because I 
> didn't add the normalization, which is: (4*%pi*sin(y/2)^2)^2. All told, the 
> integral should read:
> 
> integrate(4*(%pi*sin(y/2)^2 + cos(y)* asin(tan(x*y)/tan(y)) - 
> asin(sin(x*y)/sin(y))) *%pi*sin(2*x*y) * 2*y / (4*%pi*sin(y/2)^2)^2, x, 0, 1);
> 
> or, it is also possible to use the old integrand:
> 
> integrate(4*(acos(sin(x*y)/sin(y)) - cos(y)*asin(sqrt(1 - (cos(y)/
> cos(x*y))^2) / sin(y)))  *%pi*sin(2*x*y) * 2*y / (4*%pi*sin(y/2)^2)^2, x, 0, 
> 1);

Sorry, forgot to include the listserv when I first sent the email.

Sean
------------------------------------------------------------------------------
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to