Introduction to Mathematica AE6381 Special Lecture Prof. J. Craig Fall 2008.

Slides:



Advertisements
Similar presentations
Chapter 1: Introduction. Contents Whats New in Dreamweaver CS4? The Dreamweaver CS4 Interface Setting Up a Site Creating a Web Page Adding Text to Your.
Advertisements

Chapter 11 Designing the User Interface
Based on LabVIEW 2011 Student Edition
Endnote Tutorial The Version pictured is version 9.0 May 8, 2007.
Experiences of supporting mathematics learning through MATLAB and a VLE J A Rossiter The University of Sheffield.
Prénom Nom Document Analysis: Exploration of Mathematica 6 Prof. Rolf Ingold, University of Fribourg Master course, spring semester 2008.
This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation. All.
Matlab Matlab is a powerful mathematical tool and this tutorial is intended to be an introduction to some of the functions that you might find useful.
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
MATHEMATICA What it can do for you.. Overview Uses of Mathematica How the program works Language rules EXAMPLES!
CIS101 Introduction to Computing Week 11. Agenda Your questions Copy and Paste Assignment Practice Test JavaScript: Functions and Selection Lesson 06,
Senior Project – I.D. Math & Computer Science jsMath Equation Editor Dana Cartwright Advisors – Prof. Cervone & Prof. Striegnitz Editor Design -
Chapter 3 Planning Your Solution
CS&E 1111 PowerPoint Microsoft PowerPoint Learning about Presentation Software and using Microsoft PowerPoint Slide views Preparing text, drawings and.
Microsoft ® Office Word 2007 Training Mail Merge II: Use the Ribbon and perform a complex mail merge [Your company name] presents:
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
ADVANCED MICROSOFT POWERPOINT Lesson 6 – Creating Tables and Charts
TIBCO Designer TIBCO BusinessWorks is a scalable, extensible, and easy to use integration platform that allows you to develop, deploy, and run integration.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Digital Image Processing Lecture3: Introduction to MATLAB.
Lesson 4: Formatting the Worksheet
Microsoft Office 2007 Word Integration Feature Linking an Excel Worksheet and Chart to a Word Document.
What is R By: Wase Siddiqui. Introduction R is a programming language which is used for statistical computing and graphics. “R is a language and environment.
Getting Started with Expression Web 3
1 iSee Player Tutorial Using the Forest Biomass Accumulation Model as an Example ( Tutorial Developed by: (
Computational Methods of Scientific Programming Lecturers Thomas A Herring, Room A, Chris Hill, Room ,
PMS /134/182 HEX 0886B6 PMS /39/80 HEX 5E2750 PMS /168/180 HEX 00A8B4 PMS /190/40 HEX 66CC33 By Adrian Gardener Date 9 July 2012.
Objectives Understand what MATLAB is and why it is widely used in engineering and science Start the MATLAB program and solve simple problems in the command.
IE 411/511: Visual Programming for Industrial Applications
P366: Lecture #1 Use of Excel for analysis Lei Chen, MD Jan 6, 2002.
XP New Perspectives on Integrating Microsoft Office XP Tutorial 2 1 Integrating Microsoft Office XP Tutorial 2 – Integrating Word, Excel, and Access.
Session 1 SESSION 1 Working with Dreamweaver 8.0.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Copyright © 2008 Prentice-Hall. All rights reserved. What Can I Do with a Spreadsheet.
Teacher’s Assessment Assistant Worksheet Builder Starting the Program
® Microsoft Office 2010 Excel Tutorial 1: Getting Started with Excel.
1 Computer Programming (ECGD2102 ) Using MATLAB Instructor: Eng. Eman Al.Swaity Lecture (1): Introduction.
Matlab for Engineers About Matlab Chapter 1. Matlab for Engineers What’s in this Chapter? What is Matlab? Student Edition of Matlab How is Matlab used.
Getting Started with EndNote. EndNote Fundamentals EndNote is a reference organizer Build a library of references Cite references and generate bibliographies.
What is MATLAB? MATLAB is one of a number of commercially available, sophisticated mathematical computation tools. Others include Maple Mathematica MathCad.
Key Applications Module Lesson 21 — Access Essentials
Introduction to Excel Editing Your Workbook.
GeoGebra: Free Dynamic Software for Geometry and Beyond Shelley W. Question to ponder:
Introduction to Programming with RAPTOR
Chapter Two Creating a First Project in Visual Basic.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Lecture 20: Choosing the Right Tool for the Job. What is MATLAB? MATLAB is one of a number of commercially available, sophisticated mathematical computation.
EE3417 – Introduction to Simulink
Trinity College Dublin, The University of Dublin GE3M25: Computer Programming for Biologists Python Karsten Hokamp, PhD Genetics TCD, 03/11/2015.
Spreadsheets What is Excel?. Objectives 1. Identify the parts of the Excel Screen 2. Identify the functions of a spreadsheet 3. Identify how spreadsheets.
INTRODUCTION TO SIMULINK by Yasmin Hanum Md Thayoob & Aidil Azwin Zainul Abidin.
ME 142 Engineering Computation I Exam 3 Review Mathematica.
NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Tutorial 2 : Matlab - Getting Started.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. A Concise Introduction to MATLAB ® William J. Palm III.
Microsoft Office 2008 for Mac – Illustrated Unit D: Getting Started with Safari.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
MATLAB (Matrix Algebra laboratory), distributed by The MathWorks, is a technical computing environment for high performance numeric computation and.
Introducing Scratch Learning resources for the implementation of the scenario
Learning Microsoft® Office 2003 – Deluxe Edition
Working in the Forms Developer Environment
Matlab Training Session 4: Control, Flow and Functions
Hands-on Introduction to Mathematica
Software for scientific calculations
Introduction Mathcad is a product of mathSoft inc. The Mathcad can help us to calculate, graph, and communicate technical ideas. It lets us work with.
Lecture 1: Introduction
First Python Program Professor Hugh C. Lauer CS-1004 — Introduction to Programming for Non-Majors (Slides include materials from Python Programming: An.
Digital Image Processing
Maths Unit 1 - Algebra Order of operations - BIDMAS Algebraic Notation
CSCI N317 Computation for Scientific Applications Unit 1 – 1 MATLAB
Fundamentals of Using Microsoft Windows XP
Presentation transcript:

Introduction to Mathematica AE6381 Special Lecture Prof. J. Craig Fall 2008

What is Mathematica? “A system for doing mathematics by computer” Also for modeling, simulation, visualization, development, documentation, and deployment. Available on all public computer clusters. Can be installed on any GT-owned computer – Current version: – Versions for: Windows XP, Vista Mac OS-X Unix/Linux

Why consider Mathematica? Powerful system for symbolic mathematical but also handles numerical mathematics, graphics, data visualization, simulation. Larger community of users than Maple. Versatile Notebook and Player for flexible documentation & distribution. CONS: – VERY steep learning curve – Proprietary

What is this introduction? I’ve been using Mathematica in AE3125 Aerospace Structural Analysis in order to simplify tedious calculations and solve problems not readily doable by hand. All homework solutions are in Mathematica. I’ll try to provide a simple and very basic introduction using this as my reference. I’ll suggest other uses and point to the Wolfram web pages and ScreenCasts.

References Wolfram, S., “Mathematica,” 2 nd Edition, Addison- Wesley, is main web site. Built-in Mathematica documentation (all written in Mathematica Notebook code) Tutorial screencasts are an excellent source of helpful information and can be found at: Demonstration Project has great user demos at: (create your own using File>New>Demonstration) Mathematica Journal at journal.comhttp:// journal.com

Launching Mathematica User sees the Notebook interface. An extensive online documentation system is available. Palettes A separate kernel is used for all mathematical processing

Basic Notebook Operation Type an expression; default style is Input – Press Enter (in numeric pad) or Shift-Return which will send Input to kernel – Result will appear on line below – Sequential line numbers are prepended by kernel Style determines appearance and what happens to line(s). Input is always sent to kernel. Styles define appearance of blocks of cells shown by brackets at right margin. – Click cell bracket to select (to change, cut, copy…) – Double-click cell bracket to collapse that cell – Can collapse an entire bracket to the first cell

Notebooks Provide a very readable display of code along with comments to fully document Can collapse/hide portions (styles are useful here) Layout is controlled by styles that can be modified by the user to change appearance Can insert graphics, logos, etc. Previous output can be saved in Notebook, including plots. Use Evaluation>Evaluate Notebook to compute Notebook (send code to kernel). Can also click on style bracket(s) and hit Enter (or Shift- Return) to compute that selected portion of Notebook.

Notebook and Kernel Issues Kernel retains state of computations and sequentially numbers all input and output lines. Must manually clear any previous variables – Clear[variables] (* clears values of variables *) – x=. (* same as Clear *) – Remove[“Global`*”] (* removes all variables *) May need to “quit” local kernel to reset counter. See Evaluation>Quit Kernel<Local May also connect to remote kernel(s) for greater power. Line numbers show calculation sequence…

Using Mathematica Startup Palette opens in a window by default when Mathematica is started. Go here for all documentation and help. All documentation is in “live” Notebook format and you can cut & paste into your own code. Good tutorials available.

Useful details… Use of brackets: – [ ] =function arguments – { } =defines a list (can be nested) – [[n ]] =indexes a list (equiv to Part[ ] ) – ( ) =groups mathematical operations N[expr] = numeric value expr// =operator postfix notation expr/.x → 2 =transformation rule (substitution) % =previous result (%=next to previous) %n =result on Output line n

Basic operations Simple numerical computations Simple symbolic computations Using built-in Functions …

Useful Algebraic Manipulation Can use Algebraic palette: – Click to apply directly to current expression – Type function and execute – Some functions have optional arguments Simplify[ expr,assum] = Simplify to expression with smallest number of terms. Optional: assumptions, i.e, x>0. FullSimplify[ ]= same but with more effort… Expand[ expr]= Expand numerators, keeping denominator ExpandAll[expr]= Expand numerators and denominators ExpandNumerator[expr]= Expand only numerator (like Expand[ ]) ExpandDenominator[ ]= Expand only denominator Factor[expr] = Factor a polynomial Together[expr] = Puts terms in a sum over a common denominator and cancels factors in the result. Apart[expr] = Rewrites a rational expression as a sum of terms with minimal denominators. Cancel[expr] = Cancels out common factors in the numerator and denominator of expr. Collect[expr,[x 1,..}]= Collect together terms with same powers of objects matching x 1 …

Examples from AE3125 Shear flow in a thin-wall cross-section beam. – Function definitions – Symbolic integration – Plotting Bending-shear-torsion in a complex thin-wall cross-section beam. – Solve ODE with boundary conditions – Rotational transformation using matrices

Another example… Needed to explain to undergrad what happens to structural dynamics when you add a tip mass to a cantilever beam: – Set up PDE and use separation of variables – Solve spatial ODE – Compute eigenvalues and modeshapes – Animate?

Graphics Large and sophisticated collection of graphics functions and objects. Easy functional evaluation as well as basic numeric data plotting. Many interesting examples available in Document Center and in “Demonstration Project.” Screencasts:

Data Manipulation Easy to import data in many different file formats. Many data sources (lots of new ones in 6.0). Computation as well as plotting. Screencast: egrateddata/ egrateddata/

Other topics… Programming in Mathematica Developing attractive Notebooks Using Packages Developing Packages Creating Notebook Player files (. nbp )