Path: news.mathworks.com!not-for-mail
From: "David Doria" <daviddoria@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: solve equations for integral limits?
Date: Thu, 1 May 2008 17:51:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 11
Message-ID: <fvcvu6$ld4$1@fred.mathworks.com>
References: <fvcopf$mfa$1@fred.mathworks.com> <fvcv2c$h04$1@canopus.cc.umanitoba.ca>
Reply-To: "David Doria" <daviddoria@gmail.com>
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 1209664263 21924 172.30.248.37 (1 May 2008 17:51:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 1 May 2008 17:51:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1105197
Xref: news.mathworks.com comp.soft-sys.matlab:466160



so realizing that solve() uses maple... I used maple syntax:

solve('int(x,x=0..k)=1/2','k')

and it kind of works... the problem is that it returns [1,
-1].  1 is clearly the correct solution, and -1 seems to be
wrong... because if you integrate from 0 to -1, you have to
switch the limits and change the sign... so you actually get
-1/2, not 1/2 as requested...
 
thoughts?