Thread: Square

  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, 11:05 AM
  2. Loop seg error
    By Zishaan in forum Game Programming
    Replies: 2
    Last Post: 03-28-2007, 01:27 PM
  3. Forced moves trouble!!
    By Zishaan in forum Game Programming
    Replies: 0
    Last Post: 03-27-2007, 06:57 PM
  4. Help with my draughts game
    By Zishaan in forum C++ Programming
    Replies: 9
    Last Post: 03-24-2007, 07:33 AM
  5. C++ Checkers Game
    By SnS CEO in forum C++ Programming
    Replies: 9
    Last Post: 09-07-2005, 01:21 AM