|
From: | Markus Bergholz |
Subject: | [Octave-bug-tracker] [bug #43374] rat provide leading unnecessary line break |
Date: | Tue, 07 Oct 2014 19:15:37 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0 |
URL: <http://savannah.gnu.org/bugs/?43374> Summary: rat provide leading unnecessary line break Project: GNU Octave Submitted by: markuman Submitted on: Tue 07 Oct 2014 07:15:36 PM GMT Category: Octave Function Severity: 3 - Normal Priority: 5 - Normal Item Group: Matlab Compatibility Status: None Assigned to: None Originator Name: Originator Email: Open/Closed: Open Discussion Lock: Any Release: 3.8.2 Operating System: Any _______________________________________________________ Details: rat() provide a leading unnecessary line break which makes the output not evaluate-able (Works fine with matlab). octave:1> rat(0.75) ans = 1 + 1/(-4) octave:2> eval(rat(0.75)) octave:3> I've attached a quick patch which solves this problem. octave:1> eval(rats(0.75)) ans = 0.75 _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Tue 07 Oct 2014 07:15:36 PM GMT Name: rat_patch_1.patch Size: 844B By: markuman <http://savannah.gnu.org/bugs/download.php?file_id=32239> _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?43374> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |