1 / 8

Solving ODEs with Mathematica

Solving ODEs with Mathematica. Anchors: Scandium δ Jocelyn Anleitner Diane Feldkamp. Mathematica Basics. Purpose: Mathematica solves difficult mathematical formulas Focus: solving ordinary differential equations (ODEs) of 1 st and higher order using Mathematica. Mathematica Syntax.

Télécharger la présentation

Solving ODEs with Mathematica

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Solving ODEs with Mathematica Anchors: Scandiumδ Jocelyn Anleitner Diane Feldkamp

  2. Mathematica Basics • Purpose: Mathematica solves difficult mathematical formulas • Focus: solving ordinary differential equations (ODEs) of 1st and higher order using Mathematica

  3. Mathematica Syntax • Details about important syntax for Mathematica can be reviewed on the wiki page titled “Solving ODEs with Mathematica” • For entering ODEs, use double equal signs (==) to define the functions • When finished with a line, use “Shift”+ “Enter” for Mathematica to compute the answer

  4. Dsolve and NDSolve • For ODEs without initial conditions, use Dsolve • For ODEs with initial conditions, use NDSolve

  5. Example: Semi-batch Reactor(Worked Out Example 2) Reaction: AB Given Variables: First-order ODE with Initial Conditions Use NDSolve in Mathematica

  6. Entering in Mathematica • Open Mathematica (Version shown here is Mathematica 6) • Use the following steps to solve the ODE in Mathematica: • Input ODE • Define given variables

  7. Entering in Mathematica (cont.) • Define a variable to NDSolve and enter inputs • Plot the solution X is conversion, and X[0] is entered as 0.0001 instead of 0 so that the ODE will not be undefined

  8. Sources Solving ODEs with Mathematica (wiki): http://controls.engin.umich.edu/wiki/index.php/Solving_ODEs_with_Mathematica

More Related