- Home /
Question is off-topic or not relevant
How do I solve the unknown values in an equation?
Hello people,
I am writing a little and simple fluid statics program to calculate with buoyancy. To calculate that there are a few formulas. And i want the program to give me the unknown values in the equation. E.G. I have this formula which calculates the fluid pressure at a point and the general pressure intensity formula:
void Update () {
#region Formulas
//General Pressure Intensity [ p = F/A ]
Pressure = Force / Area;
//Fluid Pressure at a Point [ p = ρ * g * y ]
Force = (Density * EarthsGravity * Area * DistanceSurfaceToPoint);
#endregion
}
If I give values to the density, gravity, area and the distance(y) The program gives me the force and the pressure. Just like I want it. But when I give the force and the pressure, and the gravity and the density, I don't get the area and the distance(y).
Probably it is quite obvious for the more experienced Unity3D users. But I am stuck. I have googled alot, but without any results.
Sorry for spelling/grammar mistakes, English is not my mother language.
Thanks in advance!