Jump to content

I need help with math (algorithms/calc. efficiency)

Hello !  im currently making a small algorithm to gather money, tax it and give back to the apropiate departments (variables)

 

I am now left with 2 dinstinct equasions. is there a way to combine both in one giant equasion ?

 

I have to end up with all the answers. canan equasion havr more than 1 "=" sign ?

~New~  BoomBerryPi project !  ~New~


new build log : http://linustechtips.com/main/topic/533392-build-log-the-scrap-simulator-x/?p=7078757 (5 screen flight sim for 620$ CAD)LTT Web Challenge is back ! go here  :  http://linustechtips.com/main/topic/448184-ltt-web-challenge-3-v21/#entry601004

Link to post
Share on other sites

Equations can in theory have more than one equals sign, and you see that with the cartesian equation of a 3D line (the equivalent to y=mx+c but in 3D), but usually they don't because you would often want to simplify it further and eliminate one of the terms.

It really depends on the equations that you are using as to whether you can combine them. When you only have one equation, there can only be one unknown for the equation to be solvable, whereas with two equations there can be two different unknowns, and in a lot of circumstances those equations can be solved simultaneously to give the value of both of those variables. The reason why this is the case is that if you have two unknowns, that is like having the equation x+y=4 - there are an infinite number of points on that line, so there is no single correct answer. On the other hand, if you have x+y=4 and 3x+2y=1, they meet at a single point, so you can know what x and y are at that exact point, and it is the only point (in this example) that satisfies both of those equations.

 

What are the equations that you have?

HTTP/2 203

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×