Thread: Anybody understand Postfix expressions

Page 2 of 2 FirstFirst 12
Results 21 to 24 of 24
  1. #21 Re: Anybody understand Postfix expressions 
    GT Level Member RegalGS98s's Avatar
    Join Date
    Oct 2010
    Location
    NJ
    Posts
    369
    Thanks (Received)
    0
    Likes (Received)
    0
    Dislikes (Received)
    0
    Quote Originally Posted by DrunkieTheBear View Post
    Cause they are actually kicking my ass....

    Here's the expression:
    70 14 4 5 15 3 / * - - / 6 + =

    I came up with -18

    Work:
    (70 / 14) - 4 - 5 * (15 / 3) + 6
    (5) - 4 - 5 * (5) + 6
    1 - 25 + 6
    -24 + 6
    -18

    Anybody got any input?
    You guys are funny. For the original question, not sure if the others were just BSing cause they didn't show their work like you. I havn't done postfix expressions or reverse Polish ( I guess Polish are backwards LOL), but I'm really good with math, Algebra and the sorts. I havn't done programming since I was in school, but if you post a similar length problem from a text book with the answer. I'm pretty sure I can figure this one out. Googling, I only found problems with about 4 numbers. If I figure it out before you post something from a book, I'll post again. Your work looks good using PEMDAS, but I don't know how to translate to the first line of your work.
    SMGPFC #0330 - 3.25, Intercooled, Custom Tune, 1.84rr, LS6 Springs, roller timing chain, SLP Headers, Borla Exhaust, built Trans, B&M Trans Cooler, home cut poly uppers, gapless rings, N* TB, Ported heads.
    Soontocome: CAM?, Custom modified M112, home poured Poly Engine and Trans mounts
    Reply With Quote  
     

  2. #22 Re: Anybody understand Postfix expressions 
    I live here. SlowNA06's Avatar
    Join Date
    Mar 2010
    Location
    Pennsylvania
    Posts
    5,928
    Thanks (Received)
    0
    Likes (Received)
    0
    Dislikes (Received)
    0
    Super-honest, the calculator is never wrong. Always check your work with a calculator.
    Reply With Quote  
     

  3. #23 Re: Anybody understand Postfix expressions 
    GT Level Member RegalGS98s's Avatar
    Join Date
    Oct 2010
    Location
    NJ
    Posts
    369
    Thanks (Received)
    0
    Likes (Received)
    0
    Dislikes (Received)
    0
    Quote Originally Posted by SlowNA06 View Post
    Super-honest, the calculator is never wrong. Always check your work with a calculator.
    Ah, didn't know you guys were using calculators. We weren't allowed. I always had to write it out to show how I got the answer even if I did it in my head.
    SMGPFC #0330 - 3.25, Intercooled, Custom Tune, 1.84rr, LS6 Springs, roller timing chain, SLP Headers, Borla Exhaust, built Trans, B&M Trans Cooler, home cut poly uppers, gapless rings, N* TB, Ported heads.
    Soontocome: CAM?, Custom modified M112, home poured Poly Engine and Trans mounts
    Reply With Quote  
     

  4. #24 Re: Anybody understand Postfix expressions 
    #Billsnamechangessuck MrPoopyButthole's Avatar
    Join Date
    Jul 2009
    Location
    127.0.0.1
    Posts
    15,112
    Thanks (Received)
    1
    Likes (Received)
    0
    Dislikes (Received)
    0
    Non-scientific calculators don't take in to consideration the order of operations.

    anyways, I got my homework back and I had it right along with all the other postfix expressions on the homework.

    Who wants to do my Stacks and Queues Coding?

    Cry havoc and let slip the dogs of war.
    2004 Saab 9-5 Aero - WAHSAABI - Way too much power/Koni FSD & Hirsch Springs/Big Sways - DD/AutoX'r
    2007 Ford F-150 Lariat - 5.4L V8 - Bill secretly likes it
    2015 Mitsubishi Outlander Sport SE - Wifey Mobile
    Reply With Quote  
     

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Looking at some head-work, don't understand some things
    By copgtp in forum 3.8L V6 Supercharged (L67)(L32)
    Replies: 21
    Last Post: 12-31-2009, 11:23 AM
  2. People who dont understand what a Low gas light is...
    By TorqueAutoMotiv in forum The Rant Forum
    Replies: 15
    Last Post: 08-20-2009, 10:19 AM
  3. help me to understand
    By vailskier3 in forum General Tech Discussion
    Replies: 15
    Last Post: 03-22-2009, 09:50 AM
  4. Engine Guru's, Help Me Understand Ignition Timing
    By SyntheticShield in forum 3.8L V6 Supercharged (L67)(L32)
    Replies: 26
    Last Post: 03-19-2008, 04:28 AM
  5. Wacky expressions
    By Andrew_99GTP in forum Off Topic Discussion
    Replies: 26
    Last Post: 01-07-2008, 09:28 PM
Tags for this Thread

View Tag Cloud

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