Solve Equation with unknowns

Just starting out? Need help? Post your questions and find answers here.
User avatar
VB6_to_PBx
Enthusiast
Enthusiast
Posts: 625
Joined: Mon May 09, 2011 9:36 am

Solve Equation with unknowns

Post by VB6_to_PBx »

Solve Equation with unknowns :

Code: Select all

617.365264854623888 = ((543.12314272 + 227.95) * 1.09628415) - 227.95
How can i Solve for 227.95
from the above equation ,
that is , rearrange the above equation to calculate 227.95 ??

227.95 = ??
 
PureBasic .... making tiny electrons do what you want !

"With every mistake we must surely be learning" - George Harrison
User avatar
Josh
Addict
Addict
Posts: 1183
Joined: Sat Feb 13, 2010 3:45 pm

Re: Solve Equation with unknowns

Post by Josh »

Code: Select all

617.365264854623888 = ((543.12314272 + 227.95) * 1.09628415) - 227.95
227.95 = (617.365264854623888 - 543.12314272 * 1.09628415) / (1.09628415 - 1)
sorry for my bad english
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3870
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: Solve Equation with unknowns

Post by wilbert »

Josh is right :)
Or to put it into a formula

Code: Select all

n0.d = 617.365264854623888
n1.d = 543.12314272
n2.d = 1.09628415

result.d = (n0 - n1 * n2) / (n2 - 1)

Debug "x= "+StrD(Result)
Windows (x64)
Raspberry Pi OS (Arm64)
User avatar
Josh
Addict
Addict
Posts: 1183
Joined: Sat Feb 13, 2010 3:45 pm

Re: Solve Equation with unknowns

Post by Josh »

Did here anybody quickly have to do his homework early in the morning? :D
sorry for my bad english
said
Enthusiast
Enthusiast
Posts: 342
Joined: Thu Apr 14, 2011 6:07 pm

Re: Solve Equation with unknowns

Post by said »

x.d = ((543.12314272 + 227.95) * 1.09628415) - 617.365264854623888
Debug x
Cyllceaux
Enthusiast
Enthusiast
Posts: 469
Joined: Mon Jun 23, 2014 1:18 pm
Contact:

Re: Solve Equation with unknowns

Post by Cyllceaux »

Josh wrote:Did here anybody quickly have to do his homework early in the morning? :D
+1
:D

(I miss the "thumbs up" feature in this forum)
User avatar
NicTheQuick
Addict
Addict
Posts: 1227
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: Solve Equation with unknowns

Post by NicTheQuick »

I don't think he wants that simple equation to be solved but rather wants it to be solved programmatically.
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
User avatar
Josh
Addict
Addict
Posts: 1183
Joined: Sat Feb 13, 2010 3:45 pm

Re: Solve Equation with unknowns

Post by Josh »

said wrote:x.d = ((543.12314272 + 227.95) * 1.09628415) - 617.365264854623888
Debug x
No good solution. The result is in the rhs-part too :?
NicTheQuick wrote:I don't think he wants that simple equation to be solved but rather wants it to be solved programmatically.
Thought this at beginning too. But to solve a formula programmatically, the question had to be much more general.
sorry for my bad english
User avatar
VB6_to_PBx
Enthusiast
Enthusiast
Posts: 625
Joined: Mon May 09, 2011 9:36 am

Re: Solve Equation with unknowns

Post by VB6_to_PBx »

Josh wrote:

Code: Select all

617.365264854623888 = ((543.12314272 + 227.95) * 1.09628415) - 227.95
227.95 = (617.365264854623888 - 543.12314272 * 1.09628415) / (1.09628415 - 1)
i didn't think i'd get so many quick Replies
Thanks Josh , Wilbert , and said ..... very much appreciated !

its no real School Homework ,
i just wanted to reverse-engineer SuperFlow's Engine Dyno Friction Torque value

Josh i had this :
(617.365264854623888 - 543.12314272) / (1.09628415 - 1)

but just could not solve it and get to your correct solution here :
227.95 = (617.365264854623888 - 543.12314272 * 1.09628415) / (1.09628415 - 1)


reverse engineer Friction Torque from CBTQ , UBTQ , and SAE J607 STP Weather Correction Factor

Friction Torque Lbs-Feet = 227.95 from SuperFlow Linear Spline Lookup Table with 3.800 = Stroke @ 8100 RPM = 5130.0 FPM Piston Speed

Engine Size = 505.21836418 Cubic Inches Cylinders = 8 Bore = 4.60000 Stroke = 3.80000
Peak HP RPM = 8100 Corrected Brake TQ = 617.36569824 UnCorrected Brake TQ = 543.12314272
Peak HP RPM = 8100 Corrected Brake HP = 952.12387010 UnCorrected Brake HP = 837.62429637

