Overview: The original Mathematica was a computer algebra system (CAS) released by Stephen Wolfram in 1988.

Size: px
Start display at page:

Download "Overview: The original Mathematica was a computer algebra system (CAS) released by Stephen Wolfram in 1988."

Transcription

1 Mathematica Overview: The original Mathematica was a computer algebra system (CAS) released by Stephen Wolfram in Modern releases have augmented the CAS with powerful numerical and graphical capabilities. Emphasis is placed on allowing math to be incorporated into neat final products - through fancy formatting, interactivity etc. Mathematica is renowned as the world s ultimate application for computations. But it s much more - it s the only development platform fully integrating computation into complete workflows, moving you seamlessly from initial ideas all the way to deployed individual or enterprise solutions.

2 Mathematica It s clear who Wolfram is ultimately trying to entice: 100% of the Fortune 50 companies rely on Mathematica to maintain their competitive edge in innovation.

3 Mathematica It s clear who Wolfram is ultimately trying to entice: 100% of the Fortune 50 companies rely on Mathematica to maintain their competitive edge in innovation. I mainly use the basic CAS only, for: simplification differentiation integration (quick) visualization This talk focuses on the background needed to execute these tasks efficiently.

4 Mathematica GUI: Mathematica (.nb) files are called notebooks. A notebook consists of input and output cells.

5 Mathematica GUI: Mathematica (.nb) files are called notebooks. A notebook consists of input and output cells. Each input cell contains at least one command. Evaluating an input cell (Shift-Enter) produces an output cell immediately below it.

6 Mathematica GUI: Mathematica (.nb) files are called notebooks. A notebook consists of input and output cells. Each input cell contains at least one command. Evaluating an input cell (Shift-Enter) produces an output cell immediately below it. Matlab analogy: Notebooks mix elements from m-files (saving/loading of multiple commands) and the interactive command window (evaluation cell-by-cell).

7 Mathematica 7.0.1: Basics Basic mathematical operations: In[1]:= /3 2*3 2^3

8 Mathematica 7.0.1: Basics Basic mathematical operations: In[1]:= /3 2*3 2^3 Evaluate whole cell by pressing Shift-Enter

9 Mathematica 7.0.1: Basics Basic mathematical operations: In[1]:= /3 2*3 2^3 Out[1]= 5 Out[2]= -1 Out[3]= 2/3 Out[4]= 6 Out[5]= 8

10 Mathematica 7.0.1: Basics Basic mathematical operations: In[1]:= /3 2*3 2^3 Out[1]= 5 Out[2]= -1 Out[3]= 2/3 Out[4]= 6 Out[5]= 8 We can modify our input to return a decimal using the N[...] function.

11 Mathematica 7.0.1: Basics Basic mathematical operations: In[1]:= N[2/3] 2*3 2^3 Alter this line only... Out[1]= 5 Out[2]= -1 Out[3]= 2/3 Out[4]= 6 Out[5]= 8

12 Mathematica 7.0.1: Basics Basic mathematical operations: In[1]:= N[2/3] 2*3 2^3...then re-evaluate this whole cell with Shift-Enter Out[1]= 5 Out[2]= -1 Out[3]= 2/3 Out[4]= 6 Out[5]= 8

13 Mathematica 7.0.1: Basics Basic mathematical operations: In[6]:= N[2/3] 2*3 2^3 Out[6]= 5 Out[7]= -1 Out[8]= Out[9]= 6 Out[10]= 8 The new input and output cells visually replace the old ones.

14 Mathematica 7.0.1: Basics Storing/accessing output: Variable assignments are straightforward: In[1]:= a=3 a+4 Out[1]= 3 Out[2]= 7

15 Mathematica 7.0.1: Basics Storing/accessing output: Variable assignments are straightforward: In[1]:= a=3 a+4 Out[1]= 3 Out[2]= 7 The most recent output value is stored in % (like Matlab s ans): In[3]:= %+5 Out[3]= 12

16 Mathematica 7.0.1: Basics Storing/accessing output: Variable assignments are straightforward: In[1]:= a=3 a+4 Out[1]= 3 Out[2]= 7 The most recent output value is stored in % (like Matlab s ans): In[3]:= %+5 Out[3]= 12 Earlier output values are accessed using Out[...]: In[4]:= %+Out[1] Out[4]= 15

17 Mathematica 7.0.1: Basics General syntax rules: Constants and built-in functions are always capitalized. Multi-word functions use multiple capital letters. Function arguments go inside brackets. Functions can be nested.

18 Mathematica 7.0.1: Basics General syntax rules: Constants and built-in functions are always capitalized. Multi-word functions use multiple capital letters. Function arguments go inside brackets. Functions can be nested. Examples: Constants: E, I, Pi, Infinity. Basic math functions: N[...], Exp[...], Log[...], Sin[...], Cos[...], Tan[...], Abs[...], etc. Manipulation functions: Factor[...], Expand[...], FullSimplify[...], TeXForm[...].

19 Mathematica 7.0.1: Functions Built-in function use: In[1]:= N[Cos[2]] Out[1]=

20 Mathematica 7.0.1: Functions Built-in function use: In[1]:= N[Cos[2]] Out[1]= In[2]:= Expand[(-10 + x)(7 + x)] Out[2]= -70-3x + x^2 Note: * operator only needed to avoid ambiguity!

21 Mathematica 7.0.1: Functions Built-in function use: In[1]:= N[Cos[2]] Out[1]= In[2]:= Expand[(-10 + x)(7 + x)] Out[2]= -70-3x + x^2 Note: * operator only needed to avoid ambiguity! In[3]:= TeXForm[x/(x+1)] Out[3]= \frac{x}{x+1}

22 Mathematica 7.0.1: Functions Misc. syntax tips: To get help on a function use?functionname or??functionname: In[1]:=?Cos Out[1]= Cos[z] gives the cosine of z.

23 Mathematica 7.0.1: Functions Misc. syntax tips: To get help on a function use?functionname or??functionname: In[1]:=?Cos Out[1]= Cos[z] gives the cosine of z. Incorrectly-typed function names appear blue: In[2]:= texform[x/(x+1)] TeXForm[x/(x+1)] Out[2]= texform[x/(x+1)] Out[3]= \frac{x}{x+1}

24 Mathematica 7.0.1: Functions Misc. syntax tips: To get help on a function use?functionname or??functionname: In[1]:=?Cos Out[1]= Cos[z] gives the cosine of z. Incorrectly-typed function names appear blue: In[2]:= texform[x/(x+1)] TeXForm[x/(x+1)] Out[2]= texform[x/(x+1)] Out[3]= \frac{x}{x+1} As in Matlab, output is suppressed by a semi-colon: In[4]:= 2+3; Out[4] is defined, just hidden.

25 Mathematica 7.0.1: Functions User-defined functions: In[1]:= f[x_]:=x^2 Delayed assignment - no output.

26 Mathematica 7.0.1: Functions User-defined functions: In[1]:= f[x_]:=x^2 Delayed assignment - no output. In[2]:= f[3] f[t] Out[2]= 9 Out[3]= t^2

27 Mathematica 7.0.1: Functions User-defined functions: In[1]:= f[x_]:=x^2 Delayed assignment - no output. In[2]:= f[3] f[t] Out[2]= 9 Out[3]= t^2 In[4]:= g[x_,y_]:=abs[x-y] g[-3,3] g[s+h,s-h] Out[5]= 6 Out[6]= 2 Abs[h]

