Christof Köhler
2016-05-25 15:17:53 UTC
Hello,
I noticed that trigsolve from the trigtools package appears to be
broken. While I
understand that contrib is not maintained I would like to bring this
to your attention
anyway.
The trigtools documentation contrib/trigtools/trigtools-doc.pdf gives
an example
on page 9 for solving eq:3*sin(x)+4*cos(x)=2 (apparently the
documentation contains
an obvious typo there assigning a value to eq). Still, according to
the documentation
the result should be something involving atan() expressions and
numerical values given
appear to be right.
Actually doing the computation gives
Maxima 5.38.0 http://maxima.sourceforge.net
using Lisp CLISP 2.49 (2010-07-07)
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
The function bug_report() provides bug reporting information.
(%i1) load(trigtools)$
(%i2) eq:3*sin(x)+4*cos(x)=2;
(%o2) 3 sin(x) + 4 cos(x) = 2
(%i3) trigsolve(eq,-%pi,%pi);
(%o3) {0, 2}
(%i4)
(%i6) build_info();
(%o6)
Maxima version: "5.38.0"
Maxima build date: "2016-04-06 12:07:25"
Host type: "x86_64-unknown-linux-gnu"
Lisp implementation type: "CLISP"
Lisp implementation version: "2.49 (2010-07-07) (built 3605577779)
(memory 3668926047)"
Actually it does not work with my own 5.37.2 build and the 5.32.1 package in
ubuntu 14.04 either.
Maxima 5.32.1 http://maxima.sourceforge.net
using Lisp GNU Common Lisp (GCL) GCL 2.6.10 (a.k.a. GCL)
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
The function bug_report() provides bug reporting information.
(%i1) load(trigtools);
(%o1) /usr/share/maxima/5.32.1/share/contrib/trigtools/trigtools.mac
(%i2) eq:3*sin(x)+4*cos(x)=2;
(%o2) 3 sin(x) + 4 cos(x) = 2
(%i3) trigsolve(eq,-%pi,%pi);
(%o3) {0, 2}
Or am I doing something wrong ?
Other trigtools functions like trigfactor, c2sin, trigvalue appear to
work as documented.
Best Regards
Christof
I noticed that trigsolve from the trigtools package appears to be
broken. While I
understand that contrib is not maintained I would like to bring this
to your attention
anyway.
The trigtools documentation contrib/trigtools/trigtools-doc.pdf gives
an example
on page 9 for solving eq:3*sin(x)+4*cos(x)=2 (apparently the
documentation contains
an obvious typo there assigning a value to eq). Still, according to
the documentation
the result should be something involving atan() expressions and
numerical values given
appear to be right.
Actually doing the computation gives
Maxima 5.38.0 http://maxima.sourceforge.net
using Lisp CLISP 2.49 (2010-07-07)
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
The function bug_report() provides bug reporting information.
(%i1) load(trigtools)$
(%i2) eq:3*sin(x)+4*cos(x)=2;
(%o2) 3 sin(x) + 4 cos(x) = 2
(%i3) trigsolve(eq,-%pi,%pi);
(%o3) {0, 2}
(%i4)
(%i6) build_info();
(%o6)
Maxima version: "5.38.0"
Maxima build date: "2016-04-06 12:07:25"
Host type: "x86_64-unknown-linux-gnu"
Lisp implementation type: "CLISP"
Lisp implementation version: "2.49 (2010-07-07) (built 3605577779)
(memory 3668926047)"
Actually it does not work with my own 5.37.2 build and the 5.32.1 package in
ubuntu 14.04 either.
Maxima 5.32.1 http://maxima.sourceforge.net
using Lisp GNU Common Lisp (GCL) GCL 2.6.10 (a.k.a. GCL)
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
The function bug_report() provides bug reporting information.
(%i1) load(trigtools);
(%o1) /usr/share/maxima/5.32.1/share/contrib/trigtools/trigtools.mac
(%i2) eq:3*sin(x)+4*cos(x)=2;
(%o2) 3 sin(x) + 4 cos(x) = 2
(%i3) trigsolve(eq,-%pi,%pi);
(%o3) {0, 2}
Or am I doing something wrong ?
Other trigtools functions like trigfactor, c2sin, trigvalue appear to
work as documented.
Best Regards
Christof