Zajecia 1. Krotkie wprowadzenie do srodowiska Mathematica 4^ D D 1. ?

Size: px
Start display at page:

Download "Zajecia 1. Krotkie wprowadzenie do srodowiska Mathematica 4^ D D 1. ?"

Transcription

1 Zajecia Krotkie wprowadzenie do srodowiska Mathematica In[]:= Out[]= In[]:= Out[]= In[]:= Out[]= In[7]:= Out[7]= In[8]:= Out[8]= In[9]:= Out[9]= + ^ Sqrt@D Log@0, 00D Sin@Pi D In[0]:=! Out[0]= In[]:= Out[]= In[]:= Out[]= In[]:= Out[]= In[]:= Factorial@D Round@.D Mod@0, D? Mod Mod@m, nd gives the remainder on division of m by n. Mod@m, n, dd uses an offset d. In[]:= E Out[]= ã

2 lab_.nb In[]:= Out[]= In[7]:= Out[7]= In[8]:= Out[8]= In[98]:= ä 9 Out[98]= In[99]:= Out[99]= In[]:= N@ D 0. % Out[]= 0. In[00]:= %% Out[00]= Przypisywanie wartosci In[0]:= Out[0]= x = In[]:= x = y = 7; In[0]:= Clear@xD := Assign the value to x, but don' t do it right away; wait until x is actually used In[0]:= x := In[07]:= x == y Out[07]= False In[08]:= Solve@x ^ - x + 0, xd Solve::ivar : is not a valid variable. Out[08]= Solve@False, D In[09]:= Clear@xD In[0]:= Solve@x ^ - x + 0, xd Out[0]= In[]:= Out[]= 88x <, 8x << Clear@xD; Solve@x ^ - 7 x - 0, xd ::x I7 - M>, :x I7 + M>>

3 lab_.nb Transformacje wyrazen algebraicznych In[]:= Out[]= In[]:= Out[]= In[]:= x+x x Hx + L ^ H + xl Expand@H + xl ^ D Out[]= + x + x In[]:= Factor@%D Out[]= H + xl Definiowanie funkcji funkcja@x_d := x ^ + In[7]:= Out[7]= funkcja@d Define a new function f.note the underscore on the x on the left side of the statement! It must be there; it tells Mathematica to treat x as a pattern; thereafter, when you type something like f[a + b], Mathematica will then immediately consider that to be the same as (a + b)^ - (a + b) In[]:= funkcja@x_, y_d := x ^ + y ^ In[]:= funkcja@, D Out[]= In[]:=?# ð represents the first argument supplied to a pure function. ð n represents the nth argument. In[]:=?& Function@bodyD or body & is a pure function. The formal parameters are ð Hor ðl, ð, etc. Function@x, bodyd is a pure function with a single formal parameter x. Function@8x, x, <, bodyd is a pure function with a list of formal parameters. In[]:= f := ð ^ + & In[7]:= f@d Out[7]= In[]:= g := ð ^ + ð ^ + 0 &

4 lab_.nb In[7]:= Out[7]= D 9 Listy In[]:= In[7]:= lista = 8,,, 8<; lista@@dd Out[7]= In[]:=? Table Table@expr, 8imax <D generates a list of imax copies of expr. Table@expr, 8i, imax <D generates a list of the values of expr when i runs from to imax. Table@expr, 8i, imin, imax <D starts with i = imin. Table@expr, 8i, imin, imax, di<d uses steps di. Table@expr, 8i, 8i, i, <<D uses the successive values i, i,. In[]:= Out[]= In[7]:= Out[7]= In[8]:= Out[8]= In[9]:= In[0]:= Table@expr, 8i, imin, imax <, 8 j, jmin, jmax <, D gives a nested list. The list associated with i is outermost. Table@i ^, 8i, 0<D 8,, 9,,,, 9,, 8, 00< Table@i ^, 8i,, 0, <D 8,,,, 00< Table@Prime@iD, 8i, 0<D 8,,, 7,,, 7, 9,, 9,, 7,,, 7,, 9,, 7, 7, 7, 79, 8, 89, 97, 0, 0, 07, 09,, 7,, 7, 9, 9,, 7,, 7, 7, 79, 8, 9, 9, 97, 99,,, 7, 9< w := Table@i j, 8i, <, 8j, <D w MatrixForm Out[0]//MatrixForm= In[]:= Out[]= In[]:= Table@If@EvenQ@iD ÈÈ EvenQ@jD,, 0D, 8i, <, 8j, <D 880,, 0<, 8,, <, 80,, 0<< % MatrixForm Out[]//MatrixForm=

5 lab_.nb Grafika In[]:= 8x, 0, Pi<D.0 0. Out[]= In[]:= H + a xld, 8x, 0, <D, 8a, 0, <D a.0 0. Out[]= In[0]:= ListPlot@Table@Prime@iD, 8i, 0<DD 00 0 Out[0]=

6 lab_.nb In[70]:= Out[70]= In[7]:= + Sin@xD, 8x, 0, 0<DD 0 8 Out[7]= 8 0 Litery greckiego alfabetu Esc+litera+Esc, np. Θ, Α. Indeks dolny Ctrl + _ In[7]:=? Rectangle Rectangle@8xmin, ymin <, 8xmax, ymax <D is a two-dimensional graphics primitive that represents a filled rectangle, oriented parallel to the axes. In[7]:= Rectangle@8xmin, ymin <D corresponds to a unit square with its bottom-left corner at 8xmin, ymin <.? Graphics Graphics@ primitives, optionsd represents a two-dimensional graphical image.

7 lab_.nb In[7]:= Green, - <, 8, <D, Red, Blue, 0<D, Yellow, 0<, 8, <, 8, - <<D<D Out[7]= In[7]:=? GraphicsGrid GraphicsGrid@88g, g, <, <D generates a graphic in which the gij are laid out in a two-dimensional grid. In[7]:= GraphicsGrid@88Graphics@Rectangle@DD, Graphics@Disk@DD<, 8Graphics@Disk@DD, Graphics@Rectangle@DD<<D Out[7]= Obroty na okrêgu Zad. In[77]:= In[78]:= obrot@θ_, x_d := Mod@x + Θ, * PiD obrot@pi, Π D Π Out[78]= In[79]:= obrot@θ_, x_d := Mod@N@x + ΘD, * PiD 7

8 8 lab_.nb In[80]:= Out[80]= 0D 0.99 Zad. In[8]:= xd, 8x, 0, Pi<, AxesLabel -> 8"x", "fλ HxL"<, PlotStyle Red, AxesStyle LabelStyle BlackD, PlotLabel "Wykres funkcji obrotu"d fλ HxL Wykres funkcji obrotu Out[8]= 0 x Manipulate@ Plot@obrot@Θ, xd, 8x, 0, Pi<, AxesLabel -> 8"x", "fθ HxL"<, PlotStyle Red, AxesStyle Arrowheads@0.0D, LabelStyle Directive@, BlackD, PlotLabel "Wykres funkcji obrotu"d, 88Θ, Exp@D, "K¹t obrotu" <, 0, Pi<D K¹t obrotu. fλ HxL Wykres funkcji obrotu Out[8]= 0 x

9 lab_.nb Zad. In[8]:= Out[8]= In[8]:= Out[8]= In[8]:= In[88]:= x, D h@h@h@h@xdddd NestList@f, x, D :x, + x, + I + x M, + J + I + x M N, + K + J + I + x M N O > orbita@x0_, Θ_, n_d := NestList@obrot@Θ, ðd &, x0, n - D orbita@x0_, Θ_, n_d := Table@Mod@x0 + i * Θ, PiD, 8i, 0, n -, <D If you want to group several commands and output the last use the semicolon (;) between them, Just don' t use a for the last statement. In[89]:= In[90]:= Out[90]= In[9]:= fun@y_d := Hx = y + ; x ^ L fun@d 9 ManipulateAzp = orbita@x0, Θ, nd; ListPlotAzp, PlotStyle 8Red, PointSize@MediumD<, PlotRange 80, Pi<, AxesLabel 9"n", "fλ HnL Hx0 L"=, LabelStyle Directive@, BlackD, PlotLabel "wykres orbity"e, 88Θ, Exp@D, "K¹t obrotu"<, 0, Pi<, 88x0,, "x0 "<,<, 88n, 0, "Max. d³ugoœæ orbity"<, 80, 80, 0, 0<<E K¹t obrotu.09 x0 Max. d³ugoœæ orbity 0 80 fλ Hx0 L HnL Out[9]= 0 0 wykres orbity n 9

10 0 lab_.nb In[9]:= ManipulateAzp = orbita@x0, Θ, nd; ListPlotATable@8i -, zp@@idd<, 8i,, Length@zpD<D, PlotStyle 8Red, PointSize@MediumD<, PlotRange 80, Pi<, AxesLabel 9"n", "fλ HnL Hx0 L"=, LabelStyle Directive@, BlackD, PlotLabel "wykres orbity"e, 88Θ, Exp@D, "K¹t obrotu"<, 0, Pi<, 88x0,, "x0 "<,<, 88n, 0, "Max. d³ugoœæ orbity"<, 80, 80, 0, 0<<E K¹t obrotu.09 x0 Max. d³ugoœæ orbity Out[9]= 0 80 fλ HnL Hx0 L 0 0 wykres orbity n

