subject

1. Create a Python program that does the following from inputting vectors v and w. Use functions in the process.
a. The program should determine if the two vectors have the same dimension. If it does, the program will proceed. Otherwise, the program will ask the user to correct the mistake.
b. The program should output (v and wl.
c. The program should output the unit vectors in the same direction as v and w.
d. If the dimensions match, the program will output v +w.
e. If the dimensions match, the program will output v - w.
f. If the dimensions match, the program will output 2v.
g. If the dimensions match, the program will output 3w.
h. If the dimensions match, the program will output 3v – 2w.
i. If the dimensions match, the program will output v. w.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 15:30
Communication is the exchange of information. true or false?
Answers: 1
question
Computers and Technology, 23.06.2019 01:20
Write a function balancechemical to balance chemical reactions by solving a linear set of equations. the inputs arguments are: reagents: symbols of reagents in string row array products: symbols of products in string row array elements: elements in the reaction in string row array elcmpreag: elemental composition of reactants in two dimensional numeric array elcmpprdcts: elemental composition of prducts in two dimensional numeric array hint: the first part of the problem is setting up the set of linear equations that should be solve. the second part of the problem is to find the integers from the solution. one way to do this is to mulitiply the rational basis for the nullspace by increasing larger integers until both the left-and right-side integers exist. for example, for the reaction that involves reacting with to produce and : reagents=["ch4", "o2"]; products =["co2", "h2o"]; elements =["c","h", "o"] elcmpreag=[1,4,0;
Answers: 3
question
Computers and Technology, 23.06.2019 08:30
Helen's credit card has an apr of 15.32% and a grace period of 17 days and helen pays her balance in the full every month. if her last billing cycle ended on september 26, 2009, and she made her payment on october 11, 2009, did she owe any interest on her last statement's balance?
Answers: 3
question
Computers and Technology, 24.06.2019 02:10
Which sentences describe the things you need to ensure while creating a sketch and a drawing? while an artistic or creative drawing is a creative expression, a technical drawing is an informative expression. you need to create accurate and neat drawings to convey accurate information. a technical drawing clearly conveys its meaning or information, and does not leave room for interpretation maintain a good speed while creating drawings
Answers: 1
You know the right answer?
1. Create a Python program that does the following from inputting vectors v and w. Use functions in...
Questions
question
Mathematics, 15.11.2021 01:00
question
Mathematics, 15.11.2021 01:00
question
English, 15.11.2021 01:00
question
Biology, 15.11.2021 01:00
question
Mathematics, 15.11.2021 01:00