SuperFlow SAE J607 (June1974) STP Weather Correction Factor = 1.09628415
SuperFlow SAE J607 (June1974) STP Weather + Friction Correction Factor = 1.13669562 @ 8100 RPM
SuperFlow Air Correction = 0.87050582
SuperFlow Air Density Lbs./CuFt = 0.06641959
Actual Air Density % PerCent = 89.61399223
Actual Air Density Lbs./CubicFoot= 0.0685316293 Actual Air Density KG/M3 = 1.0977714048
 
PureBasic .... making tiny electrons do what you want !

"With every mistake we must surely be learning" - George Harrison
User avatar
NicTheQuick
Addict
Addict
Posts: 1227
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: Solve Equation with unknowns

Post by NicTheQuick »

Everytime I see inches and other imperial units my eyes hurt. :shock:
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
User avatar
VB6_to_PBx
Enthusiast
Enthusiast
Posts: 625
Joined: Mon May 09, 2011 9:36 am

Re: Solve Equation with unknowns

Post by VB6_to_PBx »

NicTheQuick wrote:Everytime I see inches and other imperial units my eyes hurt. :shock:
i feel the same way .. but in opposite English Units direction :D

with just a Mouse click , it converts over to Metric Units

here's a ScreenShot of English Units inputs .. but with Metric Units also displayed :

Image
 
PureBasic .... making tiny electrons do what you want !

"With every mistake we must surely be learning" - George Harrison
User avatar
Josh
Addict
Addict
Posts: 1183
Joined: Sat Feb 13, 2010 3:45 pm

Re: Solve Equation with unknowns

Post by Josh »

NicTheQuick wrote:Everytime I see inches and other imperial units my eyes hurt. :shock:
I love it. Anglo-american units of length :mrgreen: :mrgreen: :mrgreen:
sorry for my bad english
ccode
User
User
Posts: 99
Joined: Sat Jun 23, 2018 5:21 pm

Re: Solve Equation with unknowns

Post by ccode »

I have a nice quote here:

"In the metric system, one milliliter of water fills a space of exactly one cubic centimeter, weighs one gram, and needs one calorie to heat it by one degree Celsius, which equals one percent of the difference between its freezing and boiling points.
A quantity of hydrogen of the same weight contains exactly one mole of atoms.

In the American system, however, one can not calculate these units directly. So, when asked, "How much energy does it take to bring a gallon of room-temperature water to a boil?" reasonable way only with "F *** you!" reply."

Author:
Unknown

Everything has its advantages and disadvantages.

But the systems should never be mixed.
User avatar
VB6_to_PBx
Enthusiast
Enthusiast
Posts: 625
Joined: Mon May 09, 2011 9:36 am

Re: Solve Equation with unknowns

Post by VB6_to_PBx »

ccode wrote:I have a nice quote here:

"In the metric system, one milliliter of water fills a space of exactly one cubic centimeter, weighs one gram, and needs one calorie to heat it by one degree Celsius, which equals one percent of the difference between its freezing and boiling points.
A quantity of hydrogen of the same weight contains exactly one mole of atoms.

In the American system, however, one can not calculate these units directly. So, when asked, "How much energy does it take to bring a gallon of room-temperature water to a boil?" reasonable way only with "F *** you!" reply."

Author:
Unknown

Everything has its advantages and disadvantages.


But the systems should never be mixed.
my Digital Thermostat went out on my old Central AC Unit
they replaced it with a new upgraded Digital Thermostat
that had options to use + display either Fahrenheit or Celsius or Centigrade degrees

the problem was it was controlling temperature thru about a 4 degree spread like +2 above the setting to -2 deg below the setting
the AC Guy said it looks like its controlling the temp with Centigrade degrees , even though its setup to use Fahrenheit degrees

so for about a year that upgraded Digital Thermostat was a hassle :evil:

sort of luckily , the AC Unit went out
i replaced it with new Lennox signature series 5 ton 2-stage AC Unit
with WiFi Digital Thermostat that controls temperature +- 1.0 deg Fahrenheit scale ... what a great AC Unit 8)

super comfortable Day and Night with it constantly maintaining within +- 1.0 DegF temps
... best was it cut my Electric Bill down $$$ more than half !!!

So if i had this AC Unit setup to use Centigrade degrees ... would it control temps to + or - 1.0 degrees ??
1.0 degC = 1.8 DegF

example i set the AC at 24.0 DegC = 75.2 DegF
if the Digital Thermostat maintains 24.0 DegC to within + or - 1.0 DegC then its equal to 73.4 DegF to 77.0 DegF = 3.6 deg F range ... back to room temp hassle :evil:

Those with Digital Thermostat reading in Centigrade degrees
what do you set your Thermostat to if you wanted just a 1.0 DegF change ???
could you enter in a DegC temp like 24.44444 to get 76.0 DegF room temperature

are your Digital Thermostat's readings in 1.0 degC increments ? or can you input 1/2 degC ??
 
PureBasic .... making tiny electrons do what you want !

"With every mistake we must surely be learning" - George Harrison
Post Reply