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

Size: px
Start display at page:

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

Transcription

1 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. Mathematica is case-sensitive. Basic Calculations Mathematica as a calculator Addition 3+4 Trigonometry Cos[Pi/3] Subtraction 3-4 Sin[Pi/3] Multiplication 3*4 3(4) 3 space 4 Tan[Pi/3] ArcCos[1/2] ArcSin[1/2] Division 3/4 ArcTan[Sqrt[3]] Square Roots Sqrt[34] Factorial 3! Exponents 3^4 Absolute Value Abs[-3] Parenthesis 3*(3+4) Exponential Functions Exp[expression] Natural Logarithms (ln) Log[expression] E^(expression) Logarithms Log[base,expression] Defining a Variable x=expression Note: Mathematica outputs exact answers as fractions and roots. To output numerical approximations, use: N[expression] or expression//n Example: N[Pi] or N[Pi,50] Simplifying and Solving Equations Mathematica as a Computer Algebra System Simplifying: Expand[(x+3)(x-4)] Factor[x^2-x-12] Cos[x]/Tan[x]-Sin[ArcCos[x]] Solving: *note the double-equal-sign* Solve[x+4==2x-3] Solve[x^2+5x+7==0] Solve[Log[2x]==2Log[3x], x] Solve[x+4-3y == 2x 3+y/3, y] solves for y in terms of x Sometimes a message is produced with your result: Solve[3^x==5, x] For a numerical approximation, use NSolve: NSolve[3^x == 5, x] Defining a Function To define a function f 1 (x), follow the structure of the example. Note the underscore, _, after the variable. f1[x_]=x^2+1 You can now use this to calculate several values f1[3] f1[4] f1[vector] You can use multiple functions together f1[x_]=x^2+1; f2[x_]=x^3-1; f1[3]+f2[2] The semi-colon is used to link steps. Only the last result will show.

2 Graphing The following are some of the different ways to graph ListPlot (can be used to graph data points) ListPlot[{{x1, y1 },{x2, y2 }...{xn, yn }}] ListPlot 0, 0, 1, 1, 2, 1, 3, 2, 4, 3, 5, 5, 6, 8 Plot (can be used to graph 2-D functions; can show single or multiple functions) Plot[f(x), {x, lower x limit, upper x limit }] Example:: Plot 1 x, x, 0, 2 Plot[{f(x)1, f(x)2,...,f(x)n}, {x, lower x limit, upper x limit }] Plot Sin x, Cos x, Tan x, x, 0, 2 Pi Plot3D (can be used to graph 3-D functions) Plot3D[f(x,y), {x, lower x limit, upper x limit }, {y, lower y limit, upper y limit }] Plot3D x y, x, 0, 2, y, 0, 2 Plot3D Cos x Cos y Cos x Sin x Sin y, x, 0, 2 Pi, y, 0, 2 Pi ParametricPlot (for parametric functions) ParametricPlot[{fx(u), fy(u)}, {u, lower u limit, upper u limit }] ParametricPlot Sin u, Cos u, u, 0, 2 Pi PolarPlot (for polar functions) PolarPlot[r(Θ), {Θ, lower Θ limit, upper Θ limit }] PolarPlot Sin 1 t, t, 0, 2 Pi

3 Table Perhaps the easiest way to explain the command "Table" is to show it first. Table n, n, 1, 10 Watch what happens. Table lists the number "n" from n=1 to n=10. Basically, it listed the numbers 1 to 10. Note that the output is a list. What happens if instead of listing n, we list n^2? Table n^2, n, 1, 10 What if we didn't want integer intervals, but rather intervals of 0.1? Table n^2, n, 1, 10,.1 Let's incorporate some lists in here. What do you think will happen here? Table n, n^2, n, 10, 10, 2 Is it just me or are these lists starting to look like coordinate points? hmm..let's take a look. ListPlot Table n, n^2, n, 10, 10, 2 Hey, this looks almost like a parabola! Wow! What a surprise... What if we wanted to turn this into a teaching tool? First we're going to define the function f as f(x)=x^2. The command is "f[x_]:=x^2;". Then we're going to define our list. f x : x^2; mylist Table x, f x, x, 10, 10, 2 ; Row TableForm mylist, TableHeadings None, x, x^2, ListPlot mylist, ImageSize 200 OK, it looks complicated, but we can take this one part at a time. You're smart. First, we're defining the function f(x) as f(x)=x^2. We do this by typing "f[x_]:=x^2;". Quick exercise, how can you define g(y) as g(y)=y+4? Next, we're defining our list and simply naming it "mylist". So according to this, mylist is the Table of {x,f[x]} from x=-10 to x=10 with an interval of 2. Remember what f[x] was? The next line of code is actually formatting. The command "Row" simply puts the graphics in a row. The command "TableForm" actually puts the table in the form of a table. Creative name for a command eh? The "TableHead - ings" part essentially names the table. So the first part is the actually table listing the points x and x^2. The other part is actually plotting the points on the graph. We do this by "ListPlot" and ListPlot plots the points in the list "mylist". Remember what was in "mylist" again? The "ImageSize" just makes the image larger. Can you do the same thing with g(y)=y+4 listing the table and plotting the points on a graph too? Go ahead, you can do it.

