• Nie Znaleziono Wyników

II Year Electronics and Computer Engineering, FoE, WUST

N/A
N/A
Protected

Academic year: 2021

Share "II Year Electronics and Computer Engineering, FoE, WUST"

Copied!
2
0
0

Pełen tekst

(1)

Scientific & Engineering Programming

II Year Electronics and Computer Engineering, FoE, WUST

Laboratory Class 3 – ODEs in Mathematica

The scope

To get familiar with ordinary differential equations in Mathematica, methods for solving them, to perform basic results visualization and analysis.

Prerequisites

Before the classes you should know, how to:

• represent and define differential equations,

• solve symbolically and numerically differential equations,

• visualize functions being the differential equations solutions,

• model simple physical systems.

Tasks

1. Exercise the plots from the task 17, Lab Class 2, if not done earlier.

2. Solve symbolically the second order differential equation y00(x) + py0(x) + qy(x) = 0

in general case and for different, specific numerical values of p and q parameters. What is the influence of the sign of the characteristic equation discriminant (D = p2− 4q) to the solution (larger than 0, smaller than 0, equal to 0?) Visualize the obtained results.

3. Repeat the computation of task2utilizing the numerical methods (observe, in this case one has to assign the parameters p and q numerical values first and then solve the equations).

Visualize the results and compare with the results from the previous exercise.

4. Solve (numerically, and optionally symbolically) the set of equations (dx

1

dt = x2 dx2

dt = −x1− kx2

.

Visualize and interpret the results for different initial conditions and values of the parameter k (large: k > 2 and small 0 < k < 2).

5. Solve numerically the set of equations





dx

dt = σ(y − x)

dy

dt = x(ρ − z) − y

dz

dt = xy − βz

.

Visualize the results (time plot, state space plot, xz plane) for different system parameters (start with σ = 10, β = 8/3, ρ = 28). Examine the influence of initial conditions to the system trajectory (one may start with (0, 1, 0), what Lorenz considered :).

1

(2)

Scientific & Engineering Programming, LC3, II Year ECE, FoE, WUST 2

6. Using the Newton’s laws write the differential equation of a harmonic oscillator of the mass m, which is a system that, when displaced from its equilibrium position, experiences a restoring force F , proportional to the displacement x:

F = −kx,

where k is a positive constant. Solve the equation and visualizing the obtained solution determine the motion characteristics.

Cytaty

Powiązane dokumenty

For completness we refer to a result of Lemmert [5], who proves the monotonicity of an operator 4' corresponding to an initial value problem in ordered Banach spaces,

Undoubtedly, Apple applies an active strategy for protecting intellectual property rights – not only by taking advantage of protection from all types of intellectual proper- ty

To get familiar with Mathematica interfaces, to perform basic calculations with vectors and ma-

To get familiar with Mathematica interfaces, to perform basic calculations with equations, to define functions, conditionals, and loops, to learn graph

¶ The system equations in this form, together with all the accompanying matrices and vectors are defined in the Mathematica notebook file, provided on the course web page in

Define the function sumAll(x) which for its argument being a vector returns two separate values: the sums of positive, and the sum of negative vector elements.. and returns

Using the Newton’s laws write the differential equation of a harmonic oscillator of the mass m, which is a system that, when displaced from its equilibrium position, experiences

To get familiar with the methodology of dynamical systems simulations in Simulink, methods for results visualization and