Re: Solve Function
- To: mathgroup at smc.vnet.net
- Subject: [mg44970] Re: Solve Function
- From: "Mukhtar Bekkali" <mbekkali at hotmail.com>
- Date: Thu, 11 Dec 2003 05:28:20 -0500 (EST)
- Organization: Iowa State University
- References: <br6oqv$2lb$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Since I am new to Mathematica I am not entirely sure but I think you can use Table to create a matrix, say T, with g[x]-f[x] for different parameter values. Then, if your X is the vector of solutions you can probably do Solve[T.X==0,X] which would give vector of solutions X. Good luck. "Gregory Lypny" <gregory.lypny at videotron.ca> wrote in message news:br6oqv$2lb$1 at smc.vnet.net... > Hello Everyone, > > I've got a question about the Solve function. I read in the > Mathematica Book that Solve can handle a set of simultaneous equations > (page 88) and that the syntax for the function is to list each equation > followed by the variables to solve for. What if all of the equations > have the same form, say, because they're constraints in the first-order > conditions of an optimization? I'm wondering whether Solve can handle > a neater specification in matrix form, something along the lines of > > Solve[f[x]==g[x], x], > > where x is a vector of variables {x1, x2, x3, ... , xn}. It would save > a lot of typing. I've tried to feed solve a variable defined as an > array, but I keep getting errors to the effect that the equation is not > well formed. > > Greg >