I originally posted this code in Recipe 577132 and this is a repost of that recipe with corrections since there was an error in the original recipe. Added here is an error analysis to show the effectiveness of the Laplace inversion method for pricing European options. One can test the accuracy of this method to the finite difference schemes. The laplace transform of Black-Scholes PDE was taken and the result was inverted using the Talbot...
A context manager and decorator that wrap common exception trapping and handling code so they may be applied with just a single line of code in the client.
I hacked up this useful wrapper around the python command line shell to allow editing of the last typed in lines of code in an external editor.
A simple piece of code in Python that inverts function in the Laplace field
to the real field. Accurate, fast and easy to use.
The Matlab code in this folder implements 1D-3D NUFFTs via fast Gaussian gridding. The convolution loops are written as C programs to be compiled as mex files from the Matlab command prompt. Further mathematical details about the code can be found...
The code in this submission describes how to download and install the Visualization Toolkit (VTK, www.vtk.org) and create a MATLAB mex file to interface with it.
An example C++ mex file and code to build and run the mex file are included.
This code used to learn and explain the code of PCA to apply this code in many applications.
For nay help or question send to
We run ROI_extract code in Matlab, and chose the image which want to extract ROI from it and we select the ROI.
I am describing a solution that allows you to break apart and run large amounts of your Matlab code in parallel on large computational pools. In order to provide the user with the familiar Matlab work environment, I glue back the remotely...
Awefully simple code in order to gain some time when trying to label the colorbars.
Works for individual plot or subplots, handles single- and multi-line labels on the top, bottom and/or right of the colorbar.
This code used to learn and explain the code of LDA to apply this code in many applications.
For nay help or question send to
The most easiest way to using Google Adsense code or other Adsense like advertisers code in Joomla articles.
Edit your template and make module positions which is exacly same as the category IDs of your site. After that copy, module which...
PHPlib Template allows you to keep your HTML code in some external files which are completely free of PHP code. It is an object-oriented application development toolkit for PHP. It is primarily of benefit to Web application developers, but...
This Plugin Will enable short code in WordPress sidebar Widget. By default, wordpress doesn't support Short Code in Sidebar Widget. This Plugin can remove that restriction. Just Use a text widget for sidebar and use [short code] and ENJOY.
Based on kukukuan's Inline PHP, this plugin allows you to embed and run PHP code in posts, pages or widgets* with a WordPress shortcode.
(* Requires a shortcode enabled widget plugin, such as Section Widget.)
This plugin allows you to directly embed Gmaps code in your posts or pages using the [gmap] shortcode.
HOW TO USE IT: When you are in the Write Post or Write Page screen, find the "Custom Fields" area. If isn't already there,...
This plugin lets you use raw HTML or any other code in your posts. One way to use it is to wrap a part of your post in special tags (below) to prevent WordPress from converting newlines to HTML paragraphs, escaping apostrophes and so on. This is...
ajaxcoderender is a plugin to make your code in post looks pretty
it is based on ajax and Geshi php library, so even if your wordpress is cached by some plugin(cos-html-cache) in static status,
this plugin can make your code...
YCWP QR Me is a simple plugin that creates and displays qr code in your blog pages. It provides also a configurable and useful widget and shortcodes. You can add your own QR Code in a widget ready sidebar, or in a post using shortcodes. You can...