Article View: adobe.photoshop.scripting
Article #585how to get sin-1/arc sine in javascript
From: christoph_pfaffenbichler
Date: Sat, 17 Jan 2009 16:20
Date: Sat, 17 Jan 2009 16:20
4 lines
1290 bytes
1290 bytes
This time I ask doubly humbled because not only am I weak in JavaScript but I�ve come to realize that I�ve gotten pretty bad at mathematics � On my calculator the key �sin-1� (sinus to the power of negative one) gets me the angle in degrees if I enter the value I get by dividing the opposite side by the hypothenuse (of a right triangle naturally), but I can�t figure out how to achieve that in JavaScript. The calculator-key signifies the arc sine, which the function Math.asin() should also provide but I don�t seem to get meaningful results, instead the result looks like what on my calculator is called the hyperbolic sine. Could someone please help me out here Script- and/or math-wise?
Technical Details
Message-ID:
<59b789f3.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f5839,808defab7164cfa7,start X-Google-Attributes: gidf5839,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII From: christoph_pfaffenbichler@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.photoshop.scripting Subject: how to get sin-1/arc sine in javascript Message-ID: <59b789f3.-1@webcrossing.la2eafNXanI> Date: Sat, 17 Jan 2009 08:20:14 -0800 Lines: 11 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit