a spreadsheet software application that is integrated into a calculation environment , such that it is capable both of referencing prior definitions and results in the calculation environment and providing new definitions and results available for use in that environment outside the spreadsheet . embodiments of the invention include the spreadsheet embedded in a compound document or in an application - based calculation environment on a computer display .