28 Mathematica 7.0.1: Functions (Advanced) Patterns are used to restrict domains: In[1]:= g[x_?integerq]:=x^2 g[2] g[2.5] Out[2]= 4 Out[3]= g[2.5]

29 Mathematica 7.0.1: Functions (Advanced) Patterns are used to restrict domains: In[1]:= g[x_?integerq]:=x^2 g[2] g[2.5] Out[2]= 4 Out[3]= g[2.5] In[4]:= h[x_?numericq]:=x^3 h[2] h[2.5] h[t] Out[5]= 8 Out[6]= Out[7]= h[t] Sometimes needed for plotting. Patterns will only redefine a function on the restricted domain.

30 Mathematica 7.0.1: Lists Lists: Syntax: {1,3,9,27}

31 Mathematica 7.0.1: Lists Lists: Syntax: {1,3,9,27} Elements are extracted using double brackets: In[1]:= {1,3,9,27}[[2]] Out[1]= 3

32 Mathematica 7.0.1: Lists Lists: Syntax: {1,3,9,27} Elements are extracted using double brackets: In[1]:= {1,3,9,27}[[2]] Out[1]= 3 Nesting forms arrays: In[2]:= {{1,3},{9,27}}[[2,1]] Out[2]= 9

33 Mathematica 7.0.1: Lists Lists: Syntax: {1,3,9,27} Elements are extracted using double brackets: In[1]:= {1,3,9,27}[[2]] Out[1]= 3 Nesting forms arrays: In[2]:= {{1,3},{9,27}}[[2,1]] Out[2]= 9 The Range[...] function can be used to generate lists: In[3]:= Range[1,9,2] Out[3]= {1,3,5,7,9}

34 Mathematica 7.0.1: Lists Lists as inputs: In[1]:= Sin[{0,Pi/2}] Out[1]= {0,1}

35 Mathematica 7.0.1: Lists Lists as inputs: In[1]:= Sin[{0,Pi/2}] Out[1]= {0,1} In[2]:= N[Cos[Range[1,3]]] Out[2]= { , , }

36 Mathematica 7.0.1: Lists Lists as inputs: In[1]:= Sin[{0,Pi/2}] Out[1]= {0,1} In[2]:= N[Cos[Range[1,3]]] Out[2]= { , , } Lists as options: In[3]:= Sum[n,{n,1,9,2}] Sum of odd #s between 1 and 9. Out[3]= 25

37 Mathematica 7.0.1: Lists Lists as inputs: In[1]:= Sin[{0,Pi/2}] Out[1]= {0,1} In[2]:= N[Cos[Range[1,3]]] Out[2]= { , , } Lists as options: In[3]:= Sum[n,{n,1,9,2}] Sum of odd #s between 1 and 9. Out[3]= 25 In[4]:= Series[Exp[w],{w,0,2}] Taylor series of Exp[w] about Out[4]= 1 + w + w^2/2 + O[w^3] w = 0, up to order 2.

38 Mathematica 7.0.1: Differentiation Differentiation: Of undefined functions: In[1]:= D[f[x],x] D[f[x],{x,2}] Out[1]= f [x] Out[2]= f [x]

39 Mathematica 7.0.1: Differentiation Differentiation: Of undefined functions: In[1]:= D[f[x],x] D[f[x],{x,2}] Out[1]= f [x] Out[2]= f [x] Of given functions: In[3]:= g[x_]:=exp[-x^2] D[g[t],t] D[g[t],{t,2}] Out[4]= -2 t Exp[-t^2] Out[5]= -2 Exp[-t^2] + 4 t^2 Exp[-t^2]

40 Mathematica 7.0.1: Differentiation To define the resulting expression as a new function, use immediate assignment: In[1]:= h[t_]=d[exp[-t^2],{t,2}] h[0] Out[1]= -2 Exp[t^2] + 4 t Exp[t^2] Out[2]= -2

41 Mathematica 7.0.1: Differentiation To define the resulting expression as a new function, use immediate assignment: In[1]:= h[t_]=d[exp[-t^2],{t,2}] h[0] Out[1]= -2 Exp[t^2] + 4 t Exp[t^2] Out[2]= -2 Delayed assignment will not work here! In[3]:= k[t_]:=d[exp[-t^2],{t,2}] k[0] General::ivar: 0 is not a valid variable. Out[4]= D[1,{0,2}]

42 Mathematica 7.0.1: Immediate/Delayed Assignment Short version: Use := to define functions with known expressions. Use = to define functions resulting from other manipulations, and all constants.

43 Mathematica 7.0.1: Immediate/Delayed Assignment Short version: Use := to define functions with known expressions. Use = to define functions resulting from other manipulations, and all constants. (Advanced) Longer version: Immediate assignment (f[x_]=...) evaluates the RHS expression once (when first called) and assigns the result to f[x] forever. Delayed assignment (f[x_]:=...) evaluates the RHS expression each time f is called. The value of x is substituted into the RHS expression before all algebraic and numerical manipulations are evaluated.

44 Mathematica 7.0.1: Integration Integration: In[1]:= Integrate[t^2,{t,1,2}] Integrate[Cos[t],{t,0,x}] Integrate[Exp[-t^2],{t,0,Infinity}] Integrate[Exp[-t^2],{t,0,1}] Out[1]= 7/3 Out[2]= Sin[x] Out[3]= Sqrt[Pi]/2 Out[4]= (Sqrt[Pi] Erf[1])/2

45 Mathematica 7.0.1: Integration Integration: In[1]:= Integrate[t^2,{t,1,2}] Integrate[Cos[t],{t,0,x}] Integrate[Exp[-t^2],{t,0,Infinity}] Integrate[Exp[-t^2],{t,0,1}] Out[1]= 7/3 Out[2]= Sin[x] Out[3]= Sqrt[Pi]/2 Out[4]= (Sqrt[Pi] Erf[1])/2 For integrals with no closed-form result, use NIntegrate: In[5]:= NIntegrate[Exp[-t^2],{t,0,1}] Out[5]= Quite a few functions have a numerical equivalent with similar syntax.

46 Mathematica 7.0.1: Integration Mathematica can (usually) handle ambiguous cases: In[1]:= Integrate[t^n,{t,1,Infinity}] Out[1]= ConditionalExpression[-1/(1+n), Re[n] < -1]

47 Mathematica 7.0.1: Integration Mathematica can (usually) handle ambiguous cases: In[1]:= Integrate[t^n,{t,1,Infinity}] Out[1]= ConditionalExpression[-1/(1+n), Re[n] < -1] It is also possible to build assumptions in: In[2]:= Integrate[t^n,{t,0,1},Assumptions->{Re[n] > -1}] Out[2]= 1/(1+n)

48 Mathematica 7.0.1: Integration Mathematica can (usually) handle ambiguous cases: In[1]:= Integrate[t^n,{t,1,Infinity}] Out[1]= ConditionalExpression[-1/(1+n), Re[n] < -1] It is also possible to build assumptions in: In[2]:= Integrate[t^n,{t,0,1},Assumptions->{Re[n] > -1}] Out[2]= 1/(1+n) Iterated integrals are performed from right to left: In[3]:= Integrate[1,{x,0,1},{y,0,x}] Out[3]= 1/2

49 Mathematica 7.0.1: Transformation Rules Transformation Rules: Assumptions->{Re[n] > -1} is called a transformation rule.

50 Mathematica 7.0.1: Transformation Rules Transformation Rules: Assumptions->{Re[n] > -1} is called a transformation rule. These are frequently found in function options or as output from equation-solving functions.

