The Mathematica language
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 t...
Uloženo v:
| Vydáno v: | Programming with Mathematica s. 29 - 56 |
|---|---|
| Hlavní autor: | |
| Médium: | Kapitola |
| Jazyk: | angličtina |
| Vydáno: |
United Kingdom
Cambridge University Press
10.01.2013
|
| Témata: | |
| ISBN: | 9781107009462, 1107009464 |
| On-line přístup: | Získat plný text |
| Tagy: |
Přidat tag
Žádné tagy, Buďte první, kdo vytvoří štítek k tomuto záznamu!
|
| Shrnutí: | 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. |
|---|---|
| ISBN: | 9781107009462 1107009464 |
| DOI: | 10.1017/CBO9780511972942.003 |