4 Manipulate ANATOMY OF A MANIPULATE What's the most powerful command in Mathematica? The question-mark query. It takes the form of?<name of command>. Try it now.? Manipulate But what does that mean? Let's break down the basic Manipulate command. Manipulate expr, u,u min,u max. Manipulate itself is a wrapper: you wrap it around an expression (expr) to give it interactivity by changing values (u). A basic example: Manipulate x, x, 0, 1 Okay, not terribly interesting. But remember, "expr" doesn't have to be a single variable like we used. Anything can go into a Manipulate: plots, tables, charts, graphics, whatever, and every aspect of what you put in can be interactively manipulated. Got a trig class to teach? RANDOM EXAMPLES ARE EXAMPLES "expr" doesn't have to be the same as u, you know... Manipulate Row "e ", N E, places, places, 1, 100 Want someting more...um, useful? Try this. Manipulate Plot Sin b x, x, 5, 5, b, 0.1, 5 Ah, I hear you. Any trignometric equation requires more than one parameter? Like y =a sin(b(x -c)) + d? Try this. Manipulate Plot a Sin b x c d, x, 0, 2 Pi, PlotRange 6, a, 1, 3, b, 1, 8, c, 0, 2 Pi, d, 2, 2 Suppose you have a function that makes no sense without integer values. No problem. Manipulate Expand x y ^n, n, 0, 10, 1 Or maybe you have, ah, exotic needs. You name it, Mathematica has a control type for it. Manipulate Plot x^2, x, 3, 3, PlotStyle colors, Thickness num, colors, ColorSlider, num, 0, 0.5 Note how Mathematica chooses the correct input: sliders for numbers, buttons for options...2-d sliders!? Manipulate pt, pt, 1, 1, 1, 1 3D graphics are no problem either. As long as you have a computer that can keep up. Manipulate Plot3D Sin n x y ^2, x, 0, 3, y, 0, 3, Mesh None, n, 1, 20 More advanced? This is what an expert Mathematica user can create, using Locators. Hold alt and click to add a point to the plot, and watch interpolation work! Manipulate Plot InterpolatingPolynomial ptlist, x, x, 10, 10, PlotRange 10, ptlist, 0, 0, Locator, LocatorAutoCreate True

5 Target Example Simple example of using Graphics to make a circle. Graphics Red, Circle 0, 0, 1, Axes True This generates a list of circles with radii varying between 1 and 10. Table Graphics Red, Circle 0, 0, n, PlotRange 10, n, 1, 10 This shows them all together in the same image. Show Table Graphics Red, Circle 0, 0, n, n, 1, 10 Change the Circle to Disk and now they are all filled in. Show Table Graphics Red, Disk 0, 0, n, n, 1, 10 Make a list of red disks for odd radii and white disks for even radii. Remove the semi-colon ( ; ) at the end of each line if you want to see the output. reddisks Table Red, Disk 0, 0, 2 n 1, n, 0, 10 ; whitedisks Table White, Disk 0, 0, 2 n, n, 1, 10 ; The command below shows them all together. The trouble is that all of the white disks are stacked on top of all of the red disks. Graphics reddisks, whitedisks To alternate elements from each list, we will use the command Riffle. See the example below. Riffle a, b, c, d, 1, 2, 3, 4 This shows them all together, but the bigger ones are on top of the smaller ones. Graphics Riffle reddisks, whitedisks If we reverse the order of the list we just made with Riffle, the smaller ones will be listed last. Let's make this interactive. Wrap it all in Manipulate and change the "10" at the end of the Table to "nmax." (Note: you can copy-andpaste code from earlier in the notebook.) Add a comma to separate the control {nmax, 1, 20}. Manipulate reddisks Table Red, Disk 0, 0, 2 n 1, n, 0, nmax ; whitedisks Table White, Disk 0, 0, 2 n, n, 1, nmax ;, nmax, 1, 20 For a little more fun, make the colors variable. Change "Red" to "clr1" and "White" to "clr2" and then add ColorSlider controls for each one as shown below. Manipulate reddisks Table clr1, Disk 0, 0, 2 n 1, n, 0, nmax ; whitedisks Table clr2, Disk 0, 0, 2 n, n, 1, nmax ;, nmax, 1, 20, clr1, Red, ColorSlider, clr2, White, ColorSlider

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

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

ü 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

Introduction to Mathematica and Graphing in 3-Space

Introduction to Mathematica and Graphing in 3-Space 1 Mathematica is a powerful tool that can be used to carry out computations and construct graphs and images to help deepen our understanding of mathematical concepts. This document will serve as a living

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

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

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

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

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

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

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

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

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

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

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

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

Mathematica Assignment 1

Mathematica Assignment 1 Math 21a: Multivariable Calculus, Fall 2000 Mathematica Assignment 1 Support Welcome to this Mathematica computer assignment! In case of technical problems with this assignment please consult first the

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

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

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

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

Introduction to Programming with RAPTOR

Introduction to Programming with RAPTOR Introduction to Programming with RAPTOR By Dr. Wayne Brown What is RAPTOR? RAPTOR is a visual programming development environment based on flowcharts. A flowchart is a collection of connected graphic symbols,

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

Use the indicated strategy from your notes to simplify each expression. Each section may use the indicated strategy AND those strategies before.

Use the indicated strategy from your notes to simplify each expression. Each section may use the indicated strategy AND those strategies before. Pre Calculus Worksheet: Fundamental Identities Day 1 Use the indicated strategy from your notes to simplify each expression. Each section may use the indicated strategy AND those strategies before. Strategy

More information

2.1 Basics of Functions and Their Graphs

2.1 Basics of Functions and Their Graphs .1 Basics of Functions and Their Graphs Section.1 Notes Page 1 Domain: (input) all the x-values that make the equation defined Defined: There is no division by zero or square roots of negative numbers

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

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

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

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

Graphing Calculator Tutorial

Graphing Calculator Tutorial Graphing Calculator Tutorial This tutorial is designed as an interactive activity. The best way to learn the calculator functions will be to work the examples on your own calculator as you read the tutorial.

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

Math 1191 Mathematica Introduction

Math 1191 Mathematica Introduction Math 1191 Mathematica Introduction Lab 2 Fall, 2005 REMEMBER: Functions use square brackets [] for their arguments, not parentheses. Sin[3], Log[10], myfunction[42], N[Pi,8] Example: Mathematica s built-in

More information

An Introduction to Maple This lab is adapted from a lab created by Bob Milnikel.

An Introduction to Maple This lab is adapted from a lab created by Bob Milnikel. Some quick tips for getting started with Maple: An Introduction to Maple This lab is adapted from a lab created by Bob Milnikel. [Even before we start, take note of the distinction between Tet mode and

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

Math 3 Coordinate Geometry Part 2 Graphing Solutions

Math 3 Coordinate Geometry Part 2 Graphing Solutions Math 3 Coordinate Geometry Part 2 Graphing Solutions 1 SOLVING SYSTEMS OF EQUATIONS GRAPHICALLY The solution of two linear equations is the point where the two lines intersect. For example, in the graph

More information

Function f. Function f -1

Function f. Function f -1 Page 1 REVIEW (1.7) What is an inverse function? Do all functions have inverses? An inverse function, f -1, is a kind of undoing function. If the initial function, f, takes the element a to the element

More information

Excel Tool: Calculations with Data Sets

Excel Tool: Calculations with Data Sets Excel Tool: Calculations with Data Sets The best thing about Excel for the scientist is that it makes it very easy to work with data sets. In this assignment, we learn how to do basic calculations that

More information

Pre Calculus Worksheet: Fundamental Identities Day 1

Pre Calculus Worksheet: Fundamental Identities Day 1 Pre Calculus Worksheet: Fundamental Identities Day 1 Use the indicated strategy from your notes to simplify each expression. Each section may use the indicated strategy AND those strategies before. Strategy

More information

10 Using the PCFL Editor In this chapter

10 Using the PCFL Editor In this chapter 10 Using the PCFL Editor In this chapter Introduction to the PCFL editor 260 Editing PCFL registers 261 Customizing the PCFL configuration file 272 ProWORX NxT User s Guide Introduction to the PCFL editor

More information

Introduction to Sequences in Maple (Classic Version for Windows)

Introduction to Sequences in Maple (Classic Version for Windows) Introduction to Sequences in Maple (Classic Version for Windows) Author: Barbara Forrest Contact: baforres@uwaterloo.ca Copyrighted/NOT FOR RESALE version 1.1 Contents 1 Objectives for this Lab ii 2 Helpful

More information

TIME 2014 Technology in Mathematics Education July 1 st -5 th 2014, Krems, Austria

TIME 2014 Technology in Mathematics Education July 1 st -5 th 2014, Krems, Austria TIME 2014 Technology in Mathematics Education July 1 st -5 th 2014, Krems, Austria Overview Introduction Using a 2D Plot Window in a CAS Perspective Plotting a circle and implicit differentiation Helping

More information

CSI31 Lecture 5. Topics: 3.1 Numeric Data Types 3.2 Using the Math Library 3.3 Accumulating Results: Factorial

CSI31 Lecture 5. Topics: 3.1 Numeric Data Types 3.2 Using the Math Library 3.3 Accumulating Results: Factorial CSI31 Lecture 5 Topics: 3.1 Numeric Data Types 3.2 Using the Math Library 3.3 Accumulating Results: Factorial 1 3.1 Numberic Data Types When computers were first developed, they were seen primarily as

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

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

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

Basics of Computational Geometry

Basics of Computational Geometry Basics of Computational Geometry Nadeem Mohsin October 12, 2013 1 Contents This handout covers the basic concepts of computational geometry. Rather than exhaustively covering all the algorithms, it deals

More information

A Quick Review of Trigonometry

A Quick Review of Trigonometry A Quick Review of Trigonometry As a starting point, we consider a ray with vertex located at the origin whose head is pointing in the direction of the positive real numbers. By rotating the given ray (initial

More information

Programming with Python

Programming with Python Programming with Python Dr Ben Dudson Department of Physics, University of York 21st January 2011 http://www-users.york.ac.uk/ bd512/teaching.shtml Dr Ben Dudson Introduction to Programming - Lecture 2

More information

MAT 003 Brian Killough s Instructor Notes Saint Leo University

MAT 003 Brian Killough s Instructor Notes Saint Leo University MAT 003 Brian Killough s Instructor Notes Saint Leo University Success in online courses requires self-motivation and discipline. It is anticipated that students will read the textbook and complete sample

More information

Mathematica Proficiency and motivation for 6.1 and 6.2

Mathematica Proficiency and motivation for 6.1 and 6.2 Calculus Page 1 Master Lab Friday, August 19, 2011 2:13 PM Mathematica Proficiency and motivation for 6.1 and 6.2 This lab is designed to test some of your Mathematica background, to be useful as a reference,

More information

Graphics. Graphics. Graphics

Graphics. Graphics. Graphics T T T E T E T X E E X E X E X X and and and and and and Graphics Graphics Graphics Graphics Graphics /3 5. We have seen that in, everything is done with coordinates. We now take a closer look at coordinates

More information

MEI GeoGebra Tasks for A2 Core

MEI GeoGebra Tasks for A2 Core Task 1: Functions The Modulus Function 1. Plot the graph of y = x : use y = x or y = abs(x) 2. Plot the graph of y = ax+b : use y = ax + b or y = abs(ax+b) If prompted click Create Sliders. What combination

More information

AP Calculus Summer Review Packet School Year. Name

AP Calculus Summer Review Packet School Year. Name AP Calculus Summer Review Packet 016-017 School Year Name Objectives for AP/CP Calculus Summer Packet 016-017 I. Solving Equations & Inequalities (Problems # 1-6) Using the properties of equality Solving

More information

Honors Precalculus: Solving equations and inequalities graphically and algebraically. Page 1

Honors Precalculus: Solving equations and inequalities graphically and algebraically. Page 1 Solving equations and inequalities graphically and algebraically 1. Plot points on the Cartesian coordinate plane. P.1 2. Represent data graphically using scatter plots, bar graphs, & line graphs. P.1

More information

Dr Richard Greenaway

Dr Richard Greenaway SCHOOL OF PHYSICS, ASTRONOMY & MATHEMATICS 4PAM1008 MATLAB 3 Creating, Organising & Processing Data Dr Richard Greenaway 3 Creating, Organising & Processing Data In this Workshop the matrix type is introduced

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

TI-89 Calculator Workshop #1 The Basics

TI-89 Calculator Workshop #1 The Basics page 1 TI-89 Calculator Workshop #1 The Basics After completing this workshop, students will be able to: 1. find, understand, and manipulate keys on the calculator keyboard 2. perform basic computations

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

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

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

An interesting related problem is Buffon s Needle which was first proposed in the mid-1700 s.

An interesting related problem is Buffon s Needle which was first proposed in the mid-1700 s. Using Monte Carlo to Estimate π using Buffon s Needle Problem An interesting related problem is Buffon s Needle which was first proposed in the mid-1700 s. Here s the problem (in a simplified form). Suppose

More information

Getting started with RAPTOR [Adapted from by Dr. Wayne Brown]

Getting started with RAPTOR [Adapted from   by Dr. Wayne Brown] Getting started with RAPTOR [Adapted from https://raptor.martincarlisle.com/ by Dr. Wayne Brown] What is RAPTOR? RAPTOR is a visual programming development environment based on flowcharts. A flowchart

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

ELEMENTARY MATLAB PROGRAMMING

ELEMENTARY MATLAB PROGRAMMING 1 ELEMENTARY MATLAB PROGRAMMING (Version R2013a used here so some differences may be encountered) COPYRIGHT Irving K. Robbins 1992, 1998, 2014, 2015 All rights reserved INTRODUCTION % It is assumed the

More information

AP Calculus AB. Table of Contents. Slide 1 / 180. Slide 2 / 180. Slide 3 / 180. Review Unit

AP Calculus AB. Table of Contents. Slide 1 / 180. Slide 2 / 180. Slide 3 / 180. Review Unit Slide 1 / 180 Slide 2 / 180 P alculus Review Unit 2015-10-20 www.njctl.org Table of ontents lick on the topic to go to that section Slide 3 / 180 Slopes Equations of Lines Functions Graphing Functions

More information

Variable Definition and Statement Suppression You can create your own variables, and assign them values using = >> a = a = 3.

Variable Definition and Statement Suppression You can create your own variables, and assign them values using = >> a = a = 3. MATLAB Introduction Accessing Matlab... Matlab Interface... The Basics... 2 Variable Definition and Statement Suppression... 2 Keyboard Shortcuts... More Common Functions... 4 Vectors and Matrices... 4

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

Is the statement sufficient? If both x and y are odd, is xy odd? 1) xy 2 < 0. Odds & Evens. Positives & Negatives. Answer: Yes, xy is odd

Is the statement sufficient? If both x and y are odd, is xy odd? 1) xy 2 < 0. Odds & Evens. Positives & Negatives. Answer: Yes, xy is odd Is the statement sufficient? If both x and y are odd, is xy odd? Is x < 0? 1) xy 2 < 0 Positives & Negatives Answer: Yes, xy is odd Odd numbers can be represented as 2m + 1 or 2n + 1, where m and n are

More information

The Fortran Basics. Handout Two February 10, 2006

The Fortran Basics. Handout Two February 10, 2006 The Fortran Basics Handout Two February 10, 2006 A Fortran program consists of a sequential list of Fortran statements and constructs. A statement can be seen a continuous line of code, like b=a*a*a or

More information

The Graphing Calculator

The Graphing Calculator Chapter 23 The Graphing Calculator To display the calculator, select Graphing Calculator from the Window menu. The calculator is displayed in front of the other windows. Resize or re-position the Graphing

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

Albertson AP Calculus AB AP CALCULUS AB SUMMER PACKET DUE DATE: The beginning of class on the last class day of the first week of school.

Albertson AP Calculus AB AP CALCULUS AB SUMMER PACKET DUE DATE: The beginning of class on the last class day of the first week of school. Albertson AP Calculus AB Name AP CALCULUS AB SUMMER PACKET 2017 DUE DATE: The beginning of class on the last class day of the first week of school. This assignment is to be done at you leisure during the

More information

Green Globs And Graphing Equations

Green Globs And Graphing Equations Green Globs And Graphing Equations Green Globs and Graphing Equations has four parts to it which serve as a tool, a review or testing device, and two games. The menu choices are: Equation Plotter which

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

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

AP Calculus AB. Table of Contents. Slide 1 / 180. Slide 2 / 180. Slide 3 / 180. Review Unit

AP Calculus AB. Table of Contents. Slide 1 / 180. Slide 2 / 180. Slide 3 / 180. Review Unit Slide 1 / 180 Slide 2 / 180 P alculus Review Unit 2015-10-20 www.njctl.org Table of ontents lick on the topic to go to that section Slide 3 / 180 Slopes Equations of Lines Functions Graphing Functions

More information

CCBC Math 081 Order of Operations Section 1.7. Step 2: Exponents and Roots Simplify any numbers being raised to a power and any numbers under the

CCBC Math 081 Order of Operations Section 1.7. Step 2: Exponents and Roots Simplify any numbers being raised to a power and any numbers under the CCBC Math 081 Order of Operations 1.7 1.7 Order of Operations Now you know how to perform all the operations addition, subtraction, multiplication, division, exponents, and roots. But what if we have a

More information

The Very Basics of the R Interpreter

The Very Basics of the R Interpreter Chapter 2 The Very Basics of the R Interpreter OK, the computer is fired up. We have R installed. It is time to get started. 1. Start R by double-clicking on the R desktop icon. 2. Alternatively, open

More information

Counting shapes 1.4.6

Counting shapes 1.4.6 GRADE R_TERM 1 WEEK TOPIC CONTENT CAMI KEYSTROKE CAMI Program Count in ones 1.1.1.1; 1.1.1.2; 1.1.1.3 1.1.1.4 Cami Math Count pictures 1.1.3.1; 1.1.3.2; 1 & 2 Counting 1.1.3.3; 1.1.3.4; Counting in units

More information

9. Elementary Algebraic and Transcendental Scalar Functions

9. Elementary Algebraic and Transcendental Scalar Functions Scalar Functions Summary. Introduction 2. Constants 2a. Numeric Constants 2b. Character Constants 2c. Symbol Constants 2d. Nested Constants 3. Scalar Functions 4. Arithmetic Scalar Functions 5. Operators

More information

AP Calculus BC Summer Assignment

AP Calculus BC Summer Assignment AP Calculus BC Summer Assignment Name Due Date: First Day of School Welcome to AP Calculus BC! This is an exciting, challenging, fast paced course that is taught at the college level. We have a lot of

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

2.2 Limit of a Function and Limit Laws

2.2 Limit of a Function and Limit Laws Limit of a Function and Limit Laws Section Notes Page Let s look at the graph y What is y()? That s right, its undefined, but what if we wanted to find the y value the graph is approaching as we get close

More information

Verify Trigonometric Identities

Verify Trigonometric Identities 4.3 a., A..A; P..C TEKS Verify Trigonometric Identities Before You graphed trigonometric functions. Now You will verify trigonometric identities. Why? So you can model the path of Halley s comet, as in

More information

EXCEL 98 TUTORIAL Chemistry C2407 fall 1998 Andy Eng, Columbia University 1998

EXCEL 98 TUTORIAL Chemistry C2407 fall 1998 Andy Eng, Columbia University 1998 Created on 09/02/98 11:58 PM 1 EXCEL 98 TUTORIAL Chemistry C2407 fall 1998 Andy Eng, Columbia University 1998 Note for Excel 97 users: All features of Excel 98 for Macintosh are available in Excel 97 for

More information

Summer Assignment Glossary

Summer Assignment Glossary Algebra 1.1 Summer Assignment Name: Date: Hour: Directions: Show all work for full credit using a pencil. Circle your final answer. This assignment is due the first day of school. Use the summer assignment

More information

Table of Laplace Transforms

Table of Laplace Transforms Table of Laplace Transforms 1 1 2 3 4, p > -1 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 Heaviside Function 27 28. Dirac Delta Function 29 30. 31 32. 1 33 34. 35 36. 37 Laplace Transforms

More information

A plane. Or, with more details, NotebookDirectory. C:\Dropbox\Work\myweb\Courses\Math_pages\Math_225\

A plane. Or, with more details, NotebookDirectory. C:\Dropbox\Work\myweb\Courses\Math_pages\Math_225\ In[1]:= NotebookDirectory Out[1]= C:\Dropbox\Work\myweb\Courses\Math_pages\Math_5\ A plane Given a point in R 3 (below it is vr) and two non-collinear vectors (below uu and vv) the parametric equation

More information

APPM 2460 PLOTTING IN MATLAB

APPM 2460 PLOTTING IN MATLAB APPM 2460 PLOTTING IN MATLAB. Introduction Matlab is great at crunching numbers, and one of the fundamental ways that we understand the output of this number-crunching is through visualization, or plots.

More information

Part I. There are 5 problems in Part I, each worth 5 points. No partial credit will be given, so be careful. Circle the correct answer.

Part I. There are 5 problems in Part I, each worth 5 points. No partial credit will be given, so be careful. Circle the correct answer. Math 109 Final Exam-Spring 016 Page 1 Part I. There are 5 problems in Part I, each worth 5 points. No partial credit will be given, so be careful. Circle the correct answer. 1) Determine an equivalent

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

