The Mathematica Journal
Volume 9, Issue 2

Search

In This Issue
Articles
Tricks of the Trade
In and Out
Trott's Corner
New Products
New Publications
Calendar
News Bulletins
New Resources
Classifieds

Download This Issue 

About the Journal
Editorial Policy
Staff
Submissions
Subscriptions
Advertising
Back Issues
Contact Information

Updating a Geographic Database
Leendert van Gastel
Harry Uitermark

Implementation

Here is the implementation of the rubber-sheet transformation.

The definition of covarianceBlock, which makes a row of blocks as in , is probably the only one that may need some explanation. For example, let us make the matrix for u and {v1,v2} with the help of Thread.

Next we apply h on the two blocks at the right level.

Finally we flatten to get a matrix.

To make this code work for a concrete vector , as well as for a symbol , we first introduce a free variable x instead of u and then use the substitution xRuleu. This variable has been made local with the use of Module. All together we obtain covarianceBlock.



     
About Mathematica | Download Mathematica Player
Copyright © Wolfram Media, Inc. All rights reserved.