hw3 - COMPUTER SCIENCE 50100 Computing for Science and...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
COMPUTER SCIENCE 50100 Computing for Science and Engineering FALL 2014 ASSIGNMENT # 3 (35 points) September 26 Announcement There is an error in the notes. The line axes().set_aspect(’equal’, ’datalim’) in Section 3.3 should read axes().set_aspect(’equal’) Due Wednesday, October 15 at 11:30 am This assignment covers Sections 3.1–4.2.2 of the class notes. Rule: For this assignment, the functions you define should use no global variables and have no side effects (except for output to a file in plot ratio ). 0. (Required) Please state whether you are using Python 2.7 or 3.4 and which operating system you are using. This will assist in the grading of your solutions. 1. (7 points) Write a Python module detm.py that defines a function logdet(A) that computes the natural logarithm of the determinant of A using the recurrence log det A = log α + log det( D - ( c/α ) b T ) where A = α b T c D is a (1 , n - 1) by (1 , n - 1) partitioning of A , except that log det( A ) = log A if A is 1 by 1. (This formula is suitable only for a restricted class of matrices that includes symmetric positive definite matrices.) #!/usr/bin/env python # detm.py import numpy as np def logdet(A): ...
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern