Homework # 3 CGN 3421
Due Sept 19, 2016
Calculate derivatives on the interval 0 < x < 4 *
For the function f ( x) ax bx 2 cx3 d sin(mx) g exp(hx)
For values of a =  1, b = 0.2, c =  0.05, d = 4, m = 2, g = 2, h =  3.
Use N = 20, 200, and 2000 grid poi
I1
CE Program Course Syllabus 2012
CCE Department Course
CCE 4015 Civil Engineering Estimating
Selected Elective Course (Advanced)
1. Catalog Description Design of systems for estimating and cost control of manmachine productivity for civil
engineering
CGN 3421
Computer Methods
Spring 1999
Instructor: Professor Gurley, 204F Weil, www.ce.ufl.edu/~kgurl
Office Hours: Monday through Thursday 10:30  11:30. Please make an attempt to seek help during office hours. If you have a conflict, I am available at ot
CGN 3421
Computer Methods
Spring 2001
Instructor: Professor Gurley, 204F Weil, www.ce.ufl.edu/~kgurl
Office Hours: To be announced
Class: MWF 9:35, M 3:00  6:00 (lab).
Text:
Introduction to MATLAB, Etter and Kuncicky
Numerical Methods for Engineers, Chap
CGN 3421
Computer Methods
Spring 2000
Instructor: Professor Gurley, 204F Weil, www.ce.ufl.edu/~kgurl
Office Hours: Monday through Thursday 10:30  11:30. Please make an attempt to seek help during office hours. If you have a conflict, I am available at ot
CGN 3421
Computer Methods
Fall 2001
Instructor: Professor Gurley, 204F Weil, www.ce.ufl.edu/~kgurl
Office Hours: To be announced
Class: MWF 8:309:20, W 3:00  6:00 (lab). All classes meet in 1084 Weimer Hall
Text: Numerical Methods for Engineers, Chapra
Proceduresrules for both functions and subroutines
One or more lines of code that perform a calculation or a more complicated task.
written just once, referenced by main program
Convenient when procedure is required more than once in a program
The ONLY l
CGN 3421
Computer Methods
Fall 1997
ROOT FINDING
Well discuss 5 methods. Each has the same goal, and each tries to get there through
a series of guesses. Whats different?
Each method has devised a different way to get to the next guess (presumably better
CGN 3421
Computer Methods
Spr 1998
Solution of Simultaneous Linear Equations
Matrices can be used as an organized way of presenting a set of coupled equations. Generally
speaking, we seek a single unique solution that satisfies all the equations at the sa
CGN 3421
Computer Methods
Fall 1998
Exam #1 (A very basic review)
Variables
reserves spots in computer memory to store values
only letters and numbers, beginning with a letter
only 6 characters/numbers or less are used
Implicit none (removes default se
purpose: Homework5
finding the distance between two points
name of function
function (disance, for returning two thing r) = hypotoneuse (p1, p2)
distance = (p2(1)  p1(1) + p2(2)  p1(1)^2
+ (p2(3)  p1(3)^2;
distance = sqrt(distance)
r(1) = p2(1) p1(1)
% Homework number 2
% Code to generate 10000 random numbers
% normally distributed.
clear all
close all
clc
% This assignment is divided into different groups.
% This group generates 10,000 random numbers.
Nx = 10000;
for i = 1 : Nx;
% Function to generat
HW # 1
Due August 31, 2016
CGN 3421
Use Matlab to plot five types of functions.
Save the plots as jpg files and turn in in a document in pdf format.
Turn in the matlab code and plots. Include a legend, label the x and yaxes, and put a title on the
plot.
HW #5 Due October 3, 2016 (midnight).
CGN 3421 Prof. Slinn
Goal: Integration using function calls.
Assignment: Part 1. Use 3 methods to estimate the area under the function over the
range given. f(x) = 0.02 x3 0.7 x2 + 15 (sin(x)2 + 7 x  4
for 3 < x < 7
Formatted output statements
Why?

Create an output file and selectively write only some details to it.

Make the output on the screen look how you want (for diary file)
Three main commands
1.
fopen opens a file to write to
2. fprintf writes text and vai
Practice Final Exam CGN3421 Spring 2012 Numerical Methods Prof. Slinn
2 hours open book, open note, no computers, no cell phones
1. (20 points) Beginning with the standard second order accurate central difference for
the second derivative of a function u(
CGN 3421
Computer Methods
Fall 1997
Exam #2  November 3, 1997
Open book and notes.
No calculators are permitted.
1) When locating the root(s) of a function with an iterative method, an estimate of
the current error is used to determine if iterations shou
CGN 3421
Computer Methods
Exam #2
Practice Exam Questions
No solutions will be provided for this practice sheet. Youre on your own.
1) An important consideration for many civil engineering projects is the effect of earthquake motions on the
systems we are
CGN 3421
Computer Methods
Practice exam #1
2/5/99
Spring 1999
NAME_
This document is designed to give you some idea of what to expect on the first exam. Do not expect
an exact replica of this format. Bring questions to class Monday (2/8/99) for discussion