swapbyzero using different RateSpec with compounding

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 件)

カテゴリ

ヘルプ センター および File ExchangeInstrument Control Toolbox についてさらに検索

質問済み:

JW
2017 年 3 月 24 日

コメント済み:

2017 年 3 月 31 日

Community Treasure Hunt

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

Start Hunting!

Translated by