Thread: Algebra

  1. #1
    Unregistered
    Guest

    Question Algebra

    How would I use exponents in C++ (ie having a^2+b^2) = c^2

    Anyone know? thanks.

  2. #2
    Fingerstyle Guitarist taylorguitarman's Avatar
    Join Date
    Aug 2001
    Posts
    564
    math.h - pow(), sqrt() and other great math functions in there.
    If a tree falls in the forest, and no one is around to see it, do the other trees make fun of it?

  3. #3
    Unregistered
    Guest
    thanks

  4. #4
    "The Oldest Member Here" Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,039
    hey, does ^ mean 'to the power'?

  5. #5
    Registered User ProgrammingDlux's Avatar
    Join Date
    Jan 2002
    Posts
    86
    >hey, does ^ mean 'to the power'?

    In algebra it does. In C++, I'm sure you know how to use pow().
    "For in fact what is a man in Nature? A Nothing in comparison with the Infinite, an All in comparison with the Nothing, a mean between nothing and everything"- Blaise Pascal

  6. #6
    "The Oldest Member Here" Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,039
    so 4^4 would be sixteen, am i correct

  7. #7
    Registered User ProgrammingDlux's Avatar
    Join Date
    Jan 2002
    Posts
    86
    >so 4^4 would be sixteen, am i correct

    4^2 is 16
    4^4 is 256
    "For in fact what is a man in Nature? A Nothing in comparison with the Infinite, an All in comparison with the Nothing, a mean between nothing and everything"- Blaise Pascal

  8. #8
    "The Oldest Member Here" Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,039
    oh ya..hehe...

  9. #9
    Registered User
    Join Date
    Apr 2002
    Posts
    22

    lol

    i have always thought exponents are just a shortcut. and we all know where shortcuts get u lol.

    just like in coding, you need to understand what is happening in the problem to be able to solve it.

    so from now on, instead of 4^15'th power, make it 4*4*4*4*4*4*4*4*4*4*4*4*4*4*4, and check yourself to make sure ur correct.

    lol if u follow my advice, you will go crazy in a matter of minutes!

    {this post makes no sense} sry :>
    - Visual C++, Adobe Photoshop -

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linear algebra algorithm
    By Cogman in forum C++ Programming
    Replies: 3
    Last Post: 03-09-2009, 08:53 AM
  2. Algebra project
    By treenef in forum C++ Programming
    Replies: 10
    Last Post: 04-03-2005, 04:58 PM
  3. algebra solver
    By treenef in forum C++ Programming
    Replies: 20
    Last Post: 03-18-2005, 12:12 PM
  4. Linear Algebra API
    By curlious in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 01-13-2005, 05:34 PM
  5. Looking for a Boolean Algebra site
    By Majin_Flack38 in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 11-21-2002, 12:03 PM