Does instructions for conversion degree/radian exist in abap

Question: This one may look rather strange as a requirement to be achieved in abap, but that's because it is part of a BW project, so not really dealing with the commonly used concepts in SAP.

I need to do conversions between degrees and radians and vice-versa. Basically, with the longitude and latitude of two points on the globe, I am able to calculate the so called Great Circle Distance.

I think this is not achievable in abap, as I don't find enough mathematical instructions.

To tell it more clearly, this is the JAVA instruction I try to reproduce :

return 60.0d * Math.toDegrees(Math.acos( Math.cos(latA) * Math.cos(latB) * Math.cos(dLong) + Math.sin(latA) * Math.sin(latB)));

Do anybody have an idea to help me ?

Ch
_________________
_
There are only 10 types of people in the world :
those who understand binary and those who don't.

Answer:
This one may look rather strange as a requirement to be achieved in abap, but that's because it is part of a BW project, so not really dealing with the commonly used concepts in SAP.

I need to do conversions between degrees and radians and vice-versa. Basically, with the longitude and latitude of two points on the globe, I am able to calculate the so called Great Circle Distance.

I think this is not achievable in abap, as I don't find enough mathematical instructions.

To tell it more clearly, this is the JAVA instruction I try to reproduce :

return 60.0d * Math.toDegrees(Math.acos( Math.cos(latA) * Math.cos(latB) * Math.cos(dLong) + Math.sin(latA) * Math.sin(latB)));

Do anybody have an idea to help me ?

Ch
It has been a while since I was in school but
isnt the relation of RAD & DEG not as follows?

RAD = pi/180* DEG.
PI could be defined as a constant and sin and cos do exist as function - so you should be fine...
Christian

Answer:
You're right. Thanks for this !
_________________
_
There are only 10 types of people in the world :
those who understand binary and those who don't.
Copyright ?2007 - 2008 www.jt77.com