Math 113 Exam 1 Practice

Math 113 Exam 1 Practice Math Exam Practice January 6, 00 Exam will cover sections 6.-6.5 and 7.-7.5 This sheet has three sections. The first section will remind you about techniques and formulas that you should know. The second

More information

Chapter 5. Radicals. Lesson 1: More Exponent Practice. Lesson 2: Square Root Functions. Lesson 3: Solving Radical Equations

Chapter 5. Radicals. Lesson 1: More Exponent Practice. Lesson 2: Square Root Functions. Lesson 3: Solving Radical Equations Chapter 5 Radicals Lesson 1: More Exponent Practice Lesson 2: Square Root Functions Lesson 3: Solving Radical Equations Lesson 4: Simplifying Radicals Lesson 5: Simplifying Cube Roots This assignment is

More information

To sketch the graph we need to evaluate the parameter t within the given interval to create our x and y values.

To sketch the graph we need to evaluate the parameter t within the given interval to create our x and y values. Module 10 lesson 6 Parametric Equations. When modeling the path of an object, it is useful to use equations called Parametric equations. Instead of using one equation with two variables, we will use two

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

Physics 326G Winter Class 2. In this class you will learn how to define and work with arrays or vectors.

Physics 326G Winter Class 2. In this class you will learn how to define and work with arrays or vectors. Physics 326G Winter 2008 Class 2 In this class you will learn how to define and work with arrays or vectors. Matlab is designed to work with arrays. An array is a list of numbers (or other things) arranged

More information

Julia Calculator ( Introduction)

Julia Calculator ( Introduction) Julia Calculator ( Introduction) Julia can replicate the basics of a calculator with the standard notations. Binary operators Symbol Example Addition + 2+2 = 4 Substraction 2*3 = 6 Multify * 3*3 = 9 Division

More information

3.1 The Inverse Sine, Cosine, and Tangent Functions

3.1 The Inverse Sine, Cosine, and Tangent Functions 3.1 The Inverse Sine, Cosine, and Tangent Functions Let s look at f(x) = sin x The domain is all real numbers (which will represent angles). The range is the set of real numbers where -1 sin x 1. However,

More information

MEI Desmos Tasks for AS Pure

MEI Desmos Tasks for AS Pure Task 1: Coordinate Geometry Intersection of a line and a curve 1. Add a quadratic curve, e.g. y = x² 4x + 1 2. Add a line, e.g. y = x 3 3. Select the points of intersection of the line and the curve. What

More information

Foundations of Math II

Foundations of Math II Foundations of Math II Unit 6b: Toolkit Functions Academics High School Mathematics 6.6 Warm Up: Review Graphing Linear, Exponential, and Quadratic Functions 2 6.6 Lesson Handout: Linear, Exponential,

More information