Skip to main content Accessibility help
×
Hostname: page-component-78c5997874-m6dg7 Total loading time: 0 Render date: 2024-11-06T03:25:45.221Z Has data issue: false hasContentIssue false

8 - Programming

Published online by Cambridge University Press:  05 June 2012

Bruce F. Torrence
Affiliation:
Randolph-Macon College, Virginia
Eve A. Torrence
Affiliation:
Randolph-Macon College, Virginia
Get access

Summary

Introduction

When you put several commands together to accomplish some purpose beyond the capacity of any one individually, you are programming. Mathematica is intentionally designed for this purpose. Like anything else, getting good at programming takes practice. But it is also exceedingly handy to have familiarity with commands that lend themselves to such greater enterprises. We've seen plenty of Mathematica in the first seven chapters; in this chapter we'll discuss commands that are especially useful for programming. Keep in mind that we only have room here for a brief introduction to these concepts. Entire books, much longer than this one, have been written on this subject. Think of this chapter as a gentle introduction.

We begin in Section 8.2 with some important background material, a consideration of the internal form of any and every Mathematica expression. Every expression, input, output (or a cell, or an entire notebook) is highly structured. Before it is possible to operate on any such expression, you simply have to know what you are dealing with. You have to understand its structure.

Some of the most fundamental structures in Mathematica are the various types of numbers. These are addressed in Section 8.3. The internal forms of the various types of numbers are discussed, along with notions such as precision and accuracy. Mathematica has the capacity to carry out calculations to arbitrarily high precision. In this section we also discuss a myriad of possibilities for the display of numbers.

Type
Chapter
Information
The Student's Introduction to MATHEMATICA ®
A Handbook for Precalculus, Calculus, and Linear Algebra
, pp. 385 - 460
Publisher: Cambridge University Press
Print publication year: 2009

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure [email protected] is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

  • Programming
  • Bruce F. Torrence, Randolph-Macon College, Virginia, Eve A. Torrence, Randolph-Macon College, Virginia
  • Book: The Student's Introduction to MATHEMATICA ®
  • Online publication: 05 June 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9780511819728.009
Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

  • Programming
  • Bruce F. Torrence, Randolph-Macon College, Virginia, Eve A. Torrence, Randolph-Macon College, Virginia
  • Book: The Student's Introduction to MATHEMATICA ®
  • Online publication: 05 June 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9780511819728.009
Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

  • Programming
  • Bruce F. Torrence, Randolph-Macon College, Virginia, Eve A. Torrence, Randolph-Macon College, Virginia
  • Book: The Student's Introduction to MATHEMATICA ®
  • Online publication: 05 June 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9780511819728.009
Available formats
×