11 lab_.nb In[7]:= = Θ, kdd; Circle@D, Black, Cos@zp@@iDDD<, 0.0D, 8i,, k<d<, PlotLabel "wizualzacja orbity", LabelStyle BlackDD, 88Θ, "K¹t obrotu"<, 0, Pi<, 88x0,, "x0 "<, 0, Pi<, 88n, 0, "Max. d³ugoœæ orbity"<, 80, 80, 0, 0, 00<<, 88k, n, "iloœæ kroków"<,, n, <D K¹t obrotu Π x0 Max. d³ugoœæ orbity iloœæ kroków wizualzacja orbity Out[7]=

12 lab_.nb In[9]:= D, 00DD 0 0 Out[9]= In[9]:= Histogram@orbita@Exp@D, Pi, 000D, 8 0<, "PDF", ChartStyle Green, PlotLabel "Histogram orbity", LabelStyle Directive@, BlackD, PlotRange 880, Pi<, All<D Histogram orbity Out[9]= 0. 0.

13 lab_.nb In[9]:= ManipulateAzp = orbita@x0, Θ, Max@n, kdd; GraphicsGridA9 9 Graphics@8Red, Circle@D, Black, Table@Disk@8Sin@zp@@iDDD, Cos@zp@@iDDD<, 0.0D, 8i,, k<d<, PlotLabel "wizualzacja orbity", LabelStyle Directive@, BlackDD, ListPlotATable@8i -, zp@@idd<, 8i,, k<d, PlotStyle 8Red, PointSize@MediumD<, PlotRange 880, n<, 80, Pi<<, AxesLabel 9"n", "fλ HnL Hx0 L"=, LabelStyle Directive@, BlackD, PlotLabel "wykres orbity"e =, 8 Plot@obrot@Θ, xd, 8x, 0, Pi<, AxesLabel 8"x", "fλ HxL"<, PlotStyle Red, AxesStyle Arrowheads@0.0D, LabelStyle Directive@, BlackD, PlotLabel "Wykres funkcji obrotu", ImageSize 0, Ticks 880, Pi, Pi, Pi, Pi<, 80, Pi, Pi, Pi <<, AxesOrigin 80, 0<D, = < Histogram@zp, 8 0<, "PDF", ChartStyle Green, PlotLabel "Histogram orbity", LabelStyle Directive@, BlackD, PlotRange 880, Pi<, All<D, ImageSize 0E, 88Θ, Exp@D, "K¹t obrotu"<, 0, Pi<, 88x0,, "x0 "<, 0, Pi<, 88n, 0, "Max. d³ugoœæ orbity"<, 80, 80, 0, 0, 0<<, 88k, n, "iloœæ kroków"<,, n, <E

14 lab_.nb K¹t obrotu x0 Max. d³ugoœæ orbity iloœæ kroków fλ Hx0 L HnL wizualzacja orbity 0 0 Out[9]= fλ HxL wykres orbity 0 Wykres funkcji obrotu Histogram orbity Π 0. Π 0. Π 0. Π Π Π x

H* Define 2 Points in R 3 *L P = 81, 2, 3< Q = 84, 6, 6< PQvec = Q - P. H* Plot a Single Red Point of "Size" 0.05 *L

H* Define 2 Points in R 3 *L P = 81, 2, 3< Q = 84, 6, 6< PQvec = Q - P. H* Plot a Single Red Point of Size 0.05 *L Define and plotting a point and vector H* Define 2 Points in R 3 *L P = 81, 2, 3< Q = 84, 6, 6< PQvec = Q - P H* Plot a Single Red Point of "Size" 0.05 *L Graphics3D@8PointSize@0.05D, Red, Point@PD

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

Class 5 : Programming in Mathematica Part #3

Class 5 : Programming in Mathematica Part #3 Class : Programming in Mathematica Part #3 Applying Functions Repeatedly? Fold Fold@ f, x, listd gives the last element of FoldList@ f, x, listd.? FoldList FoldList@ f, x, a, b, ¼

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

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

Algebra. Mathematica QuickStart for Calculus 101C. Solving Equations. Factoring. Exact Solutions to single equation:

Algebra. Mathematica QuickStart for Calculus 101C. Solving Equations. Factoring. Exact Solutions to single equation: Mathematica QuickStart for Calculus 101C Algebra Solving Equations Exact Solutions to single equation: In[88]:= Solve@x^3 + 5 x - 6 ã 0, xd Out[88]= :8x Ø 1, :x Ø 1 2 I-1 + Â 23

More information

Representations of Curves and Surfaces, and of their Tangent Lines, and Tangent Planes in R 2 and R 3 Robert L.Foote, Fall 2007

Representations of Curves and Surfaces, and of their Tangent Lines, and Tangent Planes in R 2 and R 3 Robert L.Foote, Fall 2007 CurvesAndSurfaces.nb Representations of Curves and Surfaces, and of their Tangent Lines, and Tangent Planes in R and R 3 Robert L.Foote, Fall 007 Curves and Surfaces Graphs ü The graph of f : Æ is a curve

More information

