0% found this document useful (0 votes)
26 views

Assignment 1 - ML

279 468 -1 5 9 -1.0 0.5 32 56 90 -0.5 -3.0 ...........

Uploaded by

AYESHA SHAZ
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

Assignment 1 - ML

279 468 -1 5 9 -1.0 0.5 32 56 90 -0.5 -3.0 ...........

Uploaded by

AYESHA SHAZ
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Riphah International University

Introduction to Machine Fall 2019


Learning
Sep 24, 2019 Assignment Marks: 10
Due on: Sep 29, 2019 latest by 8 P.M.

Assumptions:

You have downloaded and installed Python Environment preferably “Anaconda” on


your systems and have understood some basic program statements

Task:

You are required to read the contents of the attached file (input.txt) containing 3
numbers in each row (example below)

279

468

-1 5 9

32 56 90

………..

Now assuming that each row represents the values of the variables a, b and c
respectively of the quadratic equation.

You are required to compute the answer/roots of the equation for each line and then
print it in a new file named (output.txt) so that each row will now contain 5 values,
first three would be a, b and c and the fourth and fifth one would be the roots of your
equation.

You might also like