# Register now to access 7 million high quality study materials (What's Course Hero?) Course Hero is the premier provider of high quality online educational resources. With millions of study documents, online tutors, digital flashcards and free courseware, Course Hero is helping students learn more efficiently and effectively. Whether you're interested in exploring new subjects or mastering key topics for your next exam, Course Hero has the tools you need to achieve your goals.

4 Pages

### jacobi

Course: MATH Calc, Spring 2008
School: Pontifical Catholic...
Rating:

Word Count: 231

#### Document Preview

PROGRAMA: % METODO DE JACOBI % Descripcion: El programa encuentra las raices de un conjunto de ecuaciones lineales de la forma % A x X = B, utilizando el metodo iterativo de Jacobi. % curso: Calculo Numerico % programacion: Rony Yupanqui G. % fecha: Setiembre 2006 %------------VARIABLES---------% % numero de ecuaciones lineales n=3; % matrices utilizadas a=zeros(n,n); b=zeros(n,1); x0=zeros(n,1); x1=zeros(n,1); %...

Register Now

#### Unformatted Document Excerpt

Coursehero >> Other International >> Pontifical Catholic University of Peru >> MATH Calc

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
PROGRAMA: % METODO DE JACOBI % Descripcion: El programa encuentra las raices de un conjunto de ecuaciones lineales de la forma % A x X = B, utilizando el metodo iterativo de Jacobi. % curso: Calculo Numerico % programacion: Rony Yupanqui G. % fecha: Setiembre 2006 %------------VARIABLES---------% % numero de ecuaciones lineales n=3; % matrices utilizadas a=zeros(n,n); b=zeros(n,1); x0=zeros(n,1); x1=zeros(n,1); % tolerancia tol=0.00001; % valores de la matriz A a=[3 1 0; -1 3 1; 0 2 3]; % segundos miembros de las ecuaciones b=[1; -1; 0]; % aproximacion inicial x0=[0;0;0]; %----------ALGORITMO DEL PROGRAMA-----% disp(' PROGRAMA: METODO DE JACOBI'); for i=1:n, val=-1*a(i,i); for j=1:n, end; a(i,j)=a(i,j)/val; a(i,i)=0; b(i,1)=b(i,1)/val*-1; end; disp('MATRIZ T DE LAS ITERACIONES'); disp(a); disp('VECTOR C DE LAS ITERACIONES'); disp(b); error=1; num=1; disp(' ITERACIONES: '); disp(' N X(1) X(2) while error>tol, for i=1:n, val=0; for j=1:n, val=val+a(i,j)*x0(j,1); end; x1(i,1)=val+b(i,1); end; % tipo de error error=0; for i=1:n, X(3) ERROR'); error=error+(x1(i,1)-x0(i,1))*(x1(i,1)-x0(i,1)); end; error=sqrt(error); % mostrar el resultado de la iteracion con los elementos del vector x linea=sprintf(' %d %5.8f %5.8f %5.8f %5.8f',num,x0(1,1),x0(2,1),x0(3,1),error); disp(linea); x0=x1; num=num+1; end; disp('SOLUCIONES X DE LAS ECUACIONES LINEALES'); disp(x0);
Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Pontifical Catholic University of Peru - MATH - Calc
% PROGRAMA: BISECCION % Descripcion: El programa encuentra las raices de una funcion f(x) en el intervalo [a, b] % utilizando el metodo de biseccion. % curso: Calculo Numerico % programacion: Rony Yupanqui G. % fecha: Agosto 2006 % VARIABLES % extrem
Georgia Tech - PHYSICS - 2211
2.73. Model: The rocket and the bolt will be represented as particles to investigate their motion. Visualize:The initial velocity of the bolt as it falls off the side of the rocket is the same as that of the rocket, that is, vB0 = vR1 and it is pos
Pontifical Catholic University of Peru - MATH - Calc
% PROGRAMA: NEWTON PARA UNA VARIABLE % Descripcion: El programa encuentra la raiz de una funcion f(x) con una aproximacion inicial &quot;xo&quot; % utilizando el metodo de Newton. % curso: Calculo Numerico % programacion: Rony Yupanqui % fecha: Agosto 2006 % V
Pontifical Catholic University of Peru - MATH - Calc
% PROGRAMA: NEWTON PARA DOS VARIABLES % Descripcion: El programa encuentra la raiz (x,y) para un sistema de ecuaciones f(x,y) y g(x,y) % con una aproximacion inicial &quot;(xo,yo)&quot; utilizando el metodo de Newton % para dos variables. % curso: Calculo Nume
Pontifical Catholic University of Peru - MATH - Calc
% PROGRAMA: UBICA RAICES PARA 2 VARIABLES. % descripcion: El programa define intervalos sobre los que se ubican las soluciones % para un sistema de ecuaciones con 2 variables. Se ingresan % las dos funciones, los intervalos en los que se realizara %
Georgia Tech - PHYSICS - 2211
2.78. Model: Jill and the grocery cart will be treated as particles that move according to the constantacceleration kinematic equations. Visualize:Solve:The final position of Jill when the cart is caught is given byx J1 = x J0 + vJ0 (t J1 - t J
Pontifical Catholic University of Peru - MATH - Calc
% PROGRAMA: PUNTO FIJO % Descripcion: El programa encuentra la raiz de una funcion f(x) con una aproximacion inicial &quot;xo&quot; % utilizando el metodo del punto fijo. % curso: Calculo Numerico % programacion: Rony Yupanqui G. % fecha: Agosto 2006 % VARIABL
Pontifical Catholic University of Peru - MATH - Calc
% PROGRAMA: PUNTO FIJO PARA DOS VARIABLES % Descripcion: El programa encuentra la raiz (x,y) para un sistema de ecuaciones f(x,y) y g(x,y) % con una aproximacion inicial &quot;(xo,yo)&quot; utilizando el metodo del Punto Fijo % para dos variables. % curso: Cal
Pontifical Catholic University of Peru - MATH - Calc
% PROGRAMA: UBICA RAICES % Descripcion: El programa divide un intervalo [a, b] en &quot;n&quot; partes iguales y define los intervalos % en los cuales existe una raiz para una funcion f(x). % curso: Calculo Numerico % programacion: Rony Yupanqui G. % fecha: Ag
Georgia Tech - PHYSICS - 2211
3.10. Visualize:We will follow the rules given in the Tactics Box 3.1. Solve: (a) rx = -(2 km) sin 30 = -1 km ry = (2 km) cos 30 = 1.73 km (b) vx = -(5 cm/s)sin 90 = -5 cm/s vy = (5 cm/s)cos 90 = 0 cm/s (c) a x = -(10 m /s 2 )sin 40 = -6.43 m /s 2
Georgia Tech - PHYSICS - 2211
3.11. Visualize:r r The components of the vector C and D , and the angles are shown. v v Solve: For C we have Cx = -(3.15 m )cos15 = -3.04 m and Cy = (3.15 m )sin 15 = 0.815 m. For D we have Dx = 25.67 sin 30 = 12.84 and Dy = -25.67 cos 30 = -22.2
Georgia Tech - PHYSICS - 2211
3.26. Visualize: Refer to Figure P3.26.Solve:From the rules of trigonometry, we have Ax = 4 cos 40 = 3.06 and Ay = 4 sin 40 = 2.57. Also, Bx = r r r r r r r r r ^ ^ -2 cos10 = -1.97 and By = +2 sin 10= 0.35. Since A + B + C = 0, C = - A - B = ( -
Michigan - ECON - 401
Problem Set 2 SolutionsECON 401, Winter 2008Problems1. (2.15) According to Borjas (2003), immigration into the United States increased the labor supply of working men by 11.0% from 1980 to 2000 and reduced the wage of the average native worker by
Michigan - ECON - 401
Intermediate Microeconomics, 2008Problem Set No 3: SolutionsProblems 1) Consider three people, A,B,C and the relation &quot;at least as old as&quot;. Is this relation transitive? Is it complete? Each person has an age which can be represented as a number. &quot;
Georgia Tech - PHYSICS - 2211
4.4. Model: Assume friction is negligible compared to other forces.Visualize:
Michigan - ECON - 401
Problem Set 4 SolutionsECON 401, Winter 2008ProblemsA. (3.1) Which of the following pairs of goods are complements (people like to consume them together), and which are substitutes (people are willing to trade off one good for the other)? Are the
Michigan - ECON - 401
Intermediate Microeconomics, 2008Problem Set No 5: SolutionsProblems (4.7) During his first year at school, Ximing buys eight new college textbooks at a cost of \$50 each. Used books cost \$30 each. When the bookstore announces a 20% price increase
Georgia Tech - PHYSICS - 2211
4.5. Visualize: Please refer to Figure Ex4.5.Solve: Mass is defined to bem=1 slope of the acceleration-versus-force graphA larger slope implies a smaller mass. We know m2 = 0.20 kg, and we can find the other masses relative to m2 by comparing
Michigan - ECON - 401
Intermediate Microeconomics, 2008Problem Set No 6: SolutionsProblems 1) We considered preferences represented by the following utility function in the last homework:U (q1 , q2 ) = q1 q2 We assume that income is fixed at Y = 2 and the price of go
Michigan - ECON - 401
Intermediate Microeconomics, 2008 Problem Set No 2 ProblemsNote: Explanations can be short and one or two sentences are enough.1) 2) 3) 4)Question Question Question Question15, 18, 32, 38,Chapter Chapter Chapter Chapter2 (challenging) 2 2
Georgia Tech - PHYSICS - 2211
4.6. Model: An object's acceleration is linearly proportional to the net force.Solve: (a) One rubber band produces a force F, two rubber bands produce a force 2F, and so on. Because F a and two rubber bands (force 2F) produce an acceleration of 1.
Michigan - ECON - 401
Intermediate Microeconomics, 2008Problem Set No 3 due: Jan, 16 / 17ProblemsFrom Varian, p52:1) Consider three people, A,B,C and the relation &quot;at least as old as&quot;. Is this relation transitive? Is it complete? 2) For the same group of three peopl
Michigan - ECON - 401
Intermediate Microeconomics, 2008due: Wednesday / Thursday, Jan, 23 / 24Problem Set No 4ProblemsA) Please, solve the following problems from the book. Question 32 is challenging but you can use your results on Cobb Douglas Preferences quite a
Georgia Tech - PHYSICS - 2211
4.18. Visualize:
Michigan - ECON - 401
Intermediate Microeconomics, 2008Problem Set No295 due: Monday / Tuesday, Jan, 28 /We strongly suggest you do the problem set before class on Monday, so that you can familiarize yourself with the topics and the new concepts. Problems 1) Please, do
Michigan - ECON - 401
Intermediate Microeconomics, 2008Problem Set No306 due: Thursday, Jan 31; Wed, JanProblems 1) We considered preferences represented by the following utility function in the last homework: U (q1 ; q2 ) = q1 q2 . Income is .xed at Y = 2 and the pric
Georgia Tech - PHYSICS - 2211
4.20. Visualize:r Assess: There are only two forces on the elevator. The weight w is directed down and the tension in the cable is directed up. Since the elevator is descending at a steady speed there is no acceleration and the two forces must be e
UT Arlington - ENGL - 2350
Critical Terms 1 - features terminology from The Bedford Glossary of Critical and Literary Terms. 1. Allegory: the presentation of an ABSTRACT idea through more CONCRETE means. 2. Archetype: the IMAGES, figures, CHARACTERS, types, SETTINGS, and STORY
Georgia Tech - PHYSICS - 2211
4.38. Visualize:
UT Arlington - ENGL - 2350
Critical Terms 2 - From the Bedford Glossary and Critical Theory Today. Features New Critcism (NC) and Marxist Criticism (M) terms. 1. &quot;The Text Itself&quot; (NC): The battle cry of the New Critical effort to focus our attention on the literary work as th
UT Arlington - ENGL - 2350
Critical Terms 5 - From Critical Theory Today - Reader Response Criticism Terms. 1. Aesthetic Mode: When the reader experiences a personal relationship to the text that focuses his/her attention on the emotional subtleties of its language and encoura
UT Arlington - ENGL - 2350
Critical Terms 4 - Psychoanalyst Criticism terms from Critical Theory Today. 1. Avoidance: Staying away from people or situations that are liable to make us anxious by stirring up some unconscious - i.e., repressed - experience or emotion. 2. Death d
UT Arlington - ENGL - 2350
Critical Terms 3. From Critical Theory Today - Postcolonial Criticism terms. 1. Colonial Discourse: Based on the colonizers' assumption of their own superiority 2. Colonial Subjects: Colonized persons who did not resist colonial subjugation because t
Georgia Tech - PHYSICS - 2211
Physics 2211 Spring 2008Quiz #1SolutionsUnless otherwise directed, all springs, cords, and pulleys are ideal, and drag should be neglected. I. (16 points) A car is travelling in a straight line with velocity +v0 . At time t = 0, it begins to ac
Binghamton - CHEM - 332
Chem 332 Exam I 2/19/2008NAME:_ FIRST 2 LETTERS OF LAST NAMEPART I reactions and nomenclature 1. Draw the following compounds given the specific or generic name. (16) parabenzoquinone diazonium saltenolmethyl phenyl etherFor the following g
Binghamton - CHEM - 332
Chem 332 Exam II 3/18/2008NAME:_ FIRST 2 LETTERS OF LAST NAMEREAD INSTRUCTIONS CAREFULLY. CHECK YOUR ANSWERS FOR COMPLETENESSLi NLDA IS A BULKY BASE THAT LOOKS LIKEBENZENE RINGS AS A GROUP CAN BE ABBREVIATED AS `Ph-`Part A (100) 1. Give a
Binghamton - CHEM - 332
Chem 332 Exam III 4/15/2008NAME:_ FIRST 2 LETTERS OF LAST NAMEPart I fundamentals and mechanism 1. Give the IUPAC name for the following compounds.(8)O O HO N H CH32. Give the functional group classification for the following compounds.(8)
Binghamton - CHEM - 332
1. In the boxes below, write the charge that the functional group would possess at pH = 5. Write either +, - or 0 (zero) in the boxes.The nitrogens are in a more acidic environment than their pKa. The oxygens are in a more basic environment than th
Georgia Tech - PHYSICS - 2211
Physics 2211 Spring 2008Quiz #2SolutionsUnless otherwise directed, all springs, cords, and pulleys are ideal, and drag should be neglected. I. (16 points) A block of mass m accelerates up a frictionless incline that makes an angle with the hor
Binghamton - CHEM - 332
Below are step-by-step instructions for how to solve some of the problems that people are having trouble with. For pKa/pH questions: Nitrogen will either be positive or neutral (but never negative!). If the pH is lower (and therefore, more acidic) th
Georgia Tech - PHYSICS - 2211
Physics 2211 Spring 2008Quiz #3SolutionsUnless otherwise directed, all springs, cords, and pulleys are ideal, and drag should be neglected. I. (16 points) The Earth is a planet with mass M and radius R. What would the period of the Earth's rota
Georgia Tech - PHYSICS - 2211
Physics 2211 Spring 2008Quiz #4SolutionsUnless otherwise directed, all springs, cords, and pulleys are ideal, and drag should be neglected. I. (16 points) Two blocks of mass m1 and m2 are tied together and pulled so that it travels up a frictio
Texas San Antonio - ACCT - 2013
Chapter 6Internal Control and Financial Reporting for Cash and Merchandising OperationsANSWERS TO QUESTIONS 1. Service companies sell services and merchandising companies sell physical products. Merchandising companies sell physical products that
Georgia Tech - PHYSICS - 2211
Physics 2211 Spring 2008Quiz #5SolutionsUnless otherwise directed, all springs, cords, and pulleys are ideal, and drag should be neglected. I. (16 points) An amusement park sled and rider, with total mass m, is to be sent around a loop-the-loop
Texas San Antonio - ACCT - 2013
Chapter 1Business Decisions and Financial AccountingANSWERS TO QUESTIONS 1. Accounting is the process of analyzing, summarizing, and reporting the results of a business's activities.2. Financial accounting focuses on preparing and using the fina
Texas San Antonio - ACCT - 2013
Chapter 2Reporting Investing and Financing Results on the Balance SheetANSWERS TO QUESTIONS 1. (a) An asset is a resource owned by a company that has measurable value and is expected to provide future benefits. A current asset is an asset that wil
Texas San Antonio - ACCT - 2013
Chapter 3Reporting Operating Results on the Income StatementANSWERS TO QUESTIONS 1. Net Income = Revenues - Expenses. Each element is defined as follows: Revenues sales of goods or services to customers. Expenses costs of business necessary to e
Texas San Antonio - ACCT - 2013
Chapter 4Adjustments, Financial Statements, and the Quality of Financial ReportingANSWERS TO QUESTIONS 1. Adjusting entries are made at the end of the accounting period to record all revenues and expenses that have not been recorded but belong in t
Arkansas - COMM - 1313
Enron Scandal General Purpose: To inform Specific Purpose: To inform the audience about the Enron scandal Thesis: The Enron scandal was one of the most famous scandals of our time. INTRODUCTION I. Gain attention a. In just 15 years, Enron grew from n
Georgia Tech - ECE - 2030
ECE 2030 B 12:00pm 4 problems, 4 pages Problem 1 (3 parts, 30 points)Computer Engineering Exam One SolutionsFall 2007 19 September 2007 Incomplete CircuitsFor each partial switch circuit below, complete the complementary switching network so th
Georgia Tech - ECE - 2030
ECE 2030B 12:00 noon 4 problems, 4 pages Problem 1 (4 parts, 34 points)Computer Engineering Exam Two SolutionFall 2007 24 October 2007 An unusual state of affairsPart A (8 points) Implement a transparent latch using only inverters and pass gate
Philadelphia - HIST - 122
China and the Eighteenth-Century WorldJo nat ha n D. S p e nce M AN AGI NG T HE F O RE I G NE RS The Qing state had no Ministry of Foreign Affairs. Relations with non-Chinese peoples were instead conducted by a variety of bureaus and agencies that,
Georgia Tech - ECE - 2030
ECE 2030 12:00pm 4 problems, 6 pages Problem 1 (3 parts, 30 points)Computer Engineering Exam ThreeFall 2007 28 November 2007 Memory SystemsPart A (12 points) Consider a 64Mbit DRAM chip organized as 2 million addresses of 32-bit words. Assume b
Philadelphia - HIST - 122
Traditional China at Its Peak: Achievements and ProblemsJohn K. Fairbank This selection from John K. Fairbanks' magistral survey, The Great Chinese Revolution, assesses the traditional system under the Qing (Ch'ing) dynasty as it had developed by th
Philadelphia - HIST - 122
Modern World 122 February 8, 2008 Writing Assignment # 1 Classical Liberalism In the 18th and early 19th century, a series of revolutions and civilian uprisings led to the collapse monarchies around the world. In particular, the Americans separation
Georgia Tech - ECE - 2030
ECE 2030 A 10:00am 4 problems, 4 pages Problem 1 (3 parts, 30 points)Computer Engineering Exam One SolutionsFall 2007 19 September 2007 Incomplete CircuitsFor each partial switch circuit below, complete the complementary switching network so th
Philadelphia - HIST - 122
A LETTER CONCERNING TOLERATION JOHN LOCKE John Locke(1632-1704), the patron philosopher of liberalism, would profoundly influence Enlightenment thought with his Letters Concerning Toleration (1689-1693), in which he sought &quot;to distinguish exactly th
Philadelphia - HIST - 122
IV Rites of War0 Weissdorn mit den roten Beern, was wird der Fruhling uns beschern? (o hawthorn with your berry red, What will spring bring instead?)RICHARD DEHMEL&quot;Der Frontsoldat,&quot; Christmas 1914 . . . But many there stood still To face the star
Georgia Tech - ECE - 2030
ECE 2030A 10:00am 4 problems, 4 pages Problem 1 (4 parts, 34 points)Computer Engineering Exam TwoFall 2007 24 October 2007 An unusual state of affairsPart A (8 points) Implement a transparent latch using only inverters and pass gates. Label the
Georgia Tech - ECE - 2030
ECE 2030 10:00pm 4 problems, 4 pages Problem 1 (3 parts, 30 points)Computer Engineering Exam Three SolutionsFall 2007 28 November 2007 Memory SystemsPart A (12 points) Consider a four Gbit DRAM chip organized as 128 million addresses of four by
Arkansas - ENGL - 2003
Paper 1: Summary In &quot;Deadly Compromise&quot;, Peter Green argues that capital punishment is in dire need of reform and he explains its current problems and offers ways to improve the current system. In the article, many examples of negligence and flaws th