Path: news.mathworks.com!not-for-mail
From: "evan klinger" <eklinger1-nospam@cox.net>
Newsgroups: comp.soft-sys.matlab
Subject: Solve Equation Symbolically
Date: Mon, 12 Nov 2007 19:24:43 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 18
Message-ID: <fha99r$osc$1@fred.mathworks.com>
Reply-To: "evan klinger" <eklinger1-nospam@cox.net>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1194895483 25484 172.30.248.37 (12 Nov 2007 19:24:43 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 12 Nov 2007 19:24:43 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1181482
Xref: news.mathworks.com comp.soft-sys.matlab:437149



Good afternoon all,

I am trying to solve the equation cv3 below using the solve
command but for some reason Matlab is not able to solve for
x. Or it returns strange constants in the result. It also
sometimes is dropping some of the symbols. I am just trying
to find out what x equals to. Any help would be greatly
appreciated.
cv0, p[n], x, db and cr are all symbols

cv1 = (cv0 + p1 - (x)*(db-cv0))*(1+cr)
cv2 = (cv1 + p2 - (x)*(db-cv1))*(1+cr)
cv3 = (cv2 + p3 - (x)*(db-cv2))*(1+cr)

I was using solve(cv3, 'x') but this is giving strange
constants.