matlab - A system or language to reverse equations? -


lets have simple equation follows:

x = 50 * (20 * item) 

is there system or language reverse automatically? lets have x input , want find out item is.

item = (x - 50) / 20 

a trivial , misleading example, illustrate point. i'm not talking solving equations least squares fitting or such, instead system can reverse equations generating have code hand. i'm not mathematician forgive incorrect terminology (if any).

a colleage of mine said matlab can natively. has idea how? can specify inputs have , output i'm looking for? or have use inbuilt math functions handwritten reversed equation?

you're looking http://www.mathworks.com/help/symbolic/solve.html

you should first declare symbolic variable: syms item , then: solve(x == 50 * (20 * item), item) should give you're looking for.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -