Path: news.mathworks.com!newsfeed-00.mathworks.com!NNTP.WPI.EDU!elk.ncren.net!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: solve equations for integral limits?
Date: Thu, 1 May 2008 18:06:23 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 17
Message-ID: <fvd0qv$ji7$1@canopus.cc.umanitoba.ca>
References: <fvcopf$mfa$1@fred.mathworks.com> <fvcv2c$h04$1@canopus.cc.umanitoba.ca> <fvcvu6$ld4$1@fred.mathworks.com>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1209665183 20039 192.70.172.160 (1 May 2008 18:06:23 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Thu, 1 May 2008 18:06:23 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:466162



In article <fvcvu6$ld4$1@fred.mathworks.com>,
David Doria <daviddoria@gmail.com> wrote:
>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...

Recall what I said about maple doing the int() before it does the
solve. The int() is going to be k^2/2, and solving k^2/2=1/2 
is going to give +/- 1.
-- 
'Roberson' is my family name; my given name is 'Walter'.