Defining variables in the context of implicit functions in java

In summary, the conversation is about the difficulty of defining a variable within an implicit function in Java. The person has tried rearranging the function to solve for the variable, but has been unsuccessful. They mention a tool called TK Solver that can solve for a variable given all other values, but they have found a workaround for their current project. They also express interest in exploring the TK Solver tool for future projects.
  • #1
Essence
38
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:
Screen Shot 2015-07-14 at 1.45.10 PM.png


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,
 
Technology news on Phys.org
  • #2
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 Essence
  • #3
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!
 

Related to Defining variables in the context of implicit functions in java

1. What are variables in the context of implicit functions in Java?

Variables in the context of implicit functions in Java are values that are used to store data or information. They are declared with a specific data type and can be assigned different values throughout the program. These variables can also be used as parameters in implicit functions to manipulate the stored data.

2. How do you define variables in the context of implicit functions in Java?

In Java, variables are defined by specifying the data type, followed by the variable name, and an optional initial value. For example, int num = 5; defines an integer variable named "num" with an initial value of 5. Variables can also be defined within implicit functions, using the var keyword.

3. What is the purpose of variables in implicit functions in Java?

The purpose of variables in implicit functions is to store and manipulate data. They allow for the dynamic and efficient use of data within the program. By using variables, we can make our code more flexible and reusable, as they can be assigned different values depending on the input or conditions.

4. Can variables be changed in implicit functions?

Yes, variables can be changed in implicit functions. Since variables are used to store data, they can be assigned different values throughout the program. This allows for the manipulation of data within the implicit function, making it more dynamic and adaptable to different inputs and conditions.

5. Are there any best practices for naming variables in the context of implicit functions in Java?

Yes, there are some best practices for naming variables in Java. It is recommended to use meaningful and descriptive names for variables, as it makes the code more readable and understandable. Variable names should also follow camel case convention, starting with a lowercase letter and using uppercase letters for each subsequent word. Additionally, it is important to avoid using reserved keywords and to use consistent naming conventions throughout the program.

Similar threads

  • Programming and Computer Science
Replies
1
Views
1K
  • Programming and Computer Science
Replies
26
Views
2K
  • Programming and Computer Science
Replies
2
Views
1K
  • Programming and Computer Science
2
Replies
65
Views
3K
  • Programming and Computer Science
Replies
6
Views
2K
  • Programming and Computer Science
Replies
8
Views
1K
  • Programming and Computer Science
Replies
3
Views
3K
  • Programming and Computer Science
Replies
18
Views
8K
  • Programming and Computer Science
Replies
1
Views
609
  • Programming and Computer Science
Replies
5
Views
1K
Back
Top