Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » sci.math.* » sci.math.num-analysis.independent

Topic: asin2?
Replies: 26   Last Post: Dec 20, 2011 2:24 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Virgil Hancher

Posts: 3,758
Registered: 12/6/04
Re: asin2?
Posted: Aug 15, 2000 12:33 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

In article <5s1m5.866$9N1.14757@vixen.cso.uiuc.edu>,
prussing@aae.uiuc.edu (John Prussing) wrote:

> So, if you think a function asin2 can be defined, let's hear from you.
> As a test case, I offer sin(theta) = 1/sqrt(2).



Assuming that true conditionals return 1 and false ones return 0,
and that r = sqrt(x^2+y^2) > 0, then

theta = (-1)^(x<0)*arcsin(y/r) + (x<0)*pi

gives a correct angle for each point (x,y), except possibly (0,0) for
which no angle is defined.

The range of theta in radians is -pi/2 <= theta < 3*pi/2, rather than
the or common 0 to 2*pi or -pi to pi. That could be fixed with a little
additional complexity.





Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2013. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.