Where is sqrt defined?

Discussion in 'C++' started by PengYu.UT@gmail.com, Nov 21, 2005.

  1. Guest

    I know there are several version of sqrt. Would you please tell me
    where sqrt<std::complex<double> > is defined?

    Thanks,
    Peng
     
    , Nov 21, 2005
    #1
    1. Advertising

  2. wrote:
    > I know there are several version of sqrt. Would you please tell me
    > where sqrt<std::complex<double> > is defined?


    Probably in <complex>.

    V
     
    Victor Bazarov, Nov 21, 2005
    #2
    1. Advertising

  3. Guest

    math.h i think
     
    , Nov 21, 2005
    #3
  4. Ferdi Smit Guest

    wrote:
    > math.h i think
    >


    If so, that'd be <cmath> for C++ actually.

    --
    Regards,

    Ferdi Smit (M.Sc.)
    Email:
    Room: C0.07 Phone: 4229
    INS3 Visualization and 3D Interfaces
    CWI Amsterdam, The Netherlands
     
    Ferdi Smit, Nov 22, 2005
    #4
  5. Pete Becker Guest

    Ferdi Smit wrote:
    > wrote:
    >
    >> math.h i think
    >>

    >
    > If so, that'd be <cmath> for C++ actually.
    >


    math.h works just fine in C++.

    --

    Pete Becker
    Dinkumware, Ltd. (http://www.dinkumware.com)
     
    Pete Becker, Nov 22, 2005
    #5
    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,631
    David Bishop
    Sep 13, 2004
  2. Tim Ward

    sqrt(negative)?

    Tim Ward, Dec 17, 2004, in forum: Java
    Replies:
    2
    Views:
    565
  3. Oodini
    Replies:
    1
    Views:
    1,836
    Keith Thompson
    Sep 27, 2005
  4. Nick Matzke

    global name 'sqrt' is not defined

    Nick Matzke, Feb 5, 2009, in forum: Python
    Replies:
    1
    Views:
    1,215
  5. M.-A. Lemburg

    Re: global name 'sqrt' is not defined

    M.-A. Lemburg, Feb 5, 2009, in forum: Python
    Replies:
    5
    Views:
    988
    Robert Kern
    Feb 6, 2009
Loading...

Share This Page