Solving for an unknown variable in a complex equation in Java

2 replies · 2K views · last reply
Essence
Messages
38
Reaction score
6
Sorry for the disturbance,

So I have been looking (without success) for a way to define a variable within an implicit function in Java. What I really mean by this is I have the equation:
Equation (1-25): Ax/At equals the square root of ((gamma+1)/(gamma-1)) times [1 - (px/(pc)ns)^((gamma-1)/gamma)], multiplied by (2/(gamma+1))^(1/(gamma-1)) times ((pc)ns/px)^(1/gamma), with an overall square root sign.


In this function my program will give me all of the values except for px. I have tried rearranging the function in terms of px unsuccessfully (I'm not even sure if this is possible). Either way, it would be much easier for me to simply type in the function as it is and have Java figure out what the value of the variable I am looking for is. I was wondering if anyone knew how to do that.

Thanks for reading,
 
Seems solvable (java reference ) .

I used this cool tool a while back called TK Solver. You give it everything but 1 variable and it returned that answer magically http://www.uts.com/ItemDetails.asp?ItemID=0100-50-0010-00.
 
  • Like
Likes   Reactions: Essence
I found a way around the issue since I'm allowed to approximate. The software you mentioned is definitely interesting and I think I will take a look at it as I begin my next project. Thanks!