Results 1 to 9 of 9

Thread: what is the difference between mobile and calculator?

  1. #1

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,904

    what is the difference between mobile and calculator?

    see these expression:
    Code:
    6/2(2+1)
    on mobile, i get: 9
    on calculator, i get: 1
    seems that the mobile do 1st '6/2'... i belive these is wrong... but can anyone correct me?
    VB6 2D Sprite control

    To live is difficult, but we do it.

  2. #2
    PowerPoster
    Join Date
    Nov 2017
    Posts
    3,116

    Re: what is the difference between mobile and calculator?

    Since there is an implied * between 2 and (2+1), it should go something like this:

    6/2*(2+1) -> 6/2*(3) -> then / and * have the same priority, so working from left to right 6/2=3 and then 3*3=9

    What calculator are you doing this on? On a TI-86 it evaluates to 9.

    On a TI-85, 6/2(2+1) evaluates to 1, but 6/2*(2+1) evaluates to 9. I remember that the TI-85 had a bug/feature where in this exact scenario implied multiplication immediately outside parenthesis was evaluated at a higher priority than when the multiplication symbol was used. Other calculators might do the same I guess.

    My suggestion to avoid ambiguity is to be verbose with symbols and include the * symbol between 2 and (2+1) and you should get the same result on all platforms that properly follow order of operations.
    Last edited by OptionBase1; Dec 18th, 2018 at 09:49 AM.

  3. #3

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,904

    Re: what is the difference between mobile and calculator?

    6/2(2+1) = 6/(4+2) = 6/6 = 1
    is these correct(from what i remember)?
    VB6 2D Sprite control

    To live is difficult, but we do it.

  4. #4
    PowerPoster
    Join Date
    Nov 2017
    Posts
    3,116

    Re: what is the difference between mobile and calculator?

    No.

    http://mathforum.org/library/drmath/view/66676.html

    Inside parenthesis are evaluated first

    6/2(3)

    2(3) implies 2*(3)

    6/2*(3)

    Division and multiplication are of equal priority and are then evaluated left to right

    6/2=3, 3*3=9

  5. #5
    PowerPoster
    Join Date
    Nov 2017
    Posts
    3,116

    Re: what is the difference between mobile and calculator?

    If then intention is to get a response of 1 in this case, then in order for the denominator to equal 6 while following proper order of operations, and additional set of parenthesis are needed to enclose the intended denominator.

    6/(2(2+1))

  6. #6

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,904

    Re: what is the difference between mobile and calculator?

    i must relearn again for i correct my math
    i'm sorry, but can you show me step by step how resolve?
    (i was reading that link.. but i'm Portuguese... maybe you resolve it, i can see better)
    VB6 2D Sprite control

    To live is difficult, but we do it.

  7. #7
    PowerPoster
    Join Date
    Nov 2017
    Posts
    3,116

    Re: what is the difference between mobile and calculator?

    Your best bet would be to try to find a website that discusses Order of Operations that is in your native language. That will be more productive than anything I can offer.

  8. #8

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,904

    Re: what is the difference between mobile and calculator?

    now i have seen the post that you edit and the other one and from what from you said and what i read(thank you so much for the right words for i search) they match very well...
    my 1st calculation wasn't my fault, but what i had learned on school... but seems that somethings was changed(i have 35 years old).
    thank you so much for all... thank you
    VB6 2D Sprite control

    To live is difficult, but we do it.

  9. #9

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,904

    Re: what is the difference between mobile and calculator?

    but maybe i was confused... thank you so much for correct me.. thank you
    VB6 2D Sprite control

    To live is difficult, but we do it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width