51 Mathematica 7.0.1: Transformation Rules Transformation Rules: Assumptions->{Re[n] > -1} is called a transformation rule. These are frequently found in function options or as output from equation-solving functions. Transformation rules always have the form Variable->Value, e.g. x->2.

52 Mathematica 7.0.1: Transformation Rules Transformation Rules: Assumptions->{Re[n] > -1} is called a transformation rule. These are frequently found in function options or as output from equation-solving functions. Transformation rules always have the form Variable->Value, e.g. x->2. Rules are applied to expressions using the /. operator: In[1]:= 3^x/.x->2 Out[1]= 9

53 Mathematica 7.0.1: Solving Equations Solving algebraic equations: Solve[eqns,vars] solves the list of polynomial equations/inequalities eqns for the list of variables vars: In[1]:= Solve[x^2+1 == 0,x] Out[1]= {{x -> -I}, {x -> I}}

54 Mathematica 7.0.1: Solving Equations Solving algebraic equations: Solve[eqns,vars] solves the list of polynomial equations/inequalities eqns for the list of variables vars: In[1]:= Solve[x^2+1 == 0,x] Out[1]= {{x -> -I}, {x -> I}} All input equalities are written using ==.

55 Mathematica 7.0.1: Solving Equations Solving algebraic equations: Solve[eqns,vars] solves the list of polynomial equations/inequalities eqns for the list of variables vars: In[1]:= Solve[x^2+1 == 0,x] Out[1]= {{x -> -I}, {x -> I}} All input equalities are written using ==. Solutions are returned as transformation rules: In[2]:= x/.out[1] Out[2]= {-I,I}

56 Mathematica 7.0.1: Solving Equations Solving algebraic equations: Solve[eqns,vars,dom] allows solution over restricted domains: In[1]:= Solve[x^2+1 == 0,x,Reals] Out[1]= {} (or Integers.)

57 Mathematica 7.0.1: Solving Equations Solving algebraic equations: Solve[eqns,vars,dom] allows solution over restricted domains: In[1]:= Solve[x^2+1 == 0,x,Reals] Out[1]= {} (or Integers.) More generally, FindRoot[eqns,{{x,x0},{y,y0},...}] numerically solves the list of equations/inequalities eqns for the list of variables {x,y,...} starting from {x0,y0,...}: In[2]:= FindRoot[Cos[x] == x,{x,0}] Out[2]= {x -> }

58 Mathematica 7.0.1: Solving Equations Solving differential equations: DSolve[eqns,{y1[x],y2[x],...},x] solves the list of differential equations/inequalities eqns for the list of functions {y1[x],y2[x],...}: In[1]:= DSolve[y [x] == 1,y[x],x] Out[1]= {{y[x] -> x+c[1]}}

59 Mathematica 7.0.1: Solving Equations Solving differential equations: DSolve[eqns,{y1[x],y2[x],...},x] solves the list of differential equations/inequalities eqns for the list of functions {y1[x],y2[x],...}: In[1]:= DSolve[y [x] == 1,y[x],x] Out[1]= {{y[x] -> x+c[1]}} Including boundary conditions: In[2]:= y[x]/.dsolve[{y [x] == 1,y[1]==3},y[x],x][[1]] Out[2]= 2+x

60 Mathematica 7.0.1: Solving Equations Solving differential equations: NDSolve[eqns,{y1[x],y2[x],...},{x,xmin,xmax}] numerically solves the same system between xmin and xmax: In[3]:= NDSolve[{y [x]==sin[x],y[0]==1},y[x],{x,0,10}] Out[3]= {{y[x]->interpolatingfunction[{{0.,10.}},<>][x]}} Boundary/initial conditions must be provided in this case.

61 Mathematica 7.0.1: Plotting Basic plot: Plot[Exp[-x],{x,0,5}]

62 Mathematica 7.0.1: Plotting Parametric plot: ParametricPlot[{2 Cos[t],Sin[t]},{t,0,2Pi}]

63 Mathematica 7.0.1: Plotting Contour plot: ContourPlot[Sin[x y],{x,-pi,pi},{y,-pi,pi}]

64 Mathematica 7.0.1: Plotting Contour plot with specific curves: ContourPlot[Sin[x y] == Range[0,1,0.1],{x,-Pi,Pi},{y,-Pi,Pi}]

65 Mathematica 7.0.1: Plotting 3D plot: Plot3D[Sin[x y],{x,-pi,pi},{y,-pi,pi}] Warning: high quality!

66 Mathematica 7.0.1: Plotting (Advanced) List plot: (syntax is slightly more complex) ListPlot[{{x1,y1},{x2,y2},...}] plots the points (x1,y1), (x2,y2) etc.

67 Mathematica 7.0.1: Plotting (Advanced) List plot: (syntax is slightly more complex) ListPlot[{{x1,y1},{x2,y2},...}] plots the points (x1,y1), (x2,y2) etc. Suitable lists are usually either: 1. Generated using Table[...] 2. Constructed from separate lists {x1,x2,...} and {y1,y2,...}.

68 Mathematica 7.0.1: Plotting (Advanced) List plot: (syntax is slightly more complex) ListPlot[{{x1,y1},{x2,y2},...}] plots the points (x1,y1), (x2,y2) etc. Suitable lists are usually either: 1. Generated using Table[...] 2. Constructed from separate lists {x1,x2,...} and {y1,y2,...}. Table[...] is an extension of Range[...]: In[1]:= Table[x^2,{x,1,9,2}] Out[1]= {1,9,25,49,81} Commands like Table[{f[x],g[x]},{x,0,2 Pi,0.1}] create lists of points suitable for ListPlot[...].

69 Mathematica 7.0.1: Plotting (Advanced) List plot (with Table): ListPlot[Table[{2 Cos[t],Sin[t]},{t,0,2 Pi,0.1}]]

70 Mathematica 7.0.1: Plotting (Advanced) List plot (with Transpose): Suppose instead we wish to plot ydata={y1,y2,...} against xdata={x1,x2,...} for given lists. We can mesh these separate lists together correctly using Transpose[...]: ListPlot[Transpose[{xdata,ydata}]] will produce the desired result. From the 2d Graphics Tips and Tricks sheet at

71 Mathematica 7.0.1: Plotting Plotting options: PlotRange->{{xmin,xmax},{ymin,ymax},{zmin,zmax}} AxesLabel->{"x-axis label","y-axis label"} PlotLabel->"plot label" PlotStyle->{Color,Linestyle,Linewidth} Axes->True/False Frame->True/False Joined->True (for ListPlot)

72 Mathematica 7.0.1: Plotting Overlaid plots (using lists): Plot[{Sin[x],Cos[x]},{x,0,2Pi}, PlotStyle->{{Red,Dashed},{Blue,Dotted}}]

73 Mathematica 7.0.1: Plotting Overlaid plots (using Show[...]): plot1 = ParametricPlot[{Cos[t]+0.1Cos[20t],Sin[t]+ 0.1Sin[20t]},{t,0,2Pi}]; plot2 = ListPlot[Table[{Cos[t],Sin[t]}, {t,0,2pi,pi/4}],plotstyle->{red}, Joined->{True}]; Show[plot1,plot2]

74 Mathematica 7.0.1: Remote Access Remote access: Command line: connect using ssh -p then type math to run Mathematica. This mode is interactive only (no notebook-style formatting). Windowed (slow): connect using ssh -p Y then type Mathematica. The full Mathematica GUI is displayed in this mode.

