Skip to main content Accessibility help
×
Hostname: page-component-848d4c4894-2pzkn Total loading time: 0 Render date: 2024-05-13T08:57:39.789Z Has data issue: false hasContentIssue false

2 - The Mathematica language

Published online by Cambridge University Press:  05 February 2013

Get access

Summary

Although programming languages are commonly thought to have their early history in the 1940s and 1950s when the first digital computers came about, they in fact go back much earlier to the creation of the Jacquard loom (1801) and also player pianos (˜1870s), both of which used physical punch cards to code instructions. Regardless of whether you use punch cards or a more modern means to create and store your programs, programming languages are described by specifying their syntax and semantics. Syntax refers to the form, indicating what symbols can be put together in what order to make a meaningful construct in any given language. In other words, the syntax of a programming language is the set of rules that define what is a valid input or program. Semantics, on the other hand, refers to the meaning of expressions within a language. Although we will not give a complete, rigorous description of the syntax of the Mathematica language here, it is important to understand some of the basic structures and their syntax upon which everything is built. Fortunately, the Mathematica language can be understood quickly by learning about just a few basic objects. In this chapter we will focus on the Mathematica language with particular emphasis on expressions. We will also look at how to define and name new expressions, how to combine them using logical operators, and how to control properties of expressions through the use of attributes.

Type
Chapter
Information
Programming with Mathematica®
An Introduction
, pp. 29 - 56
Publisher: Cambridge University Press
Print publication year: 2013

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 coreplatform@cambridge.org 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.

  • The Mathematica language
  • Paul Wellin
  • Book: Programming with <I>Mathematica</I>®
  • Online publication: 05 February 2013
  • Chapter DOI: https://doi.org/10.1017/CBO9780511972942.003
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.

  • The Mathematica language
  • Paul Wellin
  • Book: Programming with <I>Mathematica</I>®
  • Online publication: 05 February 2013
  • Chapter DOI: https://doi.org/10.1017/CBO9780511972942.003
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.

  • The Mathematica language
  • Paul Wellin
  • Book: Programming with <I>Mathematica</I>®
  • Online publication: 05 February 2013
  • Chapter DOI: https://doi.org/10.1017/CBO9780511972942.003
Available formats
×