For h= 0.25, the estimate of y when x= 1 is 0.1250. Also, the estimate of y when x= 2 is 0.7500.
For h= 0.1, the estimate of y when x= 1 is 0.2850. And the estimate of y when x= 2 is 1.4700.
For h= 0.01, the estimate of y when x= 1 is 0.3284. And the estimate of y when x= 2 is 1.6467.
b)
c) As h decreases, Euler’s estimate appears to give better estimates because the estimates of y get smaller and closer to one another as h decreases. Also, the curve is also smoother, so it gives better estimates. Euler’s estimate appears to give worse estimates as I move farther from the initial points.
Exercise 3.2:
>> x = zeros(10,1); y = zeros(10,1);
[x,y]
ans =
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0
Exercise 3.3 :
a)
As h decreases, the accuracy of the graph increases. The graph with h=0.1 has a smooth curve compared to other graphs. As a result, the x and y coordinates are closer to another. Therefore, the coordinates and the graph are more accurate as h decreases.
b)
Yes, I believe that as h decreases, the graph will change significantly. The graph has a smoother curve. For each step size, there would be a more accurate curve and it depends on the number of h.
Exercise 3.4:
a)
>> g = inline('-cos(x)+2')
[x,y,g(x),abs(y-g(x))]
The values of column 2nd and 3rd are almost the same. However, there is a 0.0001 difference between the estimate of the ode45 value and the exact function value.
user presses Enter, reply is an empty or "null" vector. % isempty is a check on this. If reply is empty, it is given the % default value. reply = 'Y'; % Default. end if strncmpi(reply,'Y',1) % reply is Y or y disp('All you need is love') else % not Y or y disp('Bye') end % CRTSimpleIfElseif % This is some simple code showing how if .. elseif .. else .. end can be % used to make choices. % CRT 2012 clc clear % The statements clc and clear are often useful in…
20; const unsigned long b = 10; b = ++a – a--; printf("%d,%d,%d,%d",b--,a+1,--a,a++); Session – 2 4 ALL*IF*S & *BUT*S Simple example of IF-ELSE If (B is TRUE) { A = x; } else { A = y; } It can get messy and nested quickly based on the number of conditions Yes, we are talking about *nested* IF-ELSE If (B is 1) { A = x; } else if (B is 2) { A = y; } else if (B is 3) { A = z; } goes on … Beware, watch out carefully the condition statement for == Vs = && Vs & || Vs | Session – 2…
dual channel command system, two systems of the organizational structure of the balance of power is the key. But in reality there is not an absolute balance, which will exist in the actual work of the division of powers combined two routes: the functions and products, and the formation of two kinds deepen evolution forms: functional matrix, and project matrix. The former is a functional heads as the main decision-maker, while the latter is a product or project manager based. This organizational structure…
exponent to which another fixed value, the base, must be raised to produce that number. For example, the logarithm of 1000 to base 10 is 3, because 1000 is 10 to the power 3: 1000 = 10 × 10 × 10 = 103. More generally, if x = by, then y is the logarithm of x to base b, and is written y = logb(x), so log10(1000) = 3. The Babylonians sometime in 2000–1600 BC may have invented the quarter square multiplication algorithm to multiply two numbers using only addition, subtraction and a table of squares. However…
response function. A Nash Equilibrium occurs when each player is playing her best response, i.e., where the best response functions intersect. 2 / 45 Continuous Strategies Example: Guessing half of the average Consider a game called “Guessing half of the average” Two players can choose any number between 0 and 100 including non-integers. The two players’ guesses are X and Y ; the average is X +Y 2 Goal: guess half the average of the two players’ guesses Therefore, player 1’s optimal guess X should…
Music Production Antonio Fleming ENG/147 (BSGF1F1IV1) January25,2015 Frances Lord The Love of Music Production A lot of people really don't know how much the Music Production. Have impacted our daily lives.So the question is 展hat is Music Production?Well, music production is an individual working within the music industry. Whose job is to oversee and manage the recording of an artist's music. A producer also has roles that are included, but they could be limited to, by gathering ideas for…
DIGITAL HUMANITIES 2006 conventions is exhibited: a character nears death and expires in a room usually full of flowers and mourners who often “swoon.” The training set for this experiment includes two other texts that were scored on the same sentimentality scale, Susanna Rowson’s 1794 novel Charlotte: A Tale of Truth and Harriet Jacobs’s Incidents in the Life of a Slave Girl. Since these texts were considered sentimental, most chapters were scored in the medium or high range, so the categories were…
the food. (WbMed, 2011).Exist four main categories of fats: Phospholipids, sterols, triglycerides, and fatty acids, from the group of fatty acids derive another five types of different fats, each of them with diverse components and physiological functions in the body. Saturated fats contain just a single bond of Carbon and cannot have hydrogen atoms, are mostly found in animal food like meat, cheese, and milk. There are solid at room temperature, some plants contain some saturated fat such as palm…
incidences of mild coginitive impairment, and fewer Alzheimer characteristics Positive emotions early in adulthood were linked to longevity Sisters who taught showed more moderate declines in intellectual skills than those in service-based tasks Types of Love Romantic (passionate) Sexuality and infatuation Passion, fear, anger, sexual desire***, joy, jealousy Affectionate (companionate) Someone desired to have the other person near and has a deep, caring affection for the person Consummate Sternberg’s Triarchic…
of groups one must first define both the terms philosophy and groups. Philosophy can be defined as an examination of a basic concept. A group can be defined as an algebraic mathematical function set which searches for the goal of X or a set of individuals searching for a common solution to a problem, goal or an X factor. For the purpose of this discussion I will be focusing on groups as defined as set of individuals searching for a common solution to a problem or goal. I will be discussing individual…