bugGNU Octave - Bugs: bug #42019, blsimpv.m in Financial package...

 
 

bug #42019: blsimpv.m in Financial package does not use gradient data

Submitted by:  Parsiad Azimzadeh <parsiad>
Submitted on:  Tue 01 Apr 2014 01:58:10 AM UTC  
 
Category: Octave Forge PackageSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: otherOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 01 Apr 2014 02:53:35 AM UTC, comment #1:

Thanks for the bug report. I pushed your change (I signed the commit with your name and contact), see https://sourceforge.net/p/octave/financial/ci/9492cd09fa9b257fdd8f855733f3b360146d64d4/

I made just a small change on the subfunctions so that they only request the output that is actually required.

Carnë Draug <carandraug>
Project Member
Tue 01 Apr 2014 01:58:10 AM UTC, original submission:

blsimpv.m (http://sourceforge.net/p/octave/financial/ci/default/tree/inst/blsimpv.m) does not use gradient data when computing the implied volatility using a call option.

The fix is simple:

103c103
< fun = @(x) blsprice (Price(j, k), Strike(j, k), Rate(j, k), Time(j, k), x,
---

> fun = @(x) blscall (Price(j, k), Strike(j, k), Rate(j, k), Time(j, k), x,

Parsiad Azimzadeh <parsiad>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by parsiad (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 01 Apr 2014 02:53:35 AM UTCcarandraugStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1