Question
Please write this in python codes(please use actual python file to write this and make a screenshot about the code without write them in txt file,thank you)
Exercise 1 Consider the orthogonal transformation matnx S and vectors à and b 0.80 0.60 0.00 0.64 s-1-0.48 0.60 a=101 b= 0.360.48 0.80 a Construct the matrx S as a numpy array and caiculate its determinant. In [ ]: b. Verify that a b is invariant under the transformation S In : C. Compute the cross product c = a × b What happens to the cross product cifa and bare transformed by S? why? In [ ]: #Hint: You might want the ·cross, function. Exercise 2 Lets try implementing and comparing a few different methods for inverting a matrix. In practice, there are many subtleties to imp numerically stable inversion routine and it is usually best to make use of those which are provided by the numenical libraries. Eve with special properties (such as sparsity, etc) there are many specialized routines with better properties. For more information, se 1. First, lets implement inversion by Cramers rule as we derived in class Fill in the following code in the function invCramers be
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Self explanatory code:

sol.py 1 import numpy as np 3 Constructing numpy array of s and vectors a and b 4 S-np.array([[0.80,0.60,0.00],[-0.48,0.

Add a comment
Know the answer?
Add Answer to:
Please write this in python codes(please use actual python file to write this and make a...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • File Encryption and Decryption chapter 9 programming exercise #3 Design and write a python program to...

    File Encryption and Decryption chapter 9 programming exercise #3 Design and write a python program to successfully complete chapter 9 programming exercise #3. File Encryption and Decryption Write a program that uses a dictionary to assign “codes” to each letter of the alphabet. For example: codes = { ‘A’ : ‘%’, ‘a’ : ‘9’, ‘B’ : ‘@’, ‘b’ : ‘#’, etc . . .} Using this example, the letter A would be assigned the symbol %, the letter a would...

  • Please use python 3 programming language Write a function that gets a string representing a file...

    Please use python 3 programming language Write a function that gets a string representing a file name and a list. The function writes the content of the list to the file. Each item in the list is written on one line. Name the function WriteList. If all goes well the function returns true, otherwise it returns false. Write another function, RandomRange that takes an integer then it returns a list of length n, where n is an integer passed as...

  • Python Please, If possible, please continue with/ use code already given File Commands: u/a Write a...

    Python Please, If possible, please continue with/ use code already given File Commands: u/a Write a function named, file_commands, that takes the name of a file as a parameter. The function processes the contents the file as follows: For file lines that begin with the letter 'a', calculate & print the integer average of the numbers on the line. For file lines that begin with the letter 'u', print the upper case format for each word following the u. Sample...

  • please use c++ please write down the input file information please add comments for some codes...

    please use c++ please write down the input file information please add comments for some codes please do not use #include <bits/stdc++.h> we did not learn it yet thank you CSIT 575-Take Home Lab #11: Arrays To learn to code, compile and run a program processing characters. Assignment Plan and code a top-down modular program utilizing ARRAYS to solve the following problem, using at least 3 functions (called from the main() section or from another function) to solve the problem....

  • in python please PROBLEM : (15 POINTS Use the file 'presidents age, txt You can download...

    in python please PROBLEM : (15 POINTS Use the file 'presidents age, txt You can download this file from D2L (Content' tab) to your lo computer This file contains the age (at the time of their inaguration) of the first 45 presidents (including repeats). Each president's name is separated from his age by a comma Write a function called getAges (). Inside this function, create a dictionary in which every key is the name, and the value is the president's...

  • Python Assignment In this assignment, you will use Pandas library to perform analysis on the dataset stored in the following csv file: breast-cancer-wisconsin.csv. Please write script(s) to do the fol...

    Python Assignment In this assignment, you will use Pandas library to perform analysis on the dataset stored in the following csv file: breast-cancer-wisconsin.csv. Please write script(s) to do the following: 1. Read the csv file and covert the dataset into a DataFrame object. 2. Persist the dataset into a SQL table and a JASON file. • Write the content of the DataFrame object into an SQLite database table. This will convert the dataset into a SQL table format. You can...

  • Python code file PLEASE!! b.) Write a program that uses FSOLVEO to solve the Rolling Wheel...

    Python code file PLEASE!! b.) Write a program that uses FSOLVEO to solve the Rolling Wheel Dynamics – impending slip problem shown on Canvas. You MUST use the "args” feature of Fsolve to communicate the wheel parameters. Use all of the wheel parameters posted, except for the static coefficient of friction and the ramp-angle . Generate a plot of ramp- angle vs coefficient of friction for impending slip, for friction values of 0.1, 0.15,0.2, 0.25, up to 0.85. 17-94. The...

  • Please use Python def findSubstrings(s):     # Write your code here Consider a string, s = "abc"....

    Please use Python def findSubstrings(s):     # Write your code here Consider a string, s = "abc". An alphabetically-ordered sequence of substrings of s would be {"a", "ab", "abc", "b", "bc", "c"}. If the sequence is reduced to only those substrings that start with a vowel and end with a consonant, the result is {"ab", "abc"}. The alphabetically first element in this reduced list is "ab", and the alphabetically last element is "abc". As a reminder: • Vowels: a, e, i,...

  • Please write the python functions Problem: Electric wire (Figure is a cylindrical conductor covered by an...

    Please write the python functions Problem: Electric wire (Figure is a cylindrical conductor covered by an insulating material. Figure 2 shows the structure ofa single conductor. The resistance of a piece ofwire is given by the formula: A d where ρ is the resistivity of the conductor, and I (in meter), A, and d (in meter) are the length, cross-sectional area, and diameter of the wire. The wire diameter, d, is commonly specified by the American Wire Gauge (AWG). Which...

  • how to make my code of python work probely my q is how to write a...

    how to make my code of python work probely my q is how to write a code to find the average actual water level, average error by using python and my program should be flexible where user can select the column no. If you can see in the main program, it asked which column to know the maximum or average, the column number is passed to the function. The function should look which column to do. #THIS PROGRAMMING IS ABLE...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT