PHYSICS 312

List of Maple work-sheets

Below you find a listing of when the different Maple commands first are used in the works-sheets accompanying the lectures. The listings are much more sparse for the solutions to the problem sets. Generally these involve applications of material already introduced in the lecture material.  There are some exceptions and these are given near the bottom of the file.

 

Complex variables:

 n312l1.mws, n312l1.htm

:= versus =

clearing memory: restart

complex variables: abs, argument, evalc, I, Im, polar, Re

evaluating as a floating point expression: evalf

exponential exp

hyperbolic functions: cosh, sinh

Pi

termination with/without output: ;  :

trigonometric functions: arctan, cos, sin

                  

 

 

Summing series:

  n312l2.mws, n312l2.html

creating a simple plot: plot

defining functions: ()->expr

differentiating a function: diff

factorial: !

infinity

loading plots library package: with(plots)

plotoptions: axes, BOXED, color, labels, title, tickmarks

power: ^

range of plot or sum: x=a..b

summing a series: sum

Taylor series: mtaylor, series

         

 

Differential equations

n312l3.mws, n312l3.html

differentiation using D  vs diff

defining functions : unapply  vs ->          

differential equation solutions: dsolve

dsolve options: numeric, output=listprocedure,

plotting solutions generated by dsolve: odeplot

specifying a set of equations or variables: {}

substituting into an equation: subs

using part of an equation: rhs                  

 

                                                                                     

Finite differences

n312l6.mws, n312l6.html

indexed variable:  x[n]

sequences, sets and lists, seq, { }, [ ]

assign a varible name to solution: assign        

draw a curve through set of points: listplot

solve a system of equations: solve

union of two sets: union

 

Fourier coefficients:

p312l6.mws, p312l6.html

integrating a function: int

numpoints

piecewise

 

 

Potential in box:

n312l14a.mws, p312l14a.html

plot3d

 

Convection:

p312l12.mws, p312l12.html

solving transcendental equations numerically:fsolve

plot set of graphs:plot({ }, range)

tan

                                                                            

 

LCR-circuit:

 p312l8.mws, p312l8.html

 

                                               

Fast Fourier Transform:

 n312l20a.mws, n312l20a.html

library package: with(stats)

array

FFT

iFFT

log

print

randomize

stats[random,normald]

stats[random,uniform]

 

Vibrating membrane:

 n312l24.mws, n312l24.html

library package: with(geometry)

plot objects: display

animate3d

axes=none

BesselJ, BesselY

circle

coords

draw

dsegment

frames

point

z_cylindrical

 

Heat equation:

 p312l20.mws, p312l20.html

 

Legendre and spherical Bessel functions:
  p312leg.mws, p312leg.html
library package   with(orthopoly)
legendre polynomial P

spherical bessel functions

 

Fourier transforms:

 p312l7.mws, p312l7.html

library package with(inttrans)

fourier

invfourier

                                                                            

Delta function:

 p312l9.mws, p312l9.html

if....then ... else ...fi

 

Solutions to problems

(Commands only listed if not in worksheets accompanying lectures)

312sol1-3.mws

Inserting formulas in text

square root: sqrt

312sol1-4.mws

limits of 0/0 expressions: limit

more hyperbolic functions: coth

natural logarithm: ln

sum vs Sum

 

312sol2-1.mws

manipulating algebraic expressions: simplify

putting several curves in same plot: display

text in plot: textplot

aligning text in plot : align=LEFT, align=RIGHT

Using mouse to read off values of points in plot

312sol2-2.mws

Manipulating algebraic expressions: expand

turning an expression into an operator: unapply

312sol2-3.mws

312sol3-1.mws

animate, frames, numpoints

312sol3-2.mws

312sol3-3.mws

do-loop:     for ... from ... to ...do

                   ...

                   od

                        (end do)

linear algebra library call: with(linalg)       

more plot options:  frame,  orientation    

matrixplot

312sol3-4.mws

312sol3-5.mws

312sol4-1.mws

312sol4-2.mws

312sol4-3.mws

312sol4-4.mws

312sol4-5.mws

312sol4-6.mws

312sol4-7.mws

312sol5-1.mws

312sol5-6.mws

312sol5-7.mws