MathCAD. Boundary value problem  Second order differential equation have two initial values. They can be placed in different points. ab A B for.

Slides:



Advertisements
Similar presentations
PSOD Lecture 2.
Advertisements

Beginning Programming for Engineers
Solution of Equations Example Problem Desire to find the temperature (T) that corresponds to a desired pressure, P.
CSE 123 Symbolic Processing. Declaring Symbolic Variables and Constants To enable symbolic processing, the variables and constants involved must first.
The Identity and Inverse Properties
Fundamentals of Applied Electromagnetics
Introduction to Physics
Chapter 2 Measurements and Calculations.
MathCAD Data. Data in tables Tables are analogous to matrix The numbers of columns and rows can be dynamically changed (in contrast to matrix) To enter.
1.1 Some Basics of Algebra Algebraic Expressions and Their Use
Laplace Transforms Important analytical method for solving linear ordinary differential equations. - Application to nonlinear ODEs? Must linearize first.
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.
Solving Linear Equations
VARIABLES AND EXPRESSIONS NUMERICAL EXPRESSION A NAME FOR A NUMBER VARIABLE OR ALGEBRAIC EXPRESSION AN EXPRESSION THAT CONTAINS AT LEAST ONE VARIABLE.
Algebraic Expressions Objectives: 1)To evaluate algebraic expressions 2)To simplify algebraic expressions.
+ FE Mathematics Review Dr. Omar Meza Assistant Professor Department of Mechanical Engineering.
Mathcad Variable Names A string of characters (including numbers and some “special” characters (e.g. #, %, _, and a few more) Cannot start with a number.
Fundamental Tools Chapter 1. Fundamental Tools Expectations After this chapter, students will:  understand the basis of the SI system of units  distinguish.
Introduction and Chapter 1
Introduction and Vectors
TMAT 103 Chapter 1 Fundamental Concepts. TMAT 103 §1.1 The Real Number System.
General physics I, lec 1 1 Chapter (1,2). general physics I, lec 1 2 Physical quantities (in mechanics) Basic quantities : in mechanics the three fundamental.
Essentials of College Physics --Serway/Vuille
MATLAB Basics. The following screen will appear when you start up Matlab. All of the commands that will be discussed should be typed at the >> prompt.
PSOD Lecture 2. Matrices and vectors in Chemical & Process Engineering Appear in calculations when process is described by the system of equations:
An Introduction to MathCAD Finding Solutions and Symbolic Maths.
Evaluating Algebraic Expressions 1-7 Solving Equations by Adding or Subtracting Preparation for AF4.0 Students solve simple linear equations and inequalities.
Characteristic vibrations of the field. LL2 section 52.
Unit 5: Logarithmic Functions
Chapter 1 Introduction. Theories and Experiments The goal of physics is to develop theories based on experiments A theory is a “guess,” expressed mathematically,
College Algebra Sixth Edition James Stewart Lothar Redlin Saleem Watson.
Slide 9- 1 Copyright © 2006 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
Verifying Trig Identities Today you will be verifying trigonometric identities to prove that a trigonometric equation is true for any replacement of the.
A) b) c) d) Solving LOG Equations and Inequalities **SIMPLIFY all LOG Expressions** CASE #1: LOG on one side and VALUE on other Side Apply Exponential.
1.4 Evaluating Algebraic Expressions.
College Physics Chapter 1 Introduction. Theories and Experiments The goal of physics is to develop theories based on experiments A theory is a “guess,”
In Chapters 6 and 8, we will see how to use the integral to solve problems concerning:  Volumes  Lengths of curves  Population predictions  Cardiac.
MTH Algebra SOLVING LINEAR EQUATIONS WITH A VARIABLE ON ONLY ONE SIDE OF THE EQUATIONS CHAPTER 2 SECTION 4.
2-4 Solving Equations with Variables on Both Sides.
Unit 5: Logarithmic Functions Inverse of exponential functions. “log base 2 of 6” Ex 1: Domain: all real numbers Range: y > 0 “log base b of x” Domain:
An Introduction to MathCAD More Symbolic Maths And First Steps in Calculus.
Lesson 8.1. » A statement where two mathematical expressions are. » Think of an equation as a balance scale or teeter-totter. The left side must always.
Honors Physics Math Review.
Opener: Find three consecutive odd integers whose sum is -63 Integer #1 = n Integer #2 = n + 2 Integer #3 = n + 4 (n) + (n + 2) + (n + 4) = -63 3n + 6.
DYNAMIC BEHAVIOR OF PROCESSES :
Section 6.2 Solving Linear Equations Math in Our World.
Algebraic Expressions
1.4 Solving Equations.
Trigonometric Identities
Evaluating Algebraic Expressions.
Algebraic Expressions
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.
1.4 Evaluating Algebraic Expressions.
7.1 Trigonometric Identities
Learning Resource Services
More U-Substitution: The “Double-U” Substitution with ArcTan(u)
Solving Algebraic Equations
Introduction to Algebra
2 Understanding Variables and Solving Equations.
1 Introduction to Algebra: Integers.
Numerical Integration:
Solving 1-Step Integer Equations
Evaluating Algebraic Expressions.
1.4 Evaluating Algebraic Expressions.
2 Chapter Chapter 2 Equations, Inequalities and Problem Solving.
Evaluating Algebraic Expressions.
Solving Equations.
Evaluating Algebraic Expressions.
Algebra Revision.
Presentation transcript:

MathCAD

Boundary value problem  Second order differential equation have two initial values. They can be placed in different points. ab A B for

Boundary value problem Other type of initial conditions for ab tg  = B A

Boundary value problem  Concerns second order differential equations or systems of first order differential equations  Initial conditions are given on opposite boundaries of solving range  Numerical methods (usually) needs initial values focused in one point (one of the boundaries)

Boundary value problem Initial conditions to start the integrating procedure for ab tg  = B

Boundary value problem We have to guess missing initial condition at the point we start the calculations Conditions givenCondition to guess y A, y B y’ A or y’ B y A, y’ B y’ A or y B y’ A, y B y A or y’ B

Boundary value problem HOW TO GUESS??!! 1. Assume missing initial value(s) at start point 2. Make the calculation to the endpoint of independent variable 3. Check the difference between boundary condition calculated and given on the endpoint 4. If the difference (error) is too large change the assumed values and go back to point 2.

Boundary value problem Example: Given initial conditions of system of two differential equations (range ): y 1a, y 1b To start calculations the value of y 2a is necessary 1. Assume y 2a 2. Calculate values of y 1, y 2 until the point b is reached 3. Calculate the difference (error) e = |y 1b(calculated) -y 1b,(given) | 4. If e>e max change y 2a and go to p. 2

Boundary value problem What is necessary to solve the boundary values problem? 1. System of equations 2. Endpoints of the range of independent variable 3. Known starting point values 4. Starting point values to guess 5. Calculation of error of functions values on the opposite side of interval

 To find missing initial values in the MathCAD the sbval procedure can be used. SYNTAX: sbval(v, a, b, D, S, B)  a, b – endpoints of the interval on which the differential equation is being evaluated (p. 2)  v – vector of guesses of searched initial values in the starting point a (p. 4) HAVE TO BE vector type  D – vector function of independent variable and dependent variable vector, consists of right hand sides of equations. Dependent variables in the equations HAVE TO BE vector type! (p. 1)  S – vector function of starting point and vector of guesses (v) defining initial conditions on starting point (p. 3&4)  B – function (could be vector type) to calculate error on the endpoint (b) (p. 5) Boundary value problem

MathCAD symbolic operations  Chosen symbolic operations accessible in MathCAD  Simple symbolic evaluation: algebraic expressions, derivating, integrating, matrix operations, calculation of limits etc.  Symbolic with keyword: substitute, expand, simplify, convert, parfrac, series, solve,

MathCAD symbolic operations  Symbolic operation are accessible from the Symbolic Toolbar or through the keys:  [ctrl][.] simple operations  [shift][ctrl][.] operations with keywords NO VALEUE  To get the symbolic result NO VALEUE can be assigned to the variables used in expressions!!

MathCAD symbolic operations  simple operations  Symbolic integration  Indefinite integration sign, expresion, [ctrl]+[.]  Symbolic derivation  Derivative sign, expression, [ctrl]+[.]

 Substitute - replace all occurrences of a variable with another variable, an expression or a number  expression [ctrl][shift][.] substitute, substitution equation  expand - expands all powers and products of sums in the selected expression  expression [ctrl][shift][.] expand  Simplify - carry out basic algebraic simplification and apply trigonometric and inverse function identities  expression [ctrl][shift][.] simplify MathCAD symbolic operations

 Factor – transforms an expression into a product  expression [ctrl][shift][.] factor  If product of differences of type independent variable integer data exists  To convert an equation to a partial fraction, type:  expression, [ctrl][shift][.] convert,parfrac, variable  series keyword finds Taylor series  expression, [ctrl][shift][.] series, variable = central point of expansion, order of approximation  To solve single equation  expression [ctrl][shift][.] solve, variable  Assumes expression equal 0 MathCAD symbolic operations

 To solve system of equation  Type Given  Type equations (using [ctrl]+[=])  find(var1, var2,..) [ctrl][.] MathCAD symbolic operations

Units in MathCAD

 System of units available in MathCAD:  SI - fundamental units: meters (m), kilograms (kg), seconds (s), amps (A), Kelvin (K), candella (cd), moles (mole).  MKS - fundamental units: meters (m), kilograms (kg), seconds (sec), coulombs (coul), Kelvin (K)  CGS - fundamental units: centimeters (cm), grams (gm), seconds (sec), coulombs (coul), Kelvin (K)  US - fundamental units: feet (ft), pounds (lb), seconds (sec), coulombs (coul), Kelvin (K)

 To add unit: type unit after number (MathCAD will add multiplication sign between number and units)  MathCAD converts units between Units Systems and between fundamental and derived unit. User can define new derived units as fallows: derived_unit:=multiplier*fundamental_unit, e.g.: kPa:=1000*Pa

 Independently of units used in data the results are given in fundamental units of actual Units System.  It can be changed!!  After the result of evaluation the placeholder appears. In these placeholder type the desired unit

Calculations with units. Calculate volume of rectangular prism of size ft