[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #46662] requesting better error message from t
From: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #46662] requesting better error message from taylor in symbolic, possibly other functions? |
Date: |
Thu, 10 Dec 2015 21:05:14 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0 |
URL:
<http://savannah.gnu.org/bugs/?46662>
Summary: requesting better error message from taylor in
symbolic, possibly other functions?
Project: GNU Octave
Submitted by: nrjank
Submitted on: Thu 10 Dec 2015 09:05:12 PM GMT
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Other
Status: None
Assigned to: None
Originator Name: Nicholas Jankowski
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.0.0
Operating System: Microsoft Windows
_______________________________________________________
Details:
when calling taylor from the symbolic package with an incorrect argument type,
it produces an error message that makes it seem more like the function isn't
loaded than that it just isn't being called correctly. Don't know if this also
applies to other functions/packages in Octave / Octave Forge:
>> b = [1:10];
>> taylor(sin(b))
error: 'taylor' undefined near line 1 column 1
>> pkg load symbolic
>> a = sym('a');
OctSymPy v2.2.2: this is free software without warranty, see source.
Initializing communication with SymPy using a popen2() pipe.
Detected Windows: using "winwrapy.bat" to workaround Octave bug #43036
Some output from the Python subprocess (pid 14012) might appear next.
OctSymPy: Communication established. SymPy v0.7.6.
Python 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)]
>> taylor(sin(a))
ans = (sym)
5 3
a a
--- - -- + a
120 6
>> taylor(sin(b))
error: 'taylor' undefined near line 1 column 1
>>
run in Octave 4.0.0 on Windows , symbolic package 2.2.2
Also, FYI calling taylor in Matlab with a non-symbolic argument provides the
following feedback:
Undefined function 'taylor' for input arguments of type 'double'.
Seems like Octave should give a type error, too, here.
related to this help discussion thread:
http://octave.1599824.n4.nabble.com/Taylor-expansion-does-not-expand-well-tp4673968.html
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?46662>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #46662] requesting better error message from taylor in symbolic, possibly other functions?,
Nicholas Jankowski <=