I want some code that will make equations based on variables and an end result that the user provides. It takes what information you give it and mixes it with signs and rearranges things until it makes an equation that works. A simple example would be to tell it that you have three variables (2, 6, and 9) and the end result would be 3. It would run until it came up with something like (2 * 9) / 6 = 3 or (2 * 6) - 9 = 3. It can only work with signs and the numbers you give it. It would be able to rearrange variables or even use multiples of the same variable if needed, but it could not introduce new variables. For instance, if it could not make an equation with 2, 6, and 9 then maybe it could if it used another 2 somewhere, but it could not just throw in a 5 to make something work. I would like it to have as wide a range as possible, meaning if it had to make a huge equation to make the numbers work or even use advanced math such as calculus it would be able. The more it can do the more likely it will be able to make equations no matter what you give it. And if all that is possible, I would like it to be taken a step further by making equations using multiple groups of variables and end results. Example: You give it variables (2, 6, 1, 4) with an end result of 1. And you give it (4, 10, 2, 7) with an end result of 0. It would run until it got one equation that fits both, such as (( A + B) / D) - C = X. (( 2 + 6) / 4) - 1 = 1 and (( 4 + 10) / 7) - 2 = 0.
I have implemented a program that is able to create equation using each variable only once.
Few examples here: [login to view URL]
As you can see the result is nice and valid.
Current implementation is written in Groovy and executes in JVM. I will rewrite it in pure Java if needed.
Since the implementation uses each submitted variable and uses it only once, it prints "Not found" if the equation for given input does not exist.
Current limitations: takes reasonable amount of time (~10 seconds) for equations with 6 variables.
Takes too long for more than 6 variables. Can be optimized to gain one more variable if needed.
As for the usage of some of variables several times, in case given input cannot be solved, I can experiment with that, but it would increase the cost of the project (depending on your requirements - let's discuss if you are interested).
Please let me know what you think about this proposal.
Also, if you would like to make sure the app works, send me your input (6 variables + result), and I will send you back correct equations.
$250 USD in 1 day
5.0 (4 reviews)
3.5
3.5
11 freelancers are bidding on average $455 USD for this job
Hi there,
I can do this project on about $150 but as i saw, maybe you made the price is $250 to $750 so i can't bid with lower price. Pls contact me, i'll explain how to change the price to $150.
Best regards,
Duc Nguyen
I Believe that less time and accuracy is more important then any thing Being Exper in java As i stated above i'll done this work in 0 day and off curse on mimimum payment required ...
If youre ok i'll start working right now
HI
I am expert in JAVA and Algorithm
I read your requirement
I can think your program possible through Combinatorial Problems and Search along with A* or Heuristics search
Thanks :)
Hi,
From whatever computer science I know, this problem is solvable if you only use +, -, x, / operators with braces '(', ')'. I don't know how to solve it using any more operators (like calculus operators as you mentioned). If you're interested in this proposal, please PM me. We can work on the pricing depending on the scope of work.
Cheers.
Hi,
There is a flaw in your problem statement, i can use multiple instances of single variable , then this problem is very trivial, for example (2, 6, and 9) = 3
(2/2) + (6/6) + (9/9) = 3 <-- see what i did there? :D
By the way,
I have 5 years of java programming experience. I am very good in algorithms and data structures.
Thanks
Hi! I can do this i know just the way to do this work and work well... Have read complete description but i have one question how will u pay me your payment method is not verified..:(
Hello, I can help you with your project. I have degrees in Math and computational physics. Along with very strong java and matlab coding skills. I can do your project but I have a few qustions about it. What is the application of this project? I look forward to speaking with you more about this.