Square

This is a discussion on Square within the C++ Programming forums, part of the General Programming Boards category; Does anyone know something about a "sqr"(square) function?...

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    32

    Square

    Does anyone know something about a "sqr"(square) function?

  2. #2
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    Square roots.
    Away.

  3. #3
    Registered User
    Join Date
    Jul 2003
    Posts
    32
    Not square roots, squares. x^2.

    Of course I could use pow or simply x*x but I thought there's a good chance that some optimized, special purpose square function exists.
    I'm pretty new to VC++ but already impressed by the math features it has, way over VB. I was happy to ran into some really cool functions like _cabs or _hypot, so I thought there could be more to this. I'm looking for powerful, speedy routines.

  4. #4
    Registered User
    Join Date
    Jul 2003
    Posts
    32
    And x*x is not so tricky, but (p->a*m->x+p->b*m->y+p->c*m->z+p->d)*(p->a*m->x+p->b*m->y+p->c*m->z+p->d) is.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Tic Tac Toe Comp Move help
    By swgh in forum C++ Programming
    Replies: 5
    Last Post: 09-24-2008, 12:05 PM
  2. Loop seg error
    By Zishaan in forum Game Programming
    Replies: 2
    Last Post: 03-28-2007, 02:27 PM
  3. Forced moves trouble!!
    By Zishaan in forum Game Programming
    Replies: 0
    Last Post: 03-27-2007, 07:57 PM
  4. Help with my draughts game
    By Zishaan in forum C++ Programming
    Replies: 9
    Last Post: 03-24-2007, 08:33 AM
  5. C++ Checkers Game
    By SnS CEO in forum C++ Programming
    Replies: 9
    Last Post: 09-07-2005, 02:21 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21