Results 1 to 4 of 4

Math Help - Algebraic statement

  1. #1
    Newbie
    Joined
    Sep 2010
    Posts
    2

    Algebraic statement

    Hi all,

    I'm learning programming at the moment but my maths has never been great. They often use statements but they keep using one which I cannot get my head around which could for examlpe be:

    x=3
    x=x*17

    What i don't understand is if you sub in 3 for x in the 2nd statement then the statement would read:

    3=3*17

    How is that possible that 3 can be equal to a number other than 3? It doesn't make sense to me at all???

    Really appreciate any help.

    Thanks
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Junior Member RHandford's Avatar
    Joined
    Sep 2010
    From
    N.E. Lincolnshire
    Posts
    70
    Hi

    In that case what they are stating is the following:-

    Take the value in the variable called X, then multiply by 17, and store the result back into the same variable (x). So to start with x=3, when the statement has finished then x will equal 51.

    Cheers!
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by Yetirat View Post
    Hi all,

    I'm learning programming at the moment but my maths has never been great. They often use statements but they keep using one which I cannot get my head around which could for examlpe be:

    x=3
    x=x*17

    What i don't understand is if you sub in 3 for x in the 2nd statement then the statement would read:

    3=3*17

    How is that possible that 3 can be equal to a number other than 3? It doesn't make sense to me at all???

    Really appreciate any help.

    Thanks
    This is programming not mathematics. Here "=" is the assignment operator not an equality sign. Other languages will use ":=" or even "<-" to indicate that this is not an equation but an assignment.

    CB
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Newbie
    Joined
    Sep 2010
    Posts
    2

    Thanks

    I understand now.

    Thanks for your help peeps!
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Statement neg
    Posted in the Discrete Math Forum
    Replies: 4
    Last Post: August 28th 2011, 08:02 AM
  2. Replies: 2
    Last Post: April 10th 2011, 07:26 PM
  3. Replies: 4
    Last Post: April 5th 2010, 07:33 AM
  4. Disprove a statement
    Posted in the Algebra Forum
    Replies: 2
    Last Post: April 14th 2009, 08:57 PM
  5. logic statement
    Posted in the Math Topics Forum
    Replies: 4
    Last Post: September 16th 2008, 06:36 AM

Search Tags


/mathhelpforum @mathhelpforum