swapbyzero using different RateSpec with compounding

조회 수: 3 (최근 30일)
JW
JW 2017년 3월 24일
댓글: Anoop Somashekar 2017년 3월 31일
I've been using the swapbyzero function to do some swap pricing. I've come across an issue where if I use a RateSpec that is continuously compounded, and convert that to a RateSpec that is compounded annually (once per year), I get slightly different price outputs between the continuously compounded vs annual compounding rate spec (~10^-6). Is this due to a rounding error? I just want to make sure there's not some fundamental issue with using a continuously compounded vs annual RateSpec in the swapbyzero function.
  댓글 수: 1
Anoop Somashekar
Anoop Somashekar 2017년 3월 31일
Can you provide an example to recreate the issue? Which matlab version are you using?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Financial Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by