sqrt(negative)?

Discussion in 'Java' started by Tim Ward, Dec 17, 2004.

  1. Tim Ward

    Tim Ward Guest

    "nick" <> wrote in message
    news:...
    > System.out.println( Math.sqrt(-3.4));
    >
    > it will output NaN
    >
    > what is the meaning of NaN?


    Not a Number.

    --
    Tim Ward
    Brett Ward Limited - www.brettward.co.uk
     
    Tim Ward, Dec 17, 2004
    #1
    1. Advertising

  2. Tim Ward

    nick Guest

    System.out.println( Math.sqrt(-3.4));

    it will output NaN

    what is the meaning of NaN?
     
    nick, Dec 17, 2004
    #2
    1. Advertising

  3. Tim Ward

    nick Guest

    thx
    "Tim Ward" <> ¼¶¼g©ó¶l¥ó·s»D:...
    > "nick" <> wrote in message
    > news:...
    >> System.out.println( Math.sqrt(-3.4));
    >>
    >> it will output NaN
    >>
    >> what is the meaning of NaN?

    >
    > Not a Number.
    >
    > --
    > Tim Ward
    > Brett Ward Limited - www.brettward.co.uk
    >
    >
     
    nick, Dec 17, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. valentin tihomirov

    sqrt in HW

    valentin tihomirov, Sep 12, 2004, in forum: VHDL
    Replies:
    1
    Views:
    1,608
    David Bishop
    Sep 13, 2004
  2. prem_eda
    Replies:
    5
    Views:
    7,877
    Pieter Hulshoff
    Oct 11, 2004
  3. Prune Tracy
    Replies:
    6
    Views:
    1,824
    Ioannis Vranos
    Oct 14, 2004
  4. Aric

    trouble sqrt in gcc

    Aric, Aug 26, 2003, in forum: C Programming
    Replies:
    7
    Views:
    545
    Greg P.
    Aug 27, 2003
  5. Michael McNeil Forbes

    how to overload sqrt in a module?

    Michael McNeil Forbes, Mar 3, 2006, in forum: Python
    Replies:
    14
    Views:
    493
    Steven D'Aprano
    Mar 5, 2006
Loading...

Share This Page