Issue1353

classification
Title: asin miscalculation
Type: Severity: minor
Components: Any Versions: Deferred
Milestone:
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: JacobIsrael, zyasoft
Priority: Keywords:

Created on 2009-05-21.18:25:46 by JacobIsrael, last changed 2009-05-27.02:54:23 by zyasoft.

Files
File name Uploaded Description Edit Remove
unnamed JacobIsrael, 2009-05-26.11:23:44
Messages
msg4704 (view) Author: Jacob Israel (JacobIsrael) Date: 2009-05-21.18:25:45
In JES 3.0.6, asin does not always return correct value.
msg4713 (view) Author: Jim Baker (zyasoft) Date: 2009-05-23.20:42:07
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.
msg4719 (view) Author: Jacob Israel (JacobIsrael) Date: 2009-05-26.11:23:45
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.
http://windowslive.com/explore?ocid=TXT_TAGLM_BR_life_in_synch_052009
History
Date User Action Args
2009-05-27 02:54:23zyasoftsetstatus: open -> closed
2009-05-26 11:23:45JacobIsraelsetfiles: + unnamed
messages: + msg4719
2009-05-23 20:42:07zyasoftsetresolution: works for me
messages: + msg4713
nosy: + zyasoft
2009-05-21 18:25:46JacobIsraelcreate