hw5 - [1/5 Constructing and Solving Linear Systems Homework...

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

View Full Document Right Arrow Icon
3/15/2016 [1/5] Constructing and Solving Linear Systems - Homework 5 - RELATE 1/1 Constructing and Solving Linear Systems In this problem, we will construct and solve a linear system, . The problem narrative is the following: You are working on a new electronic device. And for this device, it is critical to understand how much power is being consumed by each of the 10 components on it. But from your test setup, you can not directly measure how much power each component is using. Instead you can measure how much power the entire device uses and the duration that each component was operating (e.g. the device consumed 5 milliwatts with the microphone operating for 1 second and the screen for 0.5 seconds). Your goal is to calculate the energy consumed per second by each component on the device. You will do this by setting up a linear system and then solving using numpy.linalg.solve . You will be given a python dictionary called test_data that contains measurements from 10 different tests. Each test is stored as a python list of tuples. (e.g. [('LED0', 0.58), ('Screen', 0.24), ('PowerConsumed', 1.2), ...]). The tuple with first entry equal to 'PowerConsumed' is the power consumed by the device on that test. The other tuples tell you how much time each component was running for. You will also be given a python list of the components called components . Using these two inputs, build a linear system to solve for the energy per second consumption of each component. You may use numpy.linalg.solve to solve your linear system. Return x
Image of page 1

Info icon This 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