75 Mathematica 7.0.1: Other Tricks To clear a definition, use Clear[...] To clear all definitions, use ClearAll["Global *"]. (It is useful to place this line in the first input cell of every notebook.)

76 Mathematica 7.0.1: Other Tricks To clear a definition, use Clear[...] To clear all definitions, use ClearAll["Global *"]. (It is useful to place this line in the first input cell of every notebook.) To flatten nested lists, use Flatten[...]

77 Mathematica 7.0.1: Other Tricks To clear a definition, use Clear[...] To clear all definitions, use ClearAll["Global *"]. (It is useful to place this line in the first input cell of every notebook.) To flatten nested lists, use Flatten[...] It is possible to combine some commands using a piping (aka postfix) structure. Commands are stacked using the // operator: In[1]:= Pi/2 // N 1/Sqrt[2] // ArcSin // N Out[1]= Out[2]= This works for most single-argument functions (FullSimplify, TeXForm etc.)

78 Mathematica 7.0.1: Other Neat Features Scientific data sets for e.g. weather, planet positions are built in an can be accessed using functions like WeatherData[...], AstronomicalData[...], etc.

79 Mathematica 7.0.1: Other Neat Features Scientific data sets for e.g. weather, planet positions are built in an can be accessed using functions like WeatherData[...], AstronomicalData[...], etc. The generic Graphics[...] environment can be used to create decent-looking diagrams.

80 Mathematica 7.0.1: Other Neat Features Scientific data sets for e.g. weather, planet positions are built in an can be accessed using functions like WeatherData[...], AstronomicalData[...], etc. The generic Graphics[...] environment can be used to create decent-looking diagrams. Mathematica can produce animations and manipulable graphics using Animate[...] and Manipulate[...] in combination with Plot and Graphics.

81 Mathematica 7.0.1: Other Neat Features Scientific data sets for e.g. weather, planet positions are built in an can be accessed using functions like WeatherData[...], AstronomicalData[...], etc. The generic Graphics[...] environment can be used to create decent-looking diagrams. Mathematica can produce animations and manipulable graphics using Animate[...] and Manipulate[...] in combination with Plot and Graphics. See accompanying notebook for examples of these.

82 Mathematica 7.0.1: Quirks Quirks to watch out for: Undo button exists but rarely functions in any useful way.

83 Mathematica 7.0.1: Quirks Quirks to watch out for: Undo button exists but rarely functions in any useful way. Highlighting with arrow keys is double ended :-S

84 Mathematica 7.0.1: Quirks Quirks to watch out for: Undo button exists but rarely functions in any useful way. Highlighting with arrow keys is double ended :-S Mathematica always seems to try algebraic manipulation first. This can lead to problems when plotting functions with additional (numerical) parameters. In this case, using a?numericq pattern typically avoids the issue.

85 Mathematica 7.0.1: Quirks Quirks to watch out for: Undo button exists but rarely functions in any useful way. Highlighting with arrow keys is double ended :-S Mathematica always seems to try algebraic manipulation first. This can lead to problems when plotting functions with additional (numerical) parameters. In this case, using a?numericq pattern typically avoids the issue. There is no equivalent of Matlab s workspace - no easy way to check which variables are already defined.

Dynamical Systems - Math 3280 Mathematica: From Algebra to Dynamical Systems c

Dynamical Systems - Math 3280 Mathematica: From Algebra to Dynamical Systems c Dynamical Systems - Math 3280 Mathematica: From Algebra to Dynamical Systems c Edit your document (remove extras and errors, ensure the rest works correctly). If needed, add comments. It is not necessary

More information

ü 1.1 Getting Started

ü 1.1 Getting Started Chapter 1 Introduction Welcome to Mathematica! This tutorial manual is intended as a supplement to Rogawski's Calculus textbook and aimed at students looking to quickly learn Mathematica through examples.

More information

A Brief Introduction to Mathematica

A Brief Introduction to Mathematica A Brief Introduction to Mathematica Objectives: (1) To learn to use Mathematica as a calculator. (2) To learn to write expressions in Mathematica, and to evaluate them at given point. (3) To learn to plot

More information

Calculus II - Math 1220 Mathematica Commands: From Basics To Calculus II - Version 11 c

Calculus II - Math 1220 Mathematica Commands: From Basics To Calculus II - Version 11 c Calculus II - Math 1220 Mathematica Commands: From Basics To Calculus II - Version 11 c Edit your document (remove extras and errors, ensure the rest works correctly) and turn-in your print-out. If needed,

More information

Parametric Curves, Polar Plots and 2D Graphics

Parametric Curves, Polar Plots and 2D Graphics Parametric Curves, Polar Plots and 2D Graphics Fall 2016 In[213]:= Clear "Global`*" 2 2450notes2_fall2016.nb Parametric Equations In chapter 9, we introduced parametric equations so that we could easily

More information

Mathematics Computer Laboratory - Math Version 11 Lab 7 - Graphics c

Mathematics Computer Laboratory - Math Version 11 Lab 7 - Graphics c Mathematics Computer Laboratory - Math 1200 - Version 11 Lab 7 - Graphics c Due You should only turn in exercises in this lab with its title and your name in Title and Subtitle font, respectively. Edit

More information

Mathematica Basics. Exponential Functions Exp[expression] Natural Logarithms (ln) Log[expression]

Mathematica Basics. Exponential Functions Exp[expression] Natural Logarithms (ln) Log[expression] Mathematica Basics To evaluate a Mathematica command, press [Shift]+[Enter]. Pay attention to spaces! Mathematica interprets some of them as multiplication. Syntax, capitalization and punctuation are meaningful.

More information

HANDS-ON START TO WOLFRAM MATHEMATICA. and Programming with the Wolfram Language. Cliff Hastings Kelvin Mischo Michael Morrison.

HANDS-ON START TO WOLFRAM MATHEMATICA. and Programming with the Wolfram Language. Cliff Hastings Kelvin Mischo Michael Morrison. HANDS-ON START TO WOLFRAM MATHEMATICA and Programming with the Wolfram Language Cliff Hastings Kelvin Mischo Michael Morrison Champaign 11 11 1 111THE COMPLETE OVERVIEW 1 Chapter 1 The Very Basics 3 Chapter

More information

Basic stuff -- assignments, arithmetic and functions

Basic stuff -- assignments, arithmetic and functions Basic stuff -- assignments, arithmetic and functions Most of the time, you will be using Maple as a kind of super-calculator. It is possible to write programs in Maple -- we will do this very occasionally,

More information

This notebook "MathematicaDemo.nb" can be downloaded from the course web page.

This notebook MathematicaDemo.nb can be downloaded from the course web page. Mathematica demo http://www.wolfram.com/ This notebook "MathematicaDemo.nb" can be downloaded from the course web page. Basics Evaluate cells by pressing "shift-enter" / shift-return In[]:= + 3 Out[]=

More information

Mathematical Experiments with Mathematica

Mathematical Experiments with Mathematica Mathematical Experiments with Mathematica Instructor: Valentina Kiritchenko Classes: F 12:00-1:20 pm E-mail : vkiritchenko@yahoo.ca, vkiritch@hse.ru Office hours : Th 5:00-6:20 pm, F 3:30-5:00 pm 1. Syllabus

More information

STEPHEN WOLFRAM MATHEMATICADO. Fourth Edition WOLFRAM MEDIA CAMBRIDGE UNIVERSITY PRESS

STEPHEN WOLFRAM MATHEMATICADO. Fourth Edition WOLFRAM MEDIA CAMBRIDGE UNIVERSITY PRESS STEPHEN WOLFRAM MATHEMATICADO OO Fourth Edition WOLFRAM MEDIA CAMBRIDGE UNIVERSITY PRESS Table of Contents XXI a section new for Version 3 a section new for Version 4 a section substantially modified for

More information

Functions and Graphs. The METRIC Project, Imperial College. Imperial College of Science Technology and Medicine, 1996.

Functions and Graphs. The METRIC Project, Imperial College. Imperial College of Science Technology and Medicine, 1996. Functions and Graphs The METRIC Project, Imperial College. Imperial College of Science Technology and Medicine, 1996. Launch Mathematica. Type

More information

Choose the file menu, and select Open. Input to be typed at the Maple prompt. Output from Maple. An important tip.

Choose the file menu, and select Open. Input to be typed at the Maple prompt. Output from Maple. An important tip. MAPLE Maple is a powerful and widely used mathematical software system designed by the Computer Science Department of the University of Waterloo. It can be used for a variety of tasks, such as solving

More information

Teaching Complex Analysis as a Lab- Type ( flipped ) Course with a Focus on Geometric Interpretations using Mathematica

Teaching Complex Analysis as a Lab- Type ( flipped ) Course with a Focus on Geometric Interpretations using Mathematica Teaching Complex Analysis as a Lab- Type ( flipped ) Course with a Focus on Geometric Interpretations using Mathematica Bill Kinney, Bethel University, St. Paul, MN 2 KinneyComplexAnalysisLabCourse.nb

More information

MATH 162 Calculus II Computer Laboratory Topic: Introduction to Mathematica & Parametrizations

MATH 162 Calculus II Computer Laboratory Topic: Introduction to Mathematica & Parametrizations MATH 162 Calculus II Computer Laboratory Topic: Introduction to Mathematica & Goals of the lab: To learn some basic operations in Mathematica, such as how to define a function, and how to produce various

More information

Section 1: Numerical Calculations

Section 1: Numerical Calculations Section 1: Numerical Calculations In this section you will use Maple to do some standard numerical calculations. Maple's ability to produce exact answers in addition to numerical approximations gives you

More information

TU Bergakademie Freiberg. Computer Algebra System Mathematica

TU Bergakademie Freiberg. Computer Algebra System Mathematica TU Bergakademie Freiberg Winter 12/13 Computer Algebra System Mathematica 1 Introduction 1.1 About Mathematica Mathematica (www.wolfram.com/mathematica/) is one of the highest developed computer algebra

More information

Computer Programming in MATLAB

Computer Programming in MATLAB Computer Programming in MATLAB Prof. Dr. İrfan KAYMAZ Atatürk University Engineering Faculty Department of Mechanical Engineering What is a computer??? Computer is a device that computes, especially a

More information

Ph3 Mathematica Homework: Week 6

Ph3 Mathematica Homework: Week 6 Ph3 Mathematica Homework: Week 6 Eric D. Black California Institute of Technology v1.1 Now that we ve covered techniques specific to data analysis, we will branch out into some more general topics. This

More information

Laboratory 1 Octave Tutorial

Laboratory 1 Octave Tutorial Signals, Spectra and Signal Processing Laboratory 1 Octave Tutorial 1.1 Introduction The purpose of this lab 1 is to become familiar with the GNU Octave 2 software environment. 1.2 Octave Review All laboratory

More information

Maple Commands for Surfaces and Partial Derivatives

Maple Commands for Surfaces and Partial Derivatives Math 235 Lab 2 Intro Maple Commands for Surfaces and Partial Derivatives We ve seen that a curve can be written as y = f(x), or more generally in parametric form using one parameter (usually t), and the

More information

Introduction to Matlab

Introduction to Matlab Introduction to Matlab Kristian Sandberg Department of Applied Mathematics University of Colorado Goal The goal with this worksheet is to give a brief introduction to the mathematical software Matlab.

More information

C1M0 Introduction to Maple Assignment Format C1M1 C1M1 Midn John Doe Section 1234 Beginning Maple Syntax any

C1M0 Introduction to Maple Assignment Format C1M1 C1M1 Midn John Doe Section 1234 Beginning Maple Syntax any CM0 Introduction to Maple Our discussion will focus on Maple 6, which was developed by Waterloo Maple Inc. in Waterloo, Ontario, Canada. Quoting from the Maple 6 Learning Guide, Maple is a Symbolic Computation

More information

YOGYAKARTA STATE UNIVERSITY MATHEMATICS AND NATURAL SCIENCES FACULTY MATHEMATICS EDUCATION STUDY PROGRAM

YOGYAKARTA STATE UNIVERSITY MATHEMATICS AND NATURAL SCIENCES FACULTY MATHEMATICS EDUCATION STUDY PROGRAM YOGYAKARTA STATE UNIVERSITY MATHEMATICS AND NATURAL SCIENCES FACULTY MATHEMATICS EDUCATION STUDY PROGRAM TOPIC 1 INTRODUCING SOME MATHEMATICS SOFTWARE (Matlab, Maple and Mathematica) This topic provides

More information

Getting to Know Maple

Getting to Know Maple Maple Worksheets for rdinary Differential Equations Complimentary software to accompany the textbook: Differential Equations: Concepts, Methods, and Models (00-00 Edition) Leigh C. Becker Department of

More information

Introduction to Geogebra

Introduction to Geogebra Aims Introduction to Geogebra Using Geogebra in the A-Level/Higher GCSE Classroom To provide examples of the effective use of Geogebra in the teaching and learning of mathematics at A-Level/Higher GCSE.

More information

MST30040 Differential Equations via Computer Algebra Fall 2010 Worksheet 1

MST30040 Differential Equations via Computer Algebra Fall 2010 Worksheet 1 MST3000 Differential Equations via Computer Algebra Fall 2010 Worksheet 1 1 Some elementary calculations To use Maple for calculating or problem solving, the basic method is conversational. You type a

More information

Graphics calculator instructions

Graphics calculator instructions Graphics calculator instructions Contents: A B C D E F G Basic calculations Basic functions Secondary function and alpha keys Memory Lists Statistical graphs Working with functions 10 GRAPHICS CALCULATOR

More information

Dynamics and Vibrations Mupad tutorial

Dynamics and Vibrations Mupad tutorial Dynamics and Vibrations Mupad tutorial School of Engineering Brown University ENGN40 will be using Matlab Live Scripts instead of Mupad. You can find information about Live Scripts in the ENGN40 MATLAB

More information

Introduction to Engineering gii

Introduction to Engineering gii 25.108 Introduction to Engineering gii Dr. Jay Weitzen Lecture Notes I: Introduction to Matlab from Gilat Book MATLAB - Lecture # 1 Starting with MATLAB / Chapter 1 Topics Covered: 1. Introduction. 2.

More information

Dr Richard Greenaway

Dr Richard Greenaway SCHOOL OF PHYSICS, ASTRONOMY & MATHEMATICS 4PAM1008 MATLAB 2 Basic MATLAB Operation Dr Richard Greenaway 2 Basic MATLAB Operation 2.1 Overview 2.1.1 The Command Line In this Workshop you will learn how

More information

Maple Quick Start. Maplesoft, a division of Waterloo Maple Inc.

Maple Quick Start. Maplesoft, a division of Waterloo Maple Inc. Maple Quick Start Maplesoft, a division of Waterloo Maple Inc. This tutorial is designed to help you become familiar with the Maple environment and teach you the few fundamental concepts and tools you

More information

1 Introduction to Matlab

