Inverse trig functions

Hi All, When Haskell says "inverse trig function", it seems to mean the inverse of the return value of a trig function. I want those functions that return an angle whose sine, cosine or whatever equals the parameter I pass. Where are those? TIA, Adrian.

Hello Adrian, those would be called asin and acos. Best regards, Martin

Apparently not. Those are 1/sin and 1/cos. I want to supply a ratio and get
an angle.
On 20 September 2013 19:40, Martin Ruderer
Hello Adrian,
those would be called asin and acos.
Best regards, Martin
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

Are you sure?
Prelude> map (sin.asin) [0.1,0.3,0.5,0.7,0.9]
[0.1,0.3,0.5,0.7,0.9]
On Fri, Sep 20, 2013 at 1:52 PM, Adrian May
Apparently not. Those are 1/sin and 1/cos. I want to supply a ratio and get an angle.
On 20 September 2013 19:40, Martin Ruderer
wrote: Hello Adrian,
those would be called asin and acos.
Best regards, Martin
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

2013/9/20 Adrian May
Apparently not. Those are 1/sin and 1/cos. I want to supply a ratio and get an angle.
Hello Adrian, I wasn't sure my trigonometry was still good so I fired up ghci and here's what I got:
Prelude> let angle = pi / 2 in asin (sin (angle)) == angle True Does it make sense? Regards, Nadir

Prelude> asin(1/sqrt(2)) * 180 / pi 45.0 asin is taking a ratio and returning an angle in radians, and I've converted it to degrees to show that clearly. Graham On 20/09/2013 7:52 AM, Adrian May wrote:
Apparently not. Those are 1/sin and 1/cos. I want to supply a ratio and get an angle.
On 20 September 2013 19:40, Martin Ruderer
mailto:martin.ruderer@gmail.com> wrote: Hello Adrian,
those would be called asin and acos.
Best regards, Martin
_______________________________________________ Beginners mailing list Beginners@haskell.org mailto:Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

Seems like I was wrong then. I'll give it another go in the morning.
Thanks to all,
Adrian.
On 20 Sep 2013 21:14, "Graham Gill"
Prelude> asin(1/sqrt(2)) * 180 / pi 45.0
asin is taking a ratio and returning an angle in radians, and I've converted it to degrees to show that clearly.
Graham
On 20/09/2013 7:52 AM, Adrian May wrote:
Apparently not. Those are 1/sin and 1/cos. I want to supply a ratio and get an angle.
On 20 September 2013 19:40, Martin Ruderer
wrote: Hello Adrian,
those would be called asin and acos.
Best regards, Martin
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing listBeginners@haskell.orghttp://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
participants (4)
-
Adrian May
-
Graham Gill
-
Martin Ruderer
-
Nadir Sampaoli