Computational Methods of Scientific Programming. Lecturers Thomas A Herring Chris Hill

Computational Methods of Scientific Programming. Lecturers Thomas A Herring Chris Hill 12.010 Computational Methods of Scientific Programming Lecturers Thomas A Herring Chris Hill Mathematica Look in more detail at some of the programming features in Mathematica There are many of these features

More information

Wolfram Mathematica Tutorial Collection. Visualization and Graphics

Wolfram Mathematica Tutorial Collection. Visualization and Graphics Wolfram Mathematica Tutorial Collection Visualization and Graphics For use with Wolfram Mathematica 7.0 and later. For the latest updates and corrections to this manual: visit reference.wolfram.com 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

OffPlot::"plnr"; OffGraphics::"gptn"; OffParametricPlot3D::"plld" Needs"Graphics`Arrow`" Needs"VisualLA`"

OffPlot::plnr; OffGraphics::gptn; OffParametricPlot3D::plld NeedsGraphics`Arrow` NeedsVisualLA` Printed from the Mathematica Help Browser of.: Transformation of Functions In this section, we will explore three types of transformations:.) Shifting.) Reflections (or flips).) Stretches and compressions

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

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

Defining and Plotting a Parametric Curve in 3D a(t)=(x(t),y(t),z(t)) H* clears all previous assingments so we can reuse them *L

Defining and Plotting a Parametric Curve in 3D a(t)=(x(t),y(t),z(t)) H* clears all previous assingments so we can reuse them *L Defining and Plotting a Parametric Curve in 3D a(t)=(x(t),y(t),z(t)) Clear@"Global`*"D H* clears all previous assingments so we can reuse them *L H* Define vector functions in 3D of one variable t, i.e.

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

NUMBERS VECTORS. (essentially) infinite precision is available

NUMBERS VECTORS. (essentially) infinite precision is available NUMBERS In[]:= Out[]= In[]:= Out[]= In[3]:= Out[3]= N@Exp@D, D.790330773977770937000 N@Log@D, D 0.937099309737070330 N@Pi, D 3.93979333337997939937 (essentially) infinite precision is available In[]:=

More information

How to prepare interactive Mathematica demonstrations for classroom

How to prepare interactive Mathematica demonstrations for classroom How to prepare interactive Mathematica demonstrations for classroom János Karsai University of Szeged http://silver.szote.u-szeged.hu/~karsai karsai@dmi.u-szeged.hu 2 workshop.nb Some examples from the

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

Making Holes and Windows in Surfaces

Making Holes and Windows in Surfaces The Mathematica Journal Making Holes and Windows in Surfaces Alan Horwitz In this article, we demonstrate makehole, a program which removes points from any Graphics or Graphics3D picture whose coordinates

More information

Classes 7-8 (4 hours). Graphics in Matlab.

Classes 7-8 (4 hours). Graphics in Matlab. Classes 7-8 (4 hours). Graphics in Matlab. Graphics objects are displayed in a special window that opens with the command figure. At the same time, multiple windows can be opened, each one assigned a number.

More information

Logical Subscripting: This kind of subscripting can be done in one step by specifying the logical operation as the subscripting expression.

Logical Subscripting: This kind of subscripting can be done in one step by specifying the logical operation as the subscripting expression. What is the answer? >> Logical Subscripting: This kind of subscripting can be done in one step by specifying the logical operation as the subscripting expression. The finite(x)is true for all finite numerical

More information

Econ 353 Final Project Mark Gillis University of Victoria. Mathematica Model Portfolio

Econ 353 Final Project Mark Gillis University of Victoria. Mathematica Model Portfolio Econ 353 Final Project Mark Gillis University of Victoria Mathematica Model Portfolio Introduction The following is a portfolio of Mathematica models that I created predominately for the purpose of teaching.

More information

The notebook interface is the usual one and is quite sophisticated. (It was used to create these notes, for instance.)

The notebook interface is the usual one and is quite sophisticated. (It was used to create these notes, for instance.) 4. Mathematica 4. 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

GRAPHICAL REPRESENTATION OF SURFACES

GRAPHICAL REPRESENTATION OF SURFACES 9- Graphical representation of surfaces 1 9 GRAPHICAL REPRESENTATION OF SURFACES 9.1. Figures defined in Mathematica ô Graphics3D[ ] ø Spheres Sphere of centre 1, 1, 1 and radius 2 Clear "Global` " Graphics3D

More information

Shape - preserving functions

Shape - preserving functions Shape - preserving functions Introduction This Mathematica notebook is licensed under a Creative Commons Attribution - ShareAlike 3.0 License It creates the demonstrations used in my post Maps. Graphs

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

Monte Carlo Method for Definite Integration

Monte Carlo Method for Definite Integration Monte Carlo Method for Definite Integration http://www.mathcs.emory.edu/ccs/ccs215/monte/node13.htm Numerical integration techniques, such as the Trapezoidal rule and Simpson's rule, are commonly utilized

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

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

Plot f, x, x min, x max generates a plot of f as a function of x from x min to x max. Plot f 1, f 2,, x, x min, x max plots several functions f i.

Plot f, x, x min, x max generates a plot of f as a function of x from x min to x max. Plot f 1, f 2,, x, x min, x max plots several functions f i. HdPlot.nb In[]:=? Plot Plot f, x, x min, x max generates a plot of f as a function of x from x min to x max. Plot f, f,, x, x min, x max plots several functions f i. In[]:= Plot Sin 7 x Exp x ^, x,, 4.5

More information

A Mathematica Tutorial - 1. Basic Operations

A Mathematica Tutorial - 1. Basic Operations A Mathematica Tutorial -. Basic Operations This Tutorial was created usig Mathematica 6.0. Some of the cells described below can only be performed in version 6.0. Note that Mathematica can be used as a

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

Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial Vb

Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial Vb Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial Vb Making Plots with Matlab (last updated 5/29/05 by GGB) Objectives: These tutorials are

More information

{σ 1}; Hessian2D[f_] := yleft = -12; xright = 5; yright = 5; max4 = FindMaximum[Det[Hessian2D[f]] // Evaluate, {{x, -10}, {y, -10}}][[2, ;;, 2]]

{σ 1}; Hessian2D[f_] := yleft = -12; xright = 5; yright = 5; max4 = FindMaximum[Det[Hessian2D[f]] // Evaluate, {{x, -10}, {y, -10}}][[2, ;;, 2]] g[x_, y_] := f[x_, y_] := x 1 2 +y 2 2 * π * σ * 2 e- 2*σ 2 ; 10 g[x, y] + g[x + i, y] + g[x, y + i] + g[x + 10, y + 10] /. {σ 1}; i=1 10 i=1 Hessian2D[f_] := D[D[f[x, y], {x}], {x}] D[D[f[x, y], {x}],

More information

Mathematica examples relevant to Bessel functions

Mathematica examples relevant to Bessel functions Mathematica eamples relevant to Bessel functions The original Bessel function---that discussed etensively in Boas Also called Bessel functions of the first kind, or cylindrical Bessel functions It is a

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

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

Plots & Animations. Simple 2d plots x

Plots & Animations. Simple 2d plots x Plots & Animations Simple 2d plots Physical processes and corresponding mathematical formulas can be visualized by plots. The simplest plot of a single function f[x] can be created as follows f@x_d :=

More information

Complex functions, Laurent Series & residues using Mathematica

Complex functions, Laurent Series & residues using Mathematica Complex functions, Laurent Series & residues using Mathematica Complex functions Real and Imaginary parts of functions can be obtained using ComplexExpand, which treats all variables (here x and y) as

More information

Graphing with a Graphing Calculator

Graphing with a Graphing Calculator APPENDIX C Graphing with a Graphing Calculator A graphing calculator is a powerful tool for graphing equations and functions. In this appendix we give general guidelines to follow and common pitfalls to

More information

2.3. Graphing Calculators; Solving Equations and Inequalities Graphically

2.3. Graphing Calculators; Solving Equations and Inequalities Graphically 2.3 Graphing Calculators; Solving Equations and Inequalities Graphically Solving Equations and Inequalities Graphically To do this, we must first draw a graph using a graphing device, this is your TI-83/84

More information

Water Rates from Piecewise Functions 03-19

Water Rates from Piecewise Functions 03-19 Water Rates from Piecewise Functions 03-19 Note : this pdf note was generated directly from a Mathematica notebook. [ rob r, 00-03-1, 19] This exercise was occasioned by one of my colleagues (Tom Gaskill)

More information

12 whereas if I terminate the expression with a semicolon, the printed output is suppressed.

12 whereas if I terminate the expression with a semicolon, the printed output is suppressed. Example 4 Printing and Plotting Matlab provides numerous print and plot options. This example illustrates the basics and provides enough detail that you can use it for typical classroom work and assignments.

More information

Computational methods in Mathematics

Computational methods in Mathematics Computational methods in Mathematics José Carlos Díaz Ramos Cristina Vidal Castiñeira June 13, 2014 1 Graphics Mathematica represents all graphics in terms of a collection of graphics primitives. The primitives

More information

Basics of Mathematica for data analysis

Basics of Mathematica for data analysis Basics of Mathematica for data analysis Angelo Esposito Physics Department, Columbia University January 14, 2017 Abstract In this brief tutorial I will introduce those features of Mathematica that are

More information

Problem 25 in Section 16.3

Problem 25 in Section 16.3 Problem 5 in Section 16.3 In[1]:= Recall that in this problem we are studying the pyramid bounded by the planes z 6, y 0, y x 4 and x y z 4. In class we calculated all the vertices of this pyramid. Now

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 practical guide for using Mathematica in problem sets. 2. Prerequisites: variables, functions, rule replacements, prefixes/suffixes, and lists

A practical guide for using Mathematica in problem sets. 2. Prerequisites: variables, functions, rule replacements, prefixes/suffixes, and lists How to Mathematica A practical guide for using Mathematica in problem sets Ben Bartlett - Ruddock 17 2017 Ruddock Upperclassman Workshop: 24 April, 9pm Contents: 0. Wolfram documentation 1. Formatting

More information

CS210 Project 5 (Kd-Trees) Swami Iyer

CS210 Project 5 (Kd-Trees) Swami Iyer The purpose of this assignment is to create a symbol table data type whose keys are two-dimensional points. We ll use a 2d-tree to support efficient range search (find all the points contained in a query

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

A l g o r i t h m s a n d J a v a S c r i p t P r o g r a m. o f R - F u n c t i o n s a n d P r o d u c i n g T h e i r T w o - a n d

A l g o r i t h m s a n d J a v a S c r i p t P r o g r a m. o f R - F u n c t i o n s a n d P r o d u c i n g T h e i r T w o - a n d Proceedings of the 5th International Conference on Nonlinear Dynamics ND-KhPI2016 September 27-30, 2016, Kharkov, Ukraine A l g o r i t h m s a n d J a v a S c r i p t P r o g r a m s i n C a l c u l a

More information

Examples of Fourier series

Examples of Fourier series Examples of Fourier series Preliminaries In[]:= Below is the definition of a periodic extension of a function defined on L, L. This definition takes a function as a variable. The function has to be inputted

More information

ncells 6-param double logistic.nb

ncells 6-param double logistic.nb ncells 6-param double logistic.nb This Mathematica 7 notebook presents, generates data from and retrieves the parameters of a 6- parameter continuous deterministic model of microbial growth and mortality,

More information

6 Using Technology Wisely

6 Using Technology Wisely 6 Using Technology Wisely Concepts: Advantages and Disadvantages of Graphing Calculators How Do Calculators Sketch Graphs? When Do Calculators Produce Incorrect Graphs? The Greatest Integer Function Graphing

More information

Organizing and Summarizing Data

Organizing and Summarizing Data Section 2.2 9 Organizing and Summarizing Data Section 2.2 C H A P T E R 2 4 Example 2 (pg. 72) A Histogram for Discrete Data To create a histogram, you have two choices: 1): enter all the individual data

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

Computation of slant specified by cues

Computation of slant specified by cues Computation of slant specified by cues Slant from perspective convergence, part 1: Construction of the projection (x1, y1) on the screen (blue) of point (x0, y0) of the rectangle (red) that is slanted

More information

Scaffold protein titration motif

Scaffold protein titration motif Scaffold protein titration motif The model description This particular motif describe one phosphorylation-desphosphorylation cycle (can be generalized to any futile cycles) with both kinase (K) and phosphatase

More information

Total Number of Students in US (millions)

Total Number of Students in US (millions) The goal of this technology assignment is to graph a formula on your calculator and in Excel. This assignment assumes that you have a TI 84 or similar calculator and are using Excel 2007. The formula you

More information

Constructing Curves and Surfaces through Specified Points

Constructing Curves and Surfaces through Specified Points Constructing Curves and Surfaces through Specified Points Project Template Chapter 10 of Anton/Rorres, Elementary Linear Algebra, 10th edition, consists of 20 sections of Applications, the first of which

More information

PyPlot. The plotting library must be imported, and we will assume in these examples an import statement similar to those for numpy and math as

PyPlot. The plotting library must be imported, and we will assume in these examples an import statement similar to those for numpy and math as Geog 271 Geographic Data Analysis Fall 2017 PyPlot Graphicscanbeproducedin Pythonviaavarietyofpackages. We willuseapythonplotting package that is part of MatPlotLib, for which documentation can be found

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

Integer Operations. Summer Packet 7 th into 8 th grade 1. Name = = = = = 6.

Integer Operations. Summer Packet 7 th into 8 th grade 1. Name = = = = = 6. Summer Packet 7 th into 8 th grade 1 Integer Operations Name Adding Integers If the signs are the same, add the numbers and keep the sign. 7 + 9 = 16-2 + -6 = -8 If the signs are different, find the difference

More information

sinc interpolation to reconstruct a signal from its samples

sinc interpolation to reconstruct a signal from its samples sinc interpolation to reconstruct a signal from its samples Initialization Code Manipulate ManipulateAprocess@ Fs, fund, ItemA GridA9 9Control@Fs,, Row@Style@"sampling frequency", D, Style@ " HHzL", ItalicD

More information

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

Overview: The original Mathematica was a computer algebra system (CAS) released by Stephen Wolfram in 1988. Mathematica 7.0.1 Overview: The original Mathematica was a computer algebra system (CAS) released by Stephen Wolfram in 1988. Modern releases have augmented the CAS with powerful numerical and graphical

More information

Lesson 8 - Practice Problems

Lesson 8 - Practice Problems Lesson 8 - Practice Problems Section 8.1: A Case for the Quadratic Formula 1. For each quadratic equation below, show a graph in the space provided and circle the number and type of solution(s) to that

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

Mathematica Notebook for Background: Physics and Math of Shading

Mathematica Notebook for Background: Physics and Math of Shading Mathematica Notebook for Background: Physics and Math of Shading In[1]:= This notebook contains some computations referenced in the course notes. Off NIntegrate::inumr SetOptions Plot, PlotRange All ;

More information

Section 1.6. Inverse Functions

Section 1.6. Inverse Functions Section 1.6 Inverse Functions Important Vocabulary Inverse function: Let f and g be two functions. If f(g(x)) = x in the domain of g and g(f(x) = x for every x in the domain of f, then g is the inverse

More information

If you ask most people what A s strategy should be when all 3 duelists are alive, there are two common answers:

If you ask most people what A s strategy should be when all 3 duelists are alive, there are two common answers: The Truel Problem Imagine that you have a three-way duel (or truel ). The three duelists are named A, B, and C and have accuracy probabilities of a, b, and c with 0 < a < b < c < 1. The rules of the duel

More information

Lesson 6 - Practice Problems

Lesson 6 - Practice Problems Lesson 6 - Practice Problems Section 6.1: Characteristics of Quadratic Functions 1. For each of the following quadratic functions: Identify the coefficients a, b and c. Determine if the parabola opens

More information

Years after US Student to Teacher Ratio

Years after US Student to Teacher Ratio The goal of this assignment is to create a scatter plot of a set of data. You could do this with any two columns of data, but for demonstration purposes we ll work with the data in the table below. The

More information

PyPlot. The plotting library must be imported, and we will assume in these examples an import statement similar to those for numpy and math as

PyPlot. The plotting library must be imported, and we will assume in these examples an import statement similar to those for numpy and math as Geog 271 Geographic Data Analysis Fall 2015 PyPlot Graphicscanbeproducedin Pythonviaavarietyofpackages. We willuseapythonplotting package that is part of MatPlotLib, for which documentation can be found

More information

Principles of Linear Algebra With Mathematica Linear Programming

Principles of Linear Algebra With Mathematica Linear Programming Principles of Linear Algebra With Mathematica Linear Programming Kenneth Shiskowski and Karl Frinkle Draft date March 12, 12 Contents 1 Linear Programming 1 1.1 Geometric Linear Programming in Two Dimensions......

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

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

Radioactive Contamination Part 2

Radioactive Contamination Part 2 Radioactive Contamination Part 2 Data and Two-Point Line locations = {Umatilla, Morrow, Giliam, Sherman, Wasco, Hood River, Portland, Columbia, Clatsop} {Umatilla, Morrow, Giliam, Sherman, Wasco, Hood

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

Introduction to MATLAB

Introduction to MATLAB 58:110 Computer-Aided Engineering Spring 2005 Introduction to MATLAB Department of Mechanical and industrial engineering January 2005 Topics Introduction Running MATLAB and MATLAB Environment Getting help

More information

P-Set 1 Solution Set. Solutions created by Melissa Diskin. Part 1 (3 points) Part 2 (4 points) ê H1 ê 2 + xl^hx ê 2L, xdd

P-Set 1 Solution Set. Solutions created by Melissa Diskin. Part 1 (3 points) Part 2 (4 points) ê H1 ê 2 + xl^hx ê 2L, xdd PSet Solution Set Solutions created by Melissa Diskin I (Handworked, 5 points) Simplified version of the derivative with respect to x. In[80]:= Simplify@D@ ê H ê + xl^hx ê L, xdd Out[80]= + x xê x + x

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

Math Calculus I

Math Calculus I Math 1592 - Calculus I A brief Introduction to the TI92/Voyage 200 Here we give a selection of TI commands that we will be using through this course. 1. Basic Commands solve If we type the following solve(x

More information

Basic Graphing on TI 83 / 84

Basic Graphing on TI 83 / 84 Basic Graphing on TI 83 / 84 A graphing calculator can, of course, graph but only from an equation in function form. That means each equation must be solved for "y". The first activity is to practice solving

More information

Programming with Mathematica An Introduction. The Mathematica language. Solutions to exercises. 2.1 Expressions. 2.1 Solutions

Programming with Mathematica An Introduction. The Mathematica language. Solutions to exercises. 2.1 Expressions. 2.1 Solutions Programming with Mathematica An Introduction Solutions to exercises Solutions to the exercises in Programming with Mathematica: An Introduction are given here. The exercises to every section are listed

More information

INTRODUCTION TO MATLAB PLOTTING WITH MATLAB

INTRODUCTION TO MATLAB PLOTTING WITH MATLAB 1 INTRODUCTION TO MATLAB PLOTTING WITH MATLAB Plotting with MATLAB x-y plot Plotting with MATLAB MATLAB contains many powerful functions for easily creating plots of several different types. Command plot(x,y)

More information

Box It Up (A Graphical Look)

Box It Up (A Graphical Look) . Name Date A c t i v i t y 1 0 Box It Up (A Graphical Look) The Problem Ms. Hawkins, the physical sciences teacher at Hinthe Middle School, needs several open-topped boxes for storing laboratory materials.

More information

Dr Richard Greenaway

Dr Richard Greenaway SCHOOL OF PHYSICS, ASTRONOMY & MATHEMATICS 4PAM1008 MATLAB 4 Visualising Data Dr Richard Greenaway 4 Visualising Data 4.1 Simple Data Plotting You should now be familiar with the plot function which is

More information

Summer Packet 7 th into 8 th grade. Name. Integer Operations = 2. (-7)(6)(-4) = = = = 6.

Summer Packet 7 th into 8 th grade. Name. Integer Operations = 2. (-7)(6)(-4) = = = = 6. Integer Operations Name Adding Integers If the signs are the same, add the numbers and keep the sign. 7 + 9 = 16 - + -6 = -8 If the signs are different, find the difference between the numbers and keep

More information

Boundary scanning and complex dynamics

Boundary scanning and complex dynamics BoundaryScanPP.nb 1 Boundary scanning and complex dynamics A preprint version of a Mathematical graphics column from Mathematica in Education and Research. Mark McClure mcmcclur@unca.edu Department of

More information

CAS Exercise Examples for Chapter 15: Multiple Integrals

CAS Exercise Examples for Chapter 15: Multiple Integrals CAS Exercise Examples for Chapter 5: Multiple Integrals à Section 5. Double Integrals 3 x Example: Integrate Ÿ Ÿ ÅÅÅÅÅÅ d dx using Mathematica. x The easiest wa to compute double integrals is to open the

More information

259 Lecture 25: Simple Programming

259 Lecture 25: Simple Programming 259 Lecture 25: Simple Programming In[1]:= In[2]:= Off General::spell Off General::spell1 Note: To type a command in a Mathematica notebook, use the mouse to move the cursor until it is horizontal, click

More information

GRAPHING RATIONAL FUNCTIONS DAY 2 & 3. Unit 12

GRAPHING RATIONAL FUNCTIONS DAY 2 & 3. Unit 12 1 GRAPHING RATIONAL FUNCTIONS DAY 2 & 3 Unit 12 2 Warm up! Analyze the graph Domain: Range: Even/Odd Symmetry: End behavior: Increasing: Decreasing: Intercepts: Vertical Asymptotes: Horizontal Asymptotes:

More information

Potential Function. Homework #3. Part I: Star Algorithm

Potential Function. Homework #3. Part I: Star Algorithm Homework #3 Potential Function Part I: Star Algorithm I have implemented the Star Algorithm to compute the 2-dimensional configuration space Q starting from the workspace W and the robot shape R. The obstacles

More information

Graphics and plotting techniques

Graphics and plotting techniques Davies: Computer Vision, 5 th edition, online materials Matlab Tutorial 5 1 Graphics and plotting techniques 1. Introduction The purpose of this tutorial is to outline the basics of graphics and plotting

More information

Quadratics Functions: Review

Quadratics Functions: Review Quadratics Functions: Review Name Per Review outline Quadratic function general form: Quadratic function tables and graphs (parabolas) Important places on the parabola graph [see chart below] vertex (minimum

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

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

Ch.5: Array computing and curve plotting (Part 1)

Ch.5: Array computing and curve plotting (Part 1) Ch.5: Array computing and curve plotting (Part 1) Joakim Sundnes 1,2 Hans Petter Langtangen 1,2 Simula Research Laboratory 1 University of Oslo, Dept. of Informatics 2 Sep 20, 2017 (Adjusted) Plan for

More information

NOTE: If you are new to TABLE and GRAPH modes you may find it beneficial to first work through the worksheet 'Self-Guided_9860_TABLE-GRAPH'.

NOTE: If you are new to TABLE and GRAPH modes you may find it beneficial to first work through the worksheet 'Self-Guided_9860_TABLE-GRAPH'. The Circumference Sum Investigation A note to teachers: This is a 'quirky algebraic modelling' investigation. That is to say a 'quirky' problem, rather than 'real world' problem, generates the model. It

More information

Applied Calculus. Lab 1: An Introduction to R

Applied Calculus. Lab 1: An Introduction to R 1 Math 131/135/194, Fall 2004 Applied Calculus Profs. Kaplan & Flath Macalester College Lab 1: An Introduction to R Goal of this lab To begin to see how to use R. What is R? R is a computer package for

More information