1 Introduction to Matlab 1 Introduction to Matlab 1. What is Matlab? Matlab is a computer program designed to do mathematics. You might think of it as a super-calculator. That is, once Matlab has been started, you can enter computations,

More information

Matlab Tutorial. The value assigned to a variable can be checked by simply typing in the variable name:

Matlab Tutorial. The value assigned to a variable can be checked by simply typing in the variable name: 1 Matlab Tutorial 1- What is Matlab? Matlab is a powerful tool for almost any kind of mathematical application. It enables one to develop programs with a high degree of functionality. The user can write

More information

1. How Mathematica works

1. How Mathematica works Departments of Civil Engineering and Mathematics CE 109: Computing for Engineering Mathematica Session 1: Introduction to the system Mathematica is a piece of software described by its manufacturers as

More information

MAT 275 Laboratory 1 Introduction to MATLAB

MAT 275 Laboratory 1 Introduction to MATLAB MATLAB sessions: Laboratory 1 1 MAT 275 Laboratory 1 Introduction to MATLAB MATLAB is a computer software commonly used in both education and industry to solve a wide range of problems. This Laboratory

More information

Graphs of Functions, Limits, and

Graphs of Functions, Limits, and Chapter Continuity Graphs of Functions, Limits, and ü. Plotting Graphs Students should read Chapter of Rogawski's Calculus [] for a detailed discussion of the material presented in this section. ü.. Basic

More information

A Mathematica Tutorial

A Mathematica Tutorial A Mathematica Tutorial -3-8 This is a brief introduction to Mathematica, the symbolic mathematics program. This tutorial is generic, in the sense that you can use it no matter what kind of computer you

More information

Getting Started With Mathematica

Getting Started With Mathematica Getting Started With Mathematica First Steps This semester we will make use of the software package Mathematica; this package is available on all Loyola networked computers. You can access Mathematica

More information

Graphics calculator instructions

Graphics calculator instructions Graphics calculator instructions Contents: A B C D E F G Basic calculations Basic functions Secondary function and alpha keys Memory Lists Statistical graphs Working with functions 10 GRAPHICS CALCULATOR

More information

GETTING STARTED WITH MATHEMATICA

