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: Richard Fateman
Date: Fri, 19 Sep 2003 08:17:05 -0700
Usually the way to tell if something is a compiler bug is
to find load the corresponding non-compiled file and run
the program again. Then try the program again but load
only one definition from the file and see if it fixes it.
Which one file, which one definition... that's tricky to
determine.
Another way, if you have 2 different behaviors, is to
trace all the programs that you think might matter, and look
at the two traces. (output the trace info to text files...)
Good luck.
RJF
Javed Alam wrote:
>
> 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.
>>
>>
>>
>>
>
>