Thread: Knowing my math

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #9
    Registered User
    Join Date
    Oct 2006
    Location
    Canada
    Posts
    1,243
    Quote Originally Posted by Wokzombie View Post
    For example the number 0.0000000000000005 is 0.5 to the power of -15 (correct?) which can be written in C as 0.5E-15.
    The latter part is right, but not the former. 0.5^(-15), or "0.5 to the power of -15" is not the number you've shown (0.000...0005). This long number you've shown is 0.5 x 10^(-15). This is what "scientific notation" is, its basically multiplying some number (in this case 0.5) by a power of 10 (in this case to the power -15). The "0.5E-15" is a way of representing "scientific notation". So "0.5E-15" is a way of writing "0.5 x 10^(-15)".

    As for your concerns: once you get into it, math is actually an incredible and very powerful tool. However, and this is in accordance with what others are saying, "programming" doesn't require much math. All of the math I have studied I don't, and I know I probably won't in the near future, apply when "programming". What I have got out of studying math for practical purposes is a way to think more critically and abstractly.
    Last edited by nadroj; 03-04-2010 at 01:04 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Doing aweful in math, but decent in CS?
    By psychopath in forum General Discussions
    Replies: 2
    Last Post: 11-04-2009, 09:49 AM
  2. Help with C++ Math
    By aonic in forum C++ Programming
    Replies: 4
    Last Post: 01-29-2005, 04:40 AM
  3. Basic Math Problem. Undefined Math Functions
    By gsoft in forum C Programming
    Replies: 1
    Last Post: 12-28-2004, 03:14 AM
  4. Math Header?
    By Rune Hunter in forum C++ Programming
    Replies: 26
    Last Post: 09-17-2004, 06:39 AM
  5. toughest math course
    By axon in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 10-28-2003, 10:06 PM