clisp and gclisp give different answer for the same problem, not related to texmacs/maxima interface
Subject: clisp and gclisp give different answer for the same problem, not related to texmacs/maxima interface
From: Javed Alam
Date: Fri, 19 Sep 2003 02:31:21 -0400
David
Thanks for the tips both of the approaches suggested by you worked in
getting
maxima{compiled with clisp} shell to open up in texmacs
{winxp/win200/cygwin/}. However, that is not the end
of my problems. I tried to solve this 2nd order differential equation
and end up with
a wrong answer because if I try doing the same with maxima compiled with
GCL I get the
right answer. Did some body else had the same problem?
$ maxima
i i i i i i i ooooo o ooooooo ooooo ooooo
I I I I I I I 8 8 8 8 8 o 8 8
I \ `+' / I 8 8 8 8 8 8
\ `-+-' / 8 8 8 ooooo 8oooo
`-__|__-' 8 8 8 8 8
| 8 o 8 8 o 8 8
------+------ ooooo 8oooooo ooo8ooo ooooo 8
Copyright (c) Bruno Haible, Michael Stoll 1992, 1993
Copyright (c) Bruno Haible, Marcus Daniels 1994-1997
Copyright (c) Bruno Haible, Pierpaolo Bernardi, Sam Steingold 1998
Copyright (c) Bruno Haible, Sam Steingold 1999-2003
Maxima 5.9.0 http://maxima.sourceforge.net
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
This is a development version of Maxima. The function bug_report()
provides bug reporting information.
;; Loading file /usr/local/share/maxima/5.9.0/share/maxima-init.lisp ...
;; Loaded file /usr/local/share/maxima/5.9.0/share/maxima-init.lisp
(C1) 'diff(x,t,2) + a*x = b*sin(c*t);
2
d x
(D1) --- + a x = b SIN(c t)
2
dt
(C2) ode2(d1,x,t);
Is a positive, negative, or zero?
positive;
/
[
(D2) x = b SIN(SQRT(a) t) I (SIN(c t + SQRT(a) t) + SIN(c t - SQRT(a) t))
]
1. Break [1]>
d
/(2 COS(SQRT(a) t) (-- (SIN(SQRT(a) t)))
dt
d
- 2 SIN(SQRT(a) t) (-- (COS(SQRT(a) t)))) dt
dt
/
[
+ b COS(SQRT(a) t) I (COS(c t + SQRT(a) t) - COS(c t - SQRT(a) t))
]
/
d
/(2 COS(SQRT(a) t) (-- (SIN(SQRT(a) t)))
dt
d
- 2 SIN(SQRT(a) t) (-- (COS(SQRT(a) t)))) dt + %K1 SIN(SQRT(a) t)
dt
+ %K2 COS(SQRT(a) t)
Same solution using maxima compiled under gclisp
C:\Program Files\Maxima-5.9.0\lib\maxima\5.9.0\binary-gcl>maxima -eval
n)
GCL (GNU Common Lisp) Version(2.5.0) Thu Jan 30 02:37:51 CST 2003
Licensed under GNU Library General Public License
Contains Enhancements by W. Schelter
Use (help) to get some basic information on how to use GCL.
Maxima 5.9.0 http://maxima.sourceforge.net
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
This is a development version of Maxima. The function bug_report()
provides bug reporting information.
(C3) 'diff(x,t,2) + a*x= b*sin(c*t);
2
d x
(D3) --- + a x = b SIN(C t)
2
dt
(C4) ode2(d3,x,t);
Is a positive, negative, or zero?
positive;
b SIN(C t)
(D4) x = - ---------- + %K1 SIN(SQRT(a) t) + %K2 COS(SQRT(a) t)
2
C - a
(C5)
The two solutions are totally different. This has to do with the CLISP
and GCLISP compilers. Any help or suggestions in this regard
will be highly appreciated.
regards
javed
Billinghurst, David (CALCRTS) wrote:
>>From: CALCRTS
>>
>>
>>
>>>From: Javed Alam
>>>Sent: Saturday, 13 September 2003 12:02 AM
>>>
>>>I have been trying to run texmacs-1.0.1.21 with maxima-5.9.0 under
>>>cygwin on a win/xp and win/2000 system.
>>>
>>>[...]
>>>
>>>I get the following error.
>>>
>>>[...]
>>>
>>>Fatal error: bad url in 'complete'
>>>See file : url.cpp
>>>
>>>
>>See if https://savannah.gnu.org/bugs/?func=detailbug&group_id=156&bug_id=4241
>>helps. It suggests hard coding a file location. I will have a look
>>myself over weekend.
>>
>>
>
>Alternatively:
>http://www.mail-archive.com/fink-users@lists.sourceforge.net/msg09820.html
>indicates that the problem is related to locate/updatedb.
>
>When "locate toc_maxima.html" finds the file then texmacs will run maxima.
>However, I have some unresolved issues on cygwin:
> - the machine that used to work now doesn't,
> - the one that didn't now does after doing an updatedb
> - updatedb is giving me some grief.
>
>
>
>
--
*Javed Alam, *Ph.D.
*Professor*
*Civil/Environmental/Chemical Engineering Department*
Youngstown State University
Youngstown, Ohio 44555
Phone 330-941-3029
Fax 330-941-3265
e-mail jalam@cc.ysu.edu <mailto:jalam@cc.ysu.edu>
web: http://www.eng.ysu.edu/~jalam/ <http://www.eng.ysu.edu/%7Ejalam/>
======================================================
"Knowledge will forever govern ignorance, and a people who mean to be
their own governors, must arm themselves with the power knowledge gives.
A popular government without popular information or the means of
acquiring it, is but a prologue to a farce or a tragedy or perhaps both."
- James Madison /(Fourth President of the United States)/
<http://opengov1.media.mit.edu/>
"Facts are stupid things..."
- Ronald Reagan /(40th President of the United States)/
<http://opengov1.media.mit.edu/>
========================================================