[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54767] Function interpreter creates comma (",
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #54767] Function interpreter creates comma (", ") where there shouldn'd be one |
Date: |
Tue, 2 Oct 2018 09:03:09 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko |
URL:
<https://savannah.gnu.org/bugs/?54767>
Summary: Function interpreter creates comma (",") where there
shouldn'd be one
Project: GNU Octave
Submitted by: None
Submitted on: Tue 02 Oct 2018 01:03:07 PM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Unexpected Error
Status: None
Assigned to: None
Originator Name: Jo Mayer
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 4.2.0
Operating System: Microsoft Windows
_______________________________________________________
Details:
enterin the following function definition to command line (i.e. by c'n'p):
funV = @(x,I) [ x(1) .* sin(I(:,1)) - x(3) .* sin(I(:,1)) .* sin(I(:,2))
-x(4) .* cos(I(:,1)) + x(4) - (-x(1) - x(2)) .* sin(I(:,1)) .* cos(I(:,2)) -
(x(1) + x(2)) .* sin(I(:,1)) + (x(3) + x(6)) .* sin(I(:,1)) .* sin(I(:,2)) +
(x(4) + x(7)) .* cos(I(:,1)) - (x(1) + x(2) + x(5)) .* sin(I(:,1)) .*
cos(I(:,2)) ]
yields a "," where there shouldn'd be one: (please search for the String: "(:,
2)), -x(4)" in the output below to find the wrong ","
funV =
@(x, I) [x(1) .* sin(I (:, 1)) - x(3) .* sin(I (:, 1)) .* sin(I (:, 2)), -x(4)
.* cos(I (:, 1)) + x(4) - (-x(1) - x(2)) .* sin(I (:, 1)) .* cos(I (:, 2)) -
(x(1) + x(2)) .* sin(I (:, 1)) + (x(3) + x(6)) .* sin(I (:,
1)) .* sin(I (:, 2)) + (x(4) + x(7)) .* cos(I (:, 1)) - (x(1) + x(2) + x(5))
.* sin(I (:, 1)) .* cos(I (:, 2))]
Note: if the corner bracket "[ ]" around the function definition is removed,
result is fine.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?54767>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #54767] Function interpreter creates comma (", ") where there shouldn'd be one,
anonymous <=