Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Solving Initial Value Problem using Euler's Method in CSCI 5606 - Prof. Richard Byrd, Assignments of Computer Science

An assignment in the computer science course csci 5606, where students are required to write a program to solve an initial value problem using euler's method. The problem involves finding the solution to the given differential equation on the interval [0,5] with three different step sizes: h=0.5, 0.25, and 0.125. The assignment asks students to print the computed value at x=5 and the error for each step size, and analyze how the error varies with h.

Typology: Assignments

Pre 2010

Uploaded on 02/10/2009

koofers-user-rc1
koofers-user-rc1 🇺🇸

10 documents

1 / 1

Toggle sidebar

Related documents


Partial preview of the text

Download Solving Initial Value Problem using Euler's Method in CSCI 5606 - Prof. Richard Byrd and more Assignments Computer Science in PDF only on Docsity! Last Assignment CSCI 5606 due December 11, 2008 1. Consider the initial value problem y′(t) = 1.0/(1.0 + x2)− 2.0[y(x)]2. y(0) = 0 The exact solution is y(x) = x/(1.0 + x2). Write a program to solve this problem on the interval [0,5] using Euler’s method. Use h=0.5, 0.25, and 0.125 (10, 20 and 40 intervals). In each case print the computed value at x = 5 and the error. How does the error seem to be varying with h? Explain how you determined this. 1
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved