Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Ever get stuck on a formula?

Ever get stuck on a formula?

Scheduled Pinned Locked Moved The Lounge
comhelpquestion
22 Posts 16 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J jerryr4

    It's trivial https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley\_wink.gif, even after almost 60 years away from Grammar School in England. The steps are, using C formulae: a / (a + b) = c / d Multiply both sides by (a + b) a = (a + b) * c / d Collect the terms in a a - a * c / d = b * c / d Collect the coefficients of a a * (1 - c / d) = b * c / d Divide both sides by (1 - c / d) a = b * c / d / (1 - c / d) Simplify a = b * c / (d - c) Hope that's right, solved before you would have found the program In those good old days you got the algebra beaten into you Show-off Jerry

    U Offline
    U Offline
    User 11319743
    wrote on last edited by
    #21

    I got a slightly different (if not simpler) answer. a/(a+b) = c/d a = c/d*(a+b) a*d/c = a+b a*d/c -a = b a*(d/c -1) = b a=b/(d/c-1) Which if you multiply the numerator & denominator by c you'll get the answer the machine reports.

    1 Reply Last reply
    0
    • K kmoorevs

      Last week while working on a new report, I needed a formula that would calculate a shortage/overage for a variable and had the equation worked out as follows: a/(a+b) = c/d where I was solving for the variable a. It's been 30 years since I had algebra, and I struggled with a half dozen attempts at getting 'a' by itself on the left side, but nothing checked out. On a hunch, I did a quick google search and found this: https://www.mathway.com/Algebra[^] All you do is type in your formula, then it asks which variable you want to solve for. Brilliant!

      "Go forth into the source" - Neal Morse

      M Offline
      M Offline
      maze3
      wrote on last edited by
      #22

      oh wow, thanks. helped prove that the following does simplify (A / (B * C) ) * B simplifies to A / C

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups