What is computational error

Assignment Help Python Programming
Reference no: EM131890317

Questions -

Q1. What is 5-norm of [[4,5,6],[6,7,8],[7,8,9]]?

23

26.39

25

Q2. What is the second derivative for sin(x)cos(x)?

-cos(2x)

-2sin(2x)

-sin(x)cos(x)

-2sin(x)cos(x)

Q3. Which on is wrong in python?

x = [1:2]

x = [1,2]

x = {1, 2}

x = (1, 2)

Q4. What is the oct value for 1111?

2127

2129

2128

2125

2124

Q5. What does integral measure?

above the curve

under the curve

on the curve

Q6. In python, which one is incorrect?

9 / 2 == 9//2

int(9.2) = 9

Q7. In python, what is the type of number 5.60?

bool

float

int

Q8. What does an integral measure?

area between the curve and y=x

area above the curve

area under the curve

some function of the curve

Q9. In Python, the def statement defines a function or method.

False

True

Q10. What is the uncertainty of the output if z =f(x)?

z= f'(x)

∂x = ∂z

∂z = f'(x)∂x

Q11. True or False: Total error = computational error + propagated data error

True

False

Q12. True of False: A problem is well posted if the solution has a continuous dependence on input data (a small change in the input causes a small change in the output)

False

True

Q13. Is it true or false that a lower triangular matrix has zeros above the diagonal elements?

True

False

Q14. When does Cholesky algorithm fail?

When the input matrix is not a positive definite.

All of the above

When the input matrix is not symmetric.

Q15. In python, what is the type of number 3?

int

float

bool

Q16. True or False: Linear algebra is the extension of elementary algebra to matrices (and vectors, which can be seen as special types of matrices)by defining the four elementary operations among them.

False

True

Q17. What is computational error?

the difference between f(x) and x

the difference between x and avg x

the difference between avg f(x) and y

the difference between avg f(x) and x

Q18. If the determinant of a matrix is zero, then it's inverse matrix is also zero.

False

True

Q19. Which expression has different value of others in python?

1 / 2 + 1 / 2

3 // 2

2 - 1

0 - -1

Q20. Which of the following expression have syntax error in python?

i++

i = i + 1

i += 1

i = 1 + 1

Q21. How do you import the entire content of a library?

import *

import +

import -

import data

Q22. Which one is False if i == 1?

before ++i, i is 2

after ++i, i is 2

Q23. Ture or False: Support vector machines try to maximize margin by solving a quadratic optimization problem.

True

False

Q24. Given a function f, we can approximate its integral by dividing its domain into n rectangles with width 1/n and height f(n). We can get better approximations for this integral by...

Increasing n.

Decreasing n.

Using trapezoids instead of rectangles and increasing n.

You cannot approximate an integral using this method.

Using trapezoids.

Q25. In Python, we can obtain a list of object attributes (including methods) for any object using the command dir.

True

False

Q26. True or False: If an inverse, A-1 exists, it is unique.

False

True

It depends on the matrix

Q27. Python supports multiple programming paradigms, including object oriented (class), imperative (def), and functional (lambda) programming.

False

True

Q28. What is the reason for systematic error?

A modeling errors (we do not know f (x))

A and B

Rounding errors (we do not implement f (x) with arbitrary precision arithmetic's).

Q29. When we take a set of observations of vectors that are possibly correlated and convert it to a set of vectors that are not correlated, the mathematical procedure is called:

Principal Component Analysis.

Curve-fitting.

Quadrature.

Golden section search.

Linear Least Squares.

Q30. Let f(x)f(x) = cos2(x)-sin2(x)cos2(x)-sin2(x). Compute ∫π/40f(x)dx∫0π/4f(x)dx.

-1/2

ππ

1/2

π/2π/2

0

Q31. A Fourier transformation uses a vector to approximate a function with a domain over a finate interval.

False

True

Q32. Which is an example of a statistical distribution of data?

Gaussian

Exponential

Binomial

Poisson

All of these.

Q33. Which is a type of algorithm used to cluster data?

Centroid-based clustering

All of these.

Distribution-based clustering

Hierarchial clustering

Q34. When converting very large, sparse matrices, the best algorithm we discussed was ___, because___.

Minimum residual algorithm; if a solution exists, the minimum residual diverges.

Minimum residual algorithm; if a solution exists, the minimum residual converges to it.

Stabilized bi-conjugate gradient method; it is slower than minimum residual with a smoother convergence.

Stabilized bi-conjugate gradient method; it is faster than minimum residual with a smoother convergence.

Gauss-Jordan elimination; this is the only practical algorithm to use.

Q35. In a geometric representation, the scalar product relates to the angle (αα) between 2 vectors:

a'b = ||a|| *||b||*tan(αα)

a'b = ||a|| *||b|| *cos(αα)

a'b = (||a|| +||b||) *(||a|| -||b||)* cos(αα)

a'b = ||a|| *||b||*sin(αα)

Q36. We can use the _____ algorithm on a _____ matrix to determine if the matrix is ________.

Linear least squares; singular; positive-definite.

Jacobi; symmetric; sparse.

Cholesky; symmetric; positive-definite.

Minimum residual; non-symmetric; sparse.

Q37. Given variable x and integers n and C, the general integral of the power function x^n is...

x^(n+C)

(x^n-1)/n+1 +C

(nx)^n-1 +C

(x^n+1)/n+1 +C

Q38. The list.append(x) is one of the method of list objects. It adds an item to the end of the list. Equivalent to:

a[len(a):] = [x]

a[:len(a)] = [x]

a[-1:] = [x]

a[len(a)] = [x]

Q39. What is the inverse of [[2,3],[7,4]]

[[-4/13, 3/13], [7/13, -2/13]]

[[7/13, 3/13], [-4/13, -2/13]]

[[-2/13, 3/13], [7/13, -4/13]]

Q40. Solve this system of linear equations:

3x+2y-z=12x-2y+4z=-2-x+1/2y-z=03x+2y-z=12x-2y+4z=-2-x+1/2y-z=0

x=-1y=-2z=-2x=-1y=-2z=-2

x=1y=-2z=-2x=1y=-2z=-2

x=-2y=22z=-2x=-2y=22z=-2

x=1y=2z=2

Reference no: EM131890317

Questions Cloud

What did you notice as a result of practicing the strategies : What did you notice as a result of practicing these strategies? What challenges did you encounter with regards to incorporating these strategies?
Produce the majority of their cellular-atp from carbohydrate : Which of the acids below causes physiologic and acid/base problems for individuals that cannot, for whatever reason, produce the majority of their cellular-ATP
Review the final project assignment overview : For this part of your Final Project Assignment, you are to provide a brief summary of the individual and the biography you selected for your Final Project.
Anatomy of the heart and the physiology of the heart : We have also been discussing cardiac physiology. Differentiate between anatomy of the heart and the physiology of the heart.
What is computational error : What is computational error? How do you import the entire content of a library? What is the reason for systematic error
Why are we seeing a reemergence of these diseases : Discuss some of the reasons behind this increase. Why are we seeing a reemergence of these diseases? Please cite the sources.
Explain the evolutionary relationship among reptiles : Briefly explain the evolutionary relationship among reptiles including birds, theropods, dinosaurs, turtles, archosaurs, lepidosaurs.
How long does it take for a bacteria to divide : How long does it take for a bacteria to divide? If there were 10 E. coli bacteria in your burrito, and you left it in your car for 3 hours.
What is the cultural or historical context of the image : What is the cultural or historical context of the image? You should record all of the activities. Some of them will become important pieces of your final draft.

Reviews

len1890317

3/7/2018 1:34:26 AM

Detailed Question: Need to answer 100 extremely easy phython multiple choice correctly. You need to make a question in exchange for 5 questions to answer. Already answer 30 correctly Need help finish the rest. True of False: A problem is well posted if the solution has a continuous dependence on input data (a small change in the input causes a small change in the output).

Write a Review

Python Programming Questions & Answers

  Development on windows and linux systems

develop a simple, data-intensive application in Python - Data Analysis of a Document Tracker

  Write python program isosceles tri equilateral tri rectangle

Write python program Isosceles Tri Equilateral Tri Rectangle, Write another "driver" script called project1.py which imports the polygon.py module, reads an input file of polygonal data and writes another file of areas and perimeters.

  The initial number for generating the sequences

Then, after the functions, read in the initial number for generating the sequences. Here, check that it is a positive integer. If it is not, give an error message and exit the program.

  Make a python program that uses the getcwd

Make a Python program that uses the getcwd() function to provide a string of the current working directory. Save the string in the variable current folder and display the value.

  Fill in the python code

Fill in the Python code to play Tic Tac Toe. I won't award points unless it runs succesfully. # Tic-Tac-Toe Game def drawBoard(board): # Draws the board using the list of numbers print(" ") print(" ",board[0]," | ",board[1]," | ", board[2]) print("--..

  Create an inheritance relationship between two classes

For this assignment you will create a simple class hierarchy. You will create an inheritance relationship between two classes -- a Friend class and a Person class - Friend will inherit Person

  1 checking for a circle on a line by itself your program

1. checking for a circle. on a line by itself your program must either print is a circle yes or is a circle no

  Write a program to that displays a table

Write a program to that displays a table of the Celsius temperatures 0 through 20 and their Fahrenheit and Kelvin equivalents

  Write a program that generates two integers

Write a program that generates two integers under 100, show them on screen, and prompts the user to enter the sum of these two integers. The program then reports true if the answer is correct, false otherwise.

  Website to inform about aspect of the local environment

ICT112 Assignment - write a Python program that generates a small web site to inform Sunshine Coast people about some aspect of the local environment or a local sustainability issue.

  Write a program that will input the name of five students

Write clearly with documentations where necessary as you write the program to solve the following problem.

  Compute the tax withholding for the employee

Compute the tax withholding for the employee by multiplying the total pay by the tax rate divided by 100. Store withholding in an appropriately-named variable.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd