bugGNU Octave - Bugs: bug #43051, financial package: function rate...

 
 

bug #43051: financial package: function rate fail

Submitter:  None
Submitted:  Fri 22 Aug 2014 06:06:49 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Guilherme Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.8.1
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 26 Aug 2014 08:34:06 PM UTC, comment #2: 


I have signed the changeset with "Gui Cardoso <guicardoso@gmail.com>", see cset 8dbda08423a9 at http://sourceforge.net/p/octave/financial/ci/8dbda08423a9





This problem has been fixed in the development version. The fix
will be available in the next major software release. Thank you
for your bug report.

Carnë Draug <carandraug>
Group Member
Fri 22 Aug 2014 06:09:57 PM UTC, comment #1: 

The error is in the l and not m

 if (!any (strcmpi (l, {"e","b"})))
    error ("`method' must either be `e' or `b")
  endif


Anonymous
Fri 22 Aug 2014 06:06:49 PM UTC, original submission:  


r=rate(84,418.95, 28764)
error: `method' must either be `e' or `b
error: called from:
error:   /usr/share/octave/packages/financial-0.4.0/rate.m at line 61, column 5


It shoud be comparing the m variable and not l in

  if (!any (strcmpi (m, {"e","b"})))
    error ("`method' must either be `e' or `b")
  endif

shoud be

  if (!any (strcmpi (m, {"e","b"})))
    error ("`method' must either be `e' or `b")
  endif



Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-08-26 carandraug CategoryLibraries Octave Package
        StatusNone Fixed
        Open/ClosedOpen Closed
        Summaryfunction rate of financial package fail financial package: function rate fail

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code