Added a prototype calculate() method to the API.
Authored by: bugman 2009-11-24
Parent: [r9900]
Child: [r9902]