Mathematica basics; presentation / notebooks

  Topic details
D
A
Y

1

Mathematica
FRONT END,
I
  • math vs. mathematica
  • kernel vs. front end
  • pointer/cursor, Return/Enter
Basic
Mathematical
Operations
(NOTEBOOK)
  • Sin, Cos, Log, ArcTan, Exp
  • Algebraic manipulation: Factor, Simplify, Together, ...
  • Sum, Product, Series
  • D       y'[t] vs. D[y,t]
  • Integrate, Solve, DSolve
  • Statistics: Mean, Median, Variance, ...
ANALYTIC
vs
NUMERICAL
(NOTEBOOK)
  • calculator.   real/complex.   N
  • Solve and NSolve
  • DSolve and NDSolve
  • Integrate and NIntegrate
  • Plots. Tables.
SYNTAX
  • Syntax tips
  • everything is an *expression* -- FullForm, Head
  • display forms: InputForm, OutputForm, StandardForm, TraditionalForm
D
A
Y

2

LISTS,
VECTORS,
LINEAR
ALGEBRA
(NOTEBOOK)
  • delimiters for   {list},   [[element]]
  • Take, Drop, Append, Part, Length, Min, Max
  • Table
  • Map, Apply
  • vector/matrix/tensor; dot product
  • Inverse, Det, Transpose, IdentityMatrix
  • MatrixForm, TableForm
Mathematica
FRONT END,
II
(NOTEBOOK)
  • cut/copy/paste
  • cells: brackets, open/close, evaluate
  • save notebook
  • using palettes
  • Special Keys:
    • Enter, Abort
    • type of cell: Alt[1-7]
    • greek letters: keyboard entry (Esc?Esc)
    • super/sub/over/under/normal: Ctrl-[^_7= ]
    • in-text formula: Ctrl-( and Ctrl-)
GRAPHICS
(NOTEBOOK)
  • Plot, ListPlot
  • Plot3D, ListPlot3D
  • Show
  • ParametricPlot, ParametricPlot3D
  • PlotVectorField
D
A
Y

3

INPUT/
OUTPUT,
data files
(NOTEBOOK)
  • ReadList
  • Directory, FileNames, SetDirectory
Functional
Programming
(NOTEBOOK)
  • built-in functions are all capitalized
  • General / specific definitions;   f[x_]= vs. f[x]=
  • definitions for a specific number of parameters, e.g., N, ArcTan
  • immediate/delayed definition;   f[x_]= vs. f[x_]:=
  • Clear, Remove
  • Block, Module
  • iterative functions: Table, Sum, Product (rather than Do, For)
PACKAGES
(NOTEBOOK)
  • why needed?
  • using Needs or Get to load a package
  • packages most likely to be needed:
    • Get["Graphics`PlotField`"]
    • Get["Statistics`"]
  • the usual pitfall...
  • initialization cells
D
A
Y

4

Mathematica
FRONT END,
III
(NOTEBOOK)
  • Help browser (online) and books
  • Styles and formats, how to customize a notebook
  • Tips for presenting or printing a notebook. Magnification.
  • student homework; our expectations
  • making buttons, palettes, hyperlinks
Mathematica
with
other
software
(NOTEBOOK)
  • ReadList for reading text data, Put or PutAppend for writing text data
  • TeX -- TexForm
  • Fortran, C -- MathLink, FortranForm, CForm
  • Netscape: helper app Mathematica for *.nb files
  • save notebook as HTML file
  • save graphics as PNG or EPS files
More graphics
(NOTEBOOK)
  • combining graphs with line curves and with points
  • text labelling of graphed points
  • samples of programming

basics

local Mathematica resources