worksheet04

# worksheet04 - Worksheet #4 - PHY102 (Spr. 2006) Solving...

This preview shows pages 1–2. Sign up to view the full content.

Worksheet #4 - PHY102 (Spr. 2006) Solving equations Solving equations in Mathematica Look up how to solve algebraic equations exactly(Solve) and numeri- cally(NSolve). If you have a transcendental equation (e.b. x = sin ( x )) you need to use “FindRoot”. In simple kinematics and simple applications of Newton’s second law, the physics is often described by a second order linear di±erential equa- tion. This may be solved analytically using DSolve, or numerically using NDSolve. We shall consider initial value problems in which it is necessary to specify the initial conditions. In Newton’s second law, this is the initial position and velocity. An example is: “DSolve[ { x 00 [ t ] + 0 . 05 x 0 [ t ] + x [ t ] == 1 , x 0 [0] == 0 , x [0] == 2 } , x [ t ] , t ]”. Note the double equals (“==”) occurs in all of the “Solve, DSolve . ..” functions. It is Mathematica’s way of expressing a “Truth” statement. Use the Mathematica help index to loop up DSolve and see some other examples. Extracting what you want

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 07/25/2008 for the course PHY 102 taught by Professor Duxbury during the Spring '08 term at Michigan State University.

### Page1 / 2

worksheet04 - Worksheet #4 - PHY102 (Spr. 2006) Solving...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online