solving an equation multiple directions
I want to write a function in a computer language like C or Java.
I want the function to solve for one variable then another without
writing the equation twice.
Example:
x = y + z (given y and z)
y = x - z (given x and z)
but without writing two equations to prevent duplication in my code.
Any ideas?
Thanks!
.
Relevant Pages
- Re: solving an equation multiple directions
... On Fri, 16 Jan 2009, Jason wrote: ... writing the equation twice. ... but without writing two equations to prevent duplication in my code. ... Perhaps you want a subroutine. ... (sci.math) - solving an equation multiple directions
... apologize for the simplicity of it. ... writing the equation twice. ... but without writing two equations to prevent duplication in my code. ... (sci.math.symbolic) - RE: Dealing with marketing types...
... get it in writing... ... is the tendency to dump the guythat brought them to the party. ... little pay on the promise that you will be rewarded when/if success comes. ... > having a Java product would make them more attractive. ... (comp.lang.python) - Re: Is it always possible to write a COBOL program using only 1 sentence per paragraph?
... > without writing a line of code. ... > A few months ago I had an introductory class on Java programming. ... Yeah, VB is what many people call a RAD language, for Rapid Application ... Java is very much NOT a RAD language; ... (comp.lang.cobol) - Re: .Net is more memory safe?
... I don't underestimate anybody's intelligence - except somebody who thinks he ... Are you telling me that the people writing to Java or .NET are "more ... What I'm saying is that there are a lot of mediocre programmers ... (borland.public.delphi.non-technical) |
|