Send Beginners mailing list submissions to
        beginners@haskell.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        beginners-requ...@haskell.org

You can reach the person managing the list at
        beginners-ow...@haskell.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1. Re:  Inverse trig functions (Nadir Sampaoli)
   2. Re:  Inverse trig functions (Graham Gill)
   3. Re:  Inverse trig functions (Adrian May)
   4.  Thrashed again by cabal and libraries... (emacstheviking)
   5.  Non-strictness semantics of Haskell (???)
   6. Re:  question about pattern guards (Daniel Trstenjak)


----------------------------------------------------------------------

Message: 1
Date: Fri, 20 Sep 2013 14:05:37 +0200
From: Nadir Sampaoli <nadirsampa...@gmail.com>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <beginners@haskell.org>
Subject: Re: [Haskell-beginners] Inverse trig functions
Message-ID:
        <cafywtdrcw3pn0zm-mhiinnavprm_kufpbqz6xz5kf+wbw5c...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

2013/9/20 Adrian May <adrian.alexander....@gmail.com>

> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20130920/14ed5337/attachment-0001.html>

------------------------------

Message: 2
Date: Fri, 20 Sep 2013 09:14:30 -0400
From: Graham Gill <math.simp...@gmail.com>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <beginners@haskell.org>
Subject: Re: [Haskell-beginners] Inverse trig functions
Message-ID: <523c4a36.1050...@gmail.com>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"

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 <martin.rude...@gmail.com 
> <mailto:martin.rude...@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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20130920/7e929c7d/attachment-0001.html>

------------------------------

Message: 3
Date: Fri, 20 Sep 2013 23:35:55 +0800
From: Adrian May <adrian.alexander....@gmail.com>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <beginners@haskell.org>
Subject: Re: [Haskell-beginners] Inverse trig functions
Message-ID:
        <cad-ubzga62q3pomicg-xfuxcrnd3gys_4xq7+58ubhabc9x...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

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" <math.simp...@gmail.com> wrote:

>  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 <martin.rude...@gmail.com>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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20130920/270547b5/attachment-0001.html>

------------------------------

Message: 4
Date: Fri, 20 Sep 2013 16:52:37 +0100
From: emacstheviking <obji...@gmail.com>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <beginners@haskell.org>
Subject: [Haskell-beginners] Thrashed again by cabal and libraries...
Message-ID:
        <caeieuuj1swoihmj5_j3sm_n0a3vrf1dooutatoycuxhmran...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I am wanting to use GLFW-b with Haskell on Mountain Lion. However, I think
I have done something wrong along the way.

I end up with "GLFW.initialize" not found when cabal tries to link and I
suspect it is some kind of version conflict going on.

Question: when I "cabal-dev install GLFW-b", how does the build process
know where to find the headers to build with? I installed the latest GLFW
(3.0.2) from the site and built them on the mac and I was not aware of
telling cabal where to look but yet it still built and installed GLFW-b
somehow.

Presumably it looked in /usr/include i.e. all the usual places and was
satisfied enough to have built something.

When I "cabal install" my project however it just keeps saying it can't
find "GLFW.initialize" which means either it can't find any library to link
against or it can't find that function in a library it is finding.

I completely uninstalled GHC/Platform from my Mac to prepare for this
project and so far I have got nowhere!

So, any suggestions on how to make cabal look in a specific folder to
resolve header files and the library I built would be most welcome as I
don't know that much about passing low level compiler and linker flags to
it....I am about to learn.

All the best.
Sean.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20130920/64f9c30a/attachment-0001.html>

------------------------------

Message: 5
Date: Sat, 21 Sep 2013 01:04:55 +0800
From: ??? <wbbti...@gmail.com>
To: Beginners@haskell.org
Subject: [Haskell-beginners] Non-strictness semantics of Haskell
Message-ID:
        <cae4nzfv0jszbfw+pww-rpm8bdxrpj2wzp1cpxqcgpzgea0q...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi,

The Haskell language specification states that it is a non-strict language,
but nothing about the evaluation strategy (like when and how an expression
is evaluated, and to what level). It does mention the word "evaluate"
several times when talking about pattern matching.

I have read a wonderful tutorial (
http://en.wikibooks.org/wiki/Haskell/Laziness) about lazy evaluation and
weak head normal form, but it is just an implemenation strategy of some
compiler, which I should not depend on when writing codes.

I come from a strict language background and I just don't feel right if I
don't understand how my codes are execuated. I wonder why the language
specificition does not define the evaluation strategy.

I hope someone can enlighten me. Thanks!

-- 
spockwang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20130921/8265c6ff/attachment-0001.html>

------------------------------

Message: 6
Date: Fri, 20 Sep 2013 19:55:42 +0200
From: Daniel Trstenjak <daniel.trsten...@gmail.com>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <beginners@haskell.org>
Subject: Re: [Haskell-beginners] question about pattern guards
Message-ID:
        <CAPZ0SW7jCRDQp6jubpNC1=mF36HOPSO1q=ecwozonshyh1a...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

> Why is it not possible to combine them with a logical OR, instead of the
> comma that stands for a logical AND?

The '|' already acts as the "OR", why should you need another one?

Greetings,
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20130920/bb45a7bc/attachment.html>

------------------------------

Subject: Digest Footer

_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://www.haskell.org/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 63, Issue 29
*****************************************

Reply via email to