GETTING STARTED WITH MATHEMATICA GETTING STARTED WITH MATHEMATICA Loading Mathematica : If you are on any Loyola network computer, you should be able to load Mathematica by clicking on the start button (on the lower left of the computer

More information

Assignment 1. Prolog to Problem 1. Two cylinders. ü Visualization. Problems by Branko Curgus

Assignment 1. Prolog to Problem 1. Two cylinders. ü Visualization. Problems by Branko Curgus Assignment In[]:= Problems by Branko Curgus SetOptions $FrontEndSession, Magnification Prolog to Problem. Two cylinders In[]:= This is a tribute to a problem that I was assigned as an undergraduate student

More information

REPRESENTATION OF CURVES IN PARAMETRIC FORM

REPRESENTATION OF CURVES IN PARAMETRIC FORM - Representation of curves in parametric form 1 REPRESENTATION OF CURVES IN PARAMETRIC FORM.1. Parametrization of curves in the plane Given a curve in parametric form, its graphical representation in a

More information

1 Basic Plotting. Radii Speeds Offsets 1, 1, 1 2, 5, 19 0, 0, 0 1, 0.8, 0.4, 0.2, 0.4, 0.2 1, 10, 17, 26, 28, 37 0, Π, Π, 0, 0, Π

1 Basic Plotting. Radii Speeds Offsets 1, 1, 1 2, 5, 19 0, 0, 0 1, 0.8, 0.4, 0.2, 0.4, 0.2 1, 10, 17, 26, 28, 37 0, Π, Π, 0, 0, Π 1 Basic Plotting Placing wheels on wheels on wheels and giving them different rates of spin leads to some interesting parametric plots. The images show four examples. They arise from the values below,

More information

Introduction to Classic Maple by David Maslanka

Introduction to Classic Maple by David Maslanka Introduction to Classic Maple by David Maslanka Maple is a computer algebra system designed to do mathematics. Symbolic, numerical and graphical computations can all be done with Maple. Maple's treatment

More information

Quickstart: Mathematica for Calculus I (Version 9.0) C. G. Melles Mathematics Department United States Naval Academy September 2, 2013

Quickstart: Mathematica for Calculus I (Version 9.0) C. G. Melles Mathematics Department United States Naval Academy September 2, 2013 Quickstart: Mathematica for Calculus I (Version 9.0) C. G. Melles Mathematics Department United States Naval Academy September, 0 Contents. Getting Started. Basic plotting. Solving equations, approximating

More information

AMS 27L LAB #1 Winter 2009

AMS 27L LAB #1 Winter 2009 AMS 27L LAB #1 Winter 2009 Introduction to MATLAB Objectives: 1. To introduce the use of the MATLAB software package 2. To learn elementary mathematics in MATLAB Getting Started: Log onto your machine

More information

Graphics calculator instructions

Graphics calculator instructions Graphics calculator instructions Contents: A Basic calculations B Basic functions C Secondary function and alpha keys D Memory E Lists F Statistical graphs G Working with functions H Two variable analysis

More information

MATLAB QUICK START TUTORIAL

MATLAB QUICK START TUTORIAL MATLAB QUICK START TUTORIAL This tutorial is a brief introduction to MATLAB which is considered one of the most powerful languages of technical computing. In the following sections, the basic knowledge

More information

Math 7 Elementary Linear Algebra PLOTS and ROTATIONS

Math 7 Elementary Linear Algebra PLOTS and ROTATIONS Spring 2007 PLOTTING LINE SEGMENTS Math 7 Elementary Linear Algebra PLOTS and ROTATIONS Example 1: Suppose you wish to use MatLab to plot a line segment connecting two points in the xy-plane. Recall that

More information

VARIABLES Storing numbers:

VARIABLES Storing numbers: VARIABLES Storing numbers: You may create and use variables in Matlab to store data. There are a few rules on naming variables though: (1) Variables must begin with a letter and can be followed with any

More information

Mathematics Computer Laboratory - Math Version 11 Lab 6 - Trigonometric Functions c

Mathematics Computer Laboratory - Math Version 11 Lab 6 - Trigonometric Functions c Mathematics Computer Laboratory - Math 100 - Version 11 Lab 6 - Trigonometric Functions c Due You should only turn in exercises in this lab with its title and your name in Title and Subtitle font, respectively.

More information

MATLAB Lesson I. Chiara Lelli. October 2, Politecnico di Milano

MATLAB Lesson I. Chiara Lelli. October 2, Politecnico di Milano MATLAB Lesson I Chiara Lelli Politecnico di Milano October 2, 2012 MATLAB MATLAB (MATrix LABoratory) is an interactive software system for: scientific computing statistical analysis vector and matrix computations

More information

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER BENC 2113 DENC ECADD 2532 ECADD LAB SESSION 6/7 LAB

More information

hp calculators hp 39g+ & hp 39g/40g Using Matrices How are matrices stored? How do I solve a system of equations? Quick and easy roots of a polynomial

hp calculators hp 39g+ & hp 39g/40g Using Matrices How are matrices stored? How do I solve a system of equations? Quick and easy roots of a polynomial hp calculators hp 39g+ Using Matrices Using Matrices The purpose of this section of the tutorial is to cover the essentials of matrix manipulation, particularly in solving simultaneous equations. How are

More information

MEI GeoGebra Tasks for AS Pure

MEI GeoGebra Tasks for AS Pure Task 1: Coordinate Geometry Intersection of a line and a curve 1. Add a quadratic curve, e.g. y = x 2 4x + 1 2. Add a line, e.g. y = x 3 3. Use the Intersect tool to find the points of intersection of

More information

Calculus III. 1 Getting started - the basics

Calculus III. 1 Getting started - the basics Calculus III Spring 2011 Introduction to Maple The purpose of this document is to help you become familiar with some of the tools the Maple software package offers for visualizing curves and surfaces in

More information

A/D Converter. Sampling. Figure 1.1: Block Diagram of a DSP System

A/D Converter. Sampling. Figure 1.1: Block Diagram of a DSP System CHAPTER 1 INTRODUCTION Digital signal processing (DSP) technology has expanded at a rapid rate to include such diverse applications as CDs, DVDs, MP3 players, ipods, digital cameras, digital light processing

More information

Introduction to MATLAB Programming

Introduction to MATLAB Programming Introduction to MATLAB Programming Arun A. Balakrishnan Asst. Professor Dept. of AE&I, RSET Overview 1 Overview 2 Introduction 3 Getting Started 4 Basics of Programming Overview 1 Overview 2 Introduction

More information

Lab 2B Parametrizing Surfaces Math 2374 University of Minnesota Questions to:

Lab 2B Parametrizing Surfaces Math 2374 University of Minnesota   Questions to: Lab_B.nb Lab B Parametrizing Surfaces Math 37 University of Minnesota http://www.math.umn.edu/math37 Questions to: rogness@math.umn.edu Introduction As in last week s lab, there is no calculus in this

More information

Tips to Save Typing, etc.

Tips to Save Typing, etc. MATH 110 Dr. Stoudt Using Your TI-89/Voyage 200 Guidebooks for all Texas Instruments calculators can be downloaded (in Adobe PDF format) from http://education.ti.com/en/us/guidebook/search Just search

More information

Introduction to Matlab

Introduction to Matlab Introduction to Matlab Matlab (MATrix LABoratory) will be the programming environment of choice for the numerical solutions developed in this textbook due to its wide availability and its ease of use.

More information

Summer 2009 REU: Introduction to Matlab

Summer 2009 REU: Introduction to Matlab Summer 2009 REU: Introduction to Matlab Moysey Brio & Paul Dostert June 29, 2009 1 / 19 Using Matlab for the First Time Click on Matlab icon (Windows) or type >> matlab & in the terminal in Linux. Many

More information

4. Mathematica. 4.1 Introduction. 4.2 Starting Mathematica Starting Mathematica from an X-terminal (Maths)

4. Mathematica. 4.1 Introduction. 4.2 Starting Mathematica Starting Mathematica from an X-terminal (Maths) 4. Mathematica 4.1 Introduction Mathematica is a general purpose computer algebra system. That means it can do algebraic manipulations (including calculus and matrix manipulation) and it can also be used

More information

Introduction to MATLAB

Introduction to MATLAB Introduction to MATLAB Introduction MATLAB is an interactive package for numerical analysis, matrix computation, control system design, and linear system analysis and design available on most CAEN platforms

More information

INTRODUCTION TO MATHEMATICA FOR PHYSICS 103

INTRODUCTION TO MATHEMATICA FOR PHYSICS 103 INTRODUCTION TO MATHEMATICA FOR PHYSICS 103 The following introduction to Mathematica was written by Kirsten Nordstrom 04, updated by Prof. Elizabeth McCormick, and then heavily modified for Physics 103

More information

Introduction. What is Maple? How to use this tutorial. Where can I find Maple?

Introduction. What is Maple? How to use this tutorial. Where can I find Maple? Introduction What is Maple? Maple is a computer program for people doing mathematics. Using Maple to do your calculations should make the work more interesting, allow you to focus more on the concepts,

More information

MATLAB SUMMARY FOR MATH2070/2970

MATLAB SUMMARY FOR MATH2070/2970 MATLAB SUMMARY FOR MATH2070/2970 DUNCAN SUTHERLAND 1. Introduction The following is inted as a guide containing all relevant Matlab commands and concepts for MATH2070 and 2970. All code fragments should

More information

2.0 MATLAB Fundamentals

2.0 MATLAB Fundamentals 2.0 MATLAB Fundamentals 2.1 INTRODUCTION MATLAB is a computer program for computing scientific and engineering problems that can be expressed in mathematical form. The name MATLAB stands for MATrix LABoratory,

More information

LAB 1 General MATLAB Information 1

LAB 1 General MATLAB Information 1 LAB 1 General MATLAB Information 1 General: To enter a matrix: > type the entries between square brackets, [...] > enter it by rows with elements separated by a space or comma > rows are terminated by

More information

Programming in Mathematics. Mili I. Shah

Programming in Mathematics. Mili I. Shah Programming in Mathematics Mili I. Shah Starting Matlab Go to http://www.loyola.edu/moresoftware/ and login with your Loyola name and password... Matlab has eight main windows: Command Window Figure Window

More information

hp calculators HP 39gs Examples of graphing A few simple functions A flower in the Polar aplet Motion in the Parametric aplet

hp calculators HP 39gs Examples of graphing A few simple functions A flower in the Polar aplet Motion in the Parametric aplet A few simple functions A flower in the Polar aplet Motion in the Parametric aplet The role of thetastep and TStep Choosing a nice scale Split views A few simple functions Example 1 The profit for a company

More information

Getting Started With Mathematica

Getting Started With Mathematica Getting Started With Mathematica First Steps This semester we will make use of the software package Mathematica; this package is available on all Loyola networked computers. You can access Mathematica

More information

MATLAB = MATrix LABoratory. Interactive system. Basic data element is an array that does not require dimensioning.

MATLAB = MATrix LABoratory. Interactive system. Basic data element is an array that does not require dimensioning. Introduction MATLAB = MATrix LABoratory Interactive system. Basic data element is an array that does not require dimensioning. Efficient computation of matrix and vector formulations (in terms of writing

More information

Constraint-based Metabolic Reconstructions & Analysis H. Scott Hinton. Matlab Tutorial. Lesson: Matlab Tutorial

Constraint-based Metabolic Reconstructions & Analysis H. Scott Hinton. Matlab Tutorial. Lesson: Matlab Tutorial 1 Matlab Tutorial 2 Lecture Learning Objectives Each student should be able to: Describe the Matlab desktop Explain the basic use of Matlab variables Explain the basic use of Matlab scripts Explain the

More information

STAT/MATH 395 A - PROBABILITY II UW Winter Quarter Matlab Tutorial

STAT/MATH 395 A - PROBABILITY II UW Winter Quarter Matlab Tutorial STAT/MATH 395 A - PROBABILITY II UW Winter Quarter 2016 Néhémy Lim Matlab Tutorial 1 Introduction Matlab (standing for matrix laboratory) is a high-level programming language and interactive environment

More information

1-- Pre-Lab The Pre-Lab this first week is short and straightforward. Make sure that you read through the information below prior to coming to lab.

1-- Pre-Lab The Pre-Lab this first week is short and straightforward. Make sure that you read through the information below prior to coming to lab. EELE 477 Lab 1: Introduction to MATLAB Pre-Lab and Warm-Up: You should read the Pre-Lab and Warm-up sections of this lab assignment and go over all exercises in the Pre-Lab section before attending your

More information

Basic Exercises about Mathematica

Basic Exercises about Mathematica Basic Exercises about Mathematica 1. Calculate with four decimal places. NB F. 2.23607 2.23607 Ë We can evaluate a cell by placing the cursor on it and pressing Shift+Enter (or Enter on the numeric key

More information

Functions f and g are called a funny cosine and a funny sine if they satisfy the following properties:

Functions f and g are called a funny cosine and a funny sine if they satisfy the following properties: Assignment problems by Branko Ćurgus posted on 2070720 Problem. Funny trigonometry and its beauty ü Few Mathematica comments There are several standard Mathematica functions that can be useful here. For

More information

Ph3 Mathematica Homework: Week 1

Ph3 Mathematica Homework: Week 1 Ph3 Mathematica Homework: Week 1 Eric D. Black California Institute of Technology v1.1 1 Obtaining, installing, and starting Mathematica Exercise 1: If you don t already have Mathematica, download it and

More information

Graphing Calculator Scientific Calculator Version 2.0

Graphing Calculator Scientific Calculator Version 2.0 Graphing Calculator Scientific Calculator Version 2.0 www.infinitysw.com/ets March 14, 2017 1 Table of Contents Table of Contents 1 Overview 3 2 Navigation 4 3 Using the Calculator 5 Display 5 Performing

More information

Experiment 1: Introduction to MATLAB I. Introduction. 1.1 Objectives and Expectations: 1.2 What is MATLAB?

Experiment 1: Introduction to MATLAB I. Introduction. 1.1 Objectives and Expectations: 1.2 What is MATLAB? Experiment 1: Introduction to MATLAB I Introduction MATLAB, which stands for Matrix Laboratory, is a very powerful program for performing numerical and symbolic calculations, and is widely used in science

More information

Introduction to MATLAB

Introduction to MATLAB Introduction to MATLAB Basics MATLAB is a high-level interpreted language, and uses a read-evaluate-print loop: it reads your command, evaluates it, then prints the answer. This means it works a lot like

More information

Tips to Save Typing, etc.

Tips to Save Typing, etc. MATH 110 Dr. Stoudt Using Your TI-nspire CAS Guidebooks for all Texas Instruments calculators can be downloaded (in Adobe PDF format) from http://education.ti.com/en/us/guidebook/search Just search for

More information

Introduction to Matlab

Introduction to Matlab What is Matlab? Introduction to Matlab Matlab is software written by a company called The Mathworks (mathworks.com), and was first created in 1984 to be a nice front end to the numerical routines created

More information

Welcome. Please Sign-In

Welcome. Please Sign-In Welcome Please Sign-In Day 1 Session 1 Self-Evaluation Topics to be covered: Equations Systems of Equations Solving Inequalities Absolute Value Equations Equations Equations An equation says two things

More information

PART 1 PROGRAMMING WITH MATHLAB

PART 1 PROGRAMMING WITH MATHLAB PART 1 PROGRAMMING WITH MATHLAB Presenter: Dr. Zalilah Sharer 2018 School of Chemical and Energy Engineering Universiti Teknologi Malaysia 23 September 2018 Programming with MATHLAB MATLAB Environment

More information

Getting Started with Mathematica

Getting Started with Mathematica Getting Started with Mathematica Introduction What is Mathematica? Mathematica is a computer program for doing mathematics. It is often used for instruction, homework, research, and writing. Mathematica

More information

FreeMat Tutorial. 3x + 4y 2z = 5 2x 5y + z = 8 x x + 3y = -1 xx

FreeMat Tutorial. 3x + 4y 2z = 5 2x 5y + z = 8 x x + 3y = -1 xx 1 of 9 FreeMat Tutorial FreeMat is a general purpose matrix calculator. It allows you to enter matrices and then perform operations on them in the same way you would write the operations on paper. This

More information

Using a Scientific Calculator

Using a Scientific Calculator Using a Scientific Calculator Hardware on the TI-89 How much memory does the TI 89 have? The TI-89 has 188k of RAM and 384k of memory that can be used for archiving programs, making a total memory of 572k

More information

Part #1. A0B17MTB Matlab. Miloslav Čapek Filip Kozák, Viktor Adler, Pavel Valtr

Part #1. A0B17MTB Matlab. Miloslav Čapek Filip Kozák, Viktor Adler, Pavel Valtr A0B17MTB Matlab Part #1 Miloslav Čapek miloslav.capek@fel.cvut.cz Filip Kozák, Viktor Adler, Pavel Valtr Department of Electromagnetic Field B2-626, Prague You will learn Scalars, vectors, matrices (class

More information

GRAPH 4.4. Megha K. Raman APRIL 22, 2015

GRAPH 4.4. Megha K. Raman APRIL 22, 2015 GRAPH 4.4 By Megha K. Raman APRIL 22, 2015 1. Preface... 4 2. Introduction:... 4 3. Plotting a function... 5 Sample funtions:... 9 List of Functions:... 10 Constants:... 10 Operators:... 11 Functions:...

More information

MATH SPEAK - TO BE UNDERSTOOD AND MEMORIZED DETERMINING THE INTERSECTIONS USING THE GRAPHING CALCULATOR

MATH SPEAK - TO BE UNDERSTOOD AND MEMORIZED DETERMINING THE INTERSECTIONS USING THE GRAPHING CALCULATOR FOM 11 T15 INTERSECTIONS & OPTIMIZATION PROBLEMS - 1 1 MATH SPEAK - TO BE UNDERSTOOD AND MEMORIZED 1) INTERSECTION = a set of coordinates of the point on the grid where two or more graphed lines touch

More information

Graphical Scientific CALCULATOR

Graphical Scientific CALCULATOR 18.3.2006 Graphical Scientific CALCULATOR USER S MANUAL File size: 23 K Application Version: 2.0 Models: All Nokia Java compatible mobile phones Supported languages: English, German, Finnish, Swedish,

More information

PreCalculus Summer Assignment

PreCalculus Summer Assignment PreCalculus Summer Assignment Welcome to PreCalculus! We are excited for a fabulous year. Your summer assignment is available digitally on the Lyman website. You are expected to print your own copy. Expectations:

More information

PROGRAMMING WITH MATLAB DR. AHMET AKBULUT

PROGRAMMING WITH MATLAB DR. AHMET AKBULUT PROGRAMMING WITH MATLAB DR. AHMET AKBULUT OVERVIEW WEEK 1 What is MATLAB? A powerful software tool: Scientific and engineering computations Signal processing Data analysis and visualization Physical system

More information

Outline. CSE 1570 Interacting with MATLAB. Starting MATLAB. Outline (Cont d) MATLAB Windows. MATLAB Desktop Window. Instructor: Aijun An

Outline. CSE 1570 Interacting with MATLAB. Starting MATLAB. Outline (Cont d) MATLAB Windows. MATLAB Desktop Window. Instructor: Aijun An CSE 170 Interacting with MATLAB Instructor: Aijun An Department of Computer Science and Engineering York University aan@cse.yorku.ca Outline Starting MATLAB MATLAB Windows Using the Command Window Some

More information

You can drag the graphs using your mouse to rotate the surface.

You can drag the graphs using your mouse to rotate the surface. The following are some notes for relative maxima and mimima using surfaces plotted in Mathematica. The way to run the code is: Select Menu bar -- Evaluation -- Evaluate Notebook You can drag the graphs

More information

Maple for Math Majors. 12. Data Structures in Maple

Maple for Math Majors. 12. Data Structures in Maple Maple for Math Majors Roger Kraft Department of Mathematics, Computer Science, and Statistics Purdue University Calumet roger@calumet.purdue.edu 12.1. Introduction 12. Data Structures in Maple We have

More information