Concept explainers
a.
To write: A program to use Euler’s method.
a.
Answer to Problem 25E
Explanation of Solution
Given information:
Concept used :
Here, we use C language to program a computer.
Calculation:
The required program can be written as following,
#include#include float main() { float h,y,x,F; int i; printf("Put the value of h\n"); scanf("%f",&h); y=3; x=0; for(i=1;i<=(1/h);i=i+1) { F=6*(x*x)-3*y*(x*x); x=x+h; y=y+h*F; } printf("%f",y); }
We put the given step size
b.
To verify:
b.
Explanation of Solution
Given information:
Differential equation:
Formula used:
Calculation:
Substituting
c.
To find: The error in Euler’s method to compute
c.
Answer to Problem 25E
Exact value of | error | |
3 | 2.367879 |
Exact value of | error | |
2.392794 | 2.367879 |
Exact value of | error | |
2.370111 | 2.367879 |
Exact value of | error | |
2.369212 | 2.367879 |
As the step size is divided by
Explanation of Solution
Given information:
The exact solution of the differential equation is
Formula used :
We use the computer program to get the estimates of Euler’s method.
Calculation:
Exact value of | error | |
3 | 2.367879 |
Exact value of | error | |
2.392794 | 2.367879 |
Exact value of | error | |
2.370111 | 2.367879 |
Exact value of | error | |
2.369212 | 2.367879 |
As the step size is divided by
Chapter 7 Solutions
Single Variable Calculus: Concepts and Contexts, Enhanced Edition
- Calculus: Early TranscendentalsCalculusISBN:9781285741550Author:James StewartPublisher:Cengage LearningThomas' Calculus (14th Edition)CalculusISBN:9780134438986Author:Joel R. Hass, Christopher E. Heil, Maurice D. WeirPublisher:PEARSONCalculus: Early Transcendentals (3rd Edition)CalculusISBN:9780134763644Author:William L. Briggs, Lyle Cochran, Bernard Gillett, Eric SchulzPublisher:PEARSON
- Calculus: Early TranscendentalsCalculusISBN:9781319050740Author:Jon Rogawski, Colin Adams, Robert FranzosaPublisher:W. H. FreemanCalculus: Early Transcendental FunctionsCalculusISBN:9781337552516Author:Ron Larson, Bruce H. EdwardsPublisher:Cengage Learning