Thread: Maths Question about Braces ({[]})

  1. #1
    Code Monkey Davros's Avatar
    Join Date
    Jun 2002
    Posts
    812

    Maths Question about Braces ({[]})

    Hi there,

    What is the proper distinction between the different brace/parenthesis notations:

    Code:
    {}
    []
    ()
    when used in math (not programming)?
    OS: Windows XP
    Compilers: MinGW (Code::Blocks), BCB 5

    BigAngryDog.com

  2. #2
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    This depends on how they are used. here are some common ones

    {} - used for set theory ex. { x | f(x) < 4 }
    () - used for function notation as shown above f(x)
    () - used for order of operations ex. (3 - x) * ( (x / 2) / y )
    () [] - used for exclusive/inclusive intervals ex. [3, 6) Three to six including 3 but not 6
    etc...

  3. #3
    Code Monkey Davros's Avatar
    Join Date
    Jun 2002
    Posts
    812
    Good stuff. Thanks.
    OS: Windows XP
    Compilers: MinGW (Code::Blocks), BCB 5

    BigAngryDog.com

  4. #4
    ___
    Join Date
    Jun 2003
    Posts
    806
    Quote Originally Posted by Perspective
    () [] - used for exclusive/inclusive intervals ex. [3, 6) Three to six including 3 but not 6
    etc...


    Are you talking about arrays?
    "When I die I want to pass peacefully in my sleep like my grandfather did, not screaming and yelling like the passengers in his car."

  5. #5
    Registered User
    Join Date
    May 2003
    Posts
    195
    Quote Originally Posted by ZakkWylde969
    Are you talking about arrays?
    No no, what he means is that if you have a graph of like a Domain or Range you write

    [-5, 3) that means all numbers work from -5 to 3 but 3 is not included so basically everything between -5 to 2.999999999999

  6. #6
    ___
    Join Date
    Jun 2003
    Posts
    806
    Oh ok. That's really cool actually. No longer will I have to write everything then add another


    x =/= #
    "When I die I want to pass peacefully in my sleep like my grandfather did, not screaming and yelling like the passengers in his car."

  7. #7
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Posts
    2,572
    [] also used for evaluating integrals with the limits writen in the upper and lower corner of the "]" - I've seen some text books do it.

    some entropy with that sink? entropysink.com

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

  8. #8
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    [] are occasionally used for () in order-of-ops for clarity reasons (I do this often). E.g. ([4x * (3 - 2x)] / 6). I've never seen {} used that way, though. Also, {} is sometimes used for series notation. E.g. {a^i} with a lower limit on the bottom corner of the '}' and an upper limit on the '}' (if applicable).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. another do while question
    By kbpsu in forum C++ Programming
    Replies: 3
    Last Post: 03-23-2009, 12:14 PM
  2. Maths question ?????
    By ssharish2005 in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 05-26-2008, 05:53 PM
  3. Design layer question
    By mdoland in forum C# Programming
    Replies: 0
    Last Post: 10-19-2007, 04:22 AM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  5. opengl DC question
    By SAMSAM in forum Game Programming
    Replies: 6
    Last Post: 02-26-2003, 09:22 PM