I apologize. I forgot that asin worked in radians. Also, I made my own code to return the correct inverse sin based on the waves upward/downward trend (below).

Thank you,
Mr. Israel
 

def invSin(number,up):
  result=asin(number)
  if(up==0): # negative trend correction 
    if(result<0):
      result=-pi-result # -halfPi -(halfPi+result)
    if(result>0):
      result=pi-result # halfPi + (halfPi-result)
  return result 
 
.....................



 
> Subject: [issue1353] asin miscalculation
> To: Americancafe@hotmail.com
> From: report@bugs.jython.org
> Date: Sat, 23 May 2009 20:42:07 +0000
>
>
> Jim Baker <zyasoft@users.sourceforge.net> added the comment:
>
> Can you submit a more detailed report of your environment? On Java 6 on
> OSX, stepping over [-1.0,1.0], asin on Jython 2.5 trunk produces exactly
> the same results as Python 2.5.
>
> ----------
> nosy: +zyasoft
> resolution: -> works for me
>
> _______________________________________
> Jython tracker <report@bugs.jython.org>
> <http://bugs.jython.org/issue1353>
> _______________________________________


Windows Liveā„¢: Keep your life in sync. Check it out.