Oct
6

## Is NAG Toolbox Faster Than MATLAB's Fsolve Part II

This is a follow-up of my post Is NAG Toolbox Faster Than MATLAB's Fsolve? I got a few reply immediately after that,

Thanks for all your reply and attention, testing process is fun.

Hot posts:

15 Incredibly Stupid Ways People Made Their Millions

Online stock practice

Ino.com: Don't Join Marketclub until You Read This MarketClub Reviews

World Changing Mathematical Discoveries

Value at Risk xls

Random posts:

Biases in TRACE Corporate Bond Data

Mean Reversion Speed Estimation - What Am I Missing?

European Option Price with Excess Skewness and Kurtosis

Gaussian Process Regression

A lightweight C++ library for quantitative finance applications

**here is a short summary**:**1, NAG's c05nb is faster than Matlab's fsolve with almost the same accuracy, but at the cost of additional programming.**As mentioned by Michael at his replied post, c05nb speeds up overall computation time by a factor of 3 from 6.5 seconds to 2.32 seconds on average, which is excellent, but he also realizes "It’s pretty clear that the NAG function isn’t as easy to use as MATLAB’s fsolve function", such as transposition problems and the necessity to set global variables. Luckily, Michael confirms it is currently with NAG technical support and should be updated soon.**2, there are other ways to speed up**, for example, two vectorization method proposed by Michael at http://www.walkingrandomly.com/?p=2907 and VoR at http://rationalize-this.blogspot.com/2010/10/is-nag-toolbox-faster-than-matlabs.html. It is perfectly fine to use vectorization in Matlab, I didn't pay attention to that since the solo purpose of my original post was to compare the performance of c05nb and fsolve, with the same codes except replacing one command with the other.Thanks for all your reply and attention, testing process is fun.

**People viewing this post also viewed:**

Hot posts:

Random posts:

sorry for that.