1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
sergiy2304 [10]
3 years ago
15

Write a script (Program 2) to perform t he following matrix operations. Use output commands to clearly output each problem with

a problem description and result.
(a) Create the following three matrices: A = [ 9 3 5 /2 4 2/ 6 10 5 ] B = [ 1 4 4/ 0 9 4/ 2 6 1 ] C = [ 8 15 1/ 10 8 2/ 8 5 10 ]

(b) Calculate A + B and B + A to show that addition of matrices is commutative.

(c) Calculate A +( B + C ) and ( A + B )+ C to show that addition of matrices is associative.

(d) Calculate 8( A + C ) and 8A + 8C to show that multiplication by a scalar is distributive.

(e) Calculate A( B + C ) and AB + AC to show that matrix multiplication is distributive.

(f) Does AB = BA ?

(g) Find AT (transpose of A ).

(h) Calculate B-1 (inverse of B ).

(i) Calculate the product BB-1 .

(j) Create a 2x2 matrix consisting of the lower left elements of B .

(k) Create a row vector that is the vector sum of the first row of A and the third row of C .

(l) Calculate the dot product of the second row of B and the third column of C

Engineering
1 answer:
Simora [160]3 years ago
7 0

Find the attachments for complete solution

You might be interested in
Assume a function requires 20 lines of machine code and will be called 10 times in the main program. You can choose to implement
Volgvan

Answer:

"Macro Instruction"

Explanation:

A macro definition is a rule or pattern that specifies how a certain input sequence should be mapped to a replacement output sequence according to a defined procedure. The mapping process that instantiates a macro use into a specific sequence is known as macro expansion.

It is a series of commands and actions that can be stored and run whenever you need to perform the task. You can record or build a macro and then run it to automatically repeat that series of steps or actions.

7 0
3 years ago
A 50-lbm iron casting, initially at 700o F, is quenched in a tank filled with 2121 lbm of oil, initially at 80o F. The iron cast
insens350 [35]

Answer:

a) The final equilibrium temperature is 83.23°F

b) The entropy production within the system is 1.9 Btu/°R

Explanation:

See attached workings

8 0
3 years ago
Assign numMatches with the number of elements in userValues that equal matchValue. userValues has NUM_VALS elements. Ex: If user
Thepotemich [5.8K]

Answer:

import java.util.Scanner;

public class FindMatchValue {

  public static void main (String [] args) {

     Scanner scnr = new Scanner(System.in);

     final int NUM_VALS = 4;

     int[] userValues = new int[NUM_VALS];

     int i;

     int matchValue;

     int numMatches = -99; // Assign numMatches with 0 before your for loop

     matchValue = scnr.nextInt();

     for (i = 0; i < userValues.length; ++i) {

        userValues[i] = scnr.nextInt();

     }

     /* Your solution goes here */

         numMatches = 0;

     for (i = 0; i < userValues.length; ++i) {

        if(userValues[i] == matchValue) {

                       numMatches++;

                }

     }

     System.out.println("matchValue: " + matchValue + ", numMatches: " + numMatches);

  }

}

8 0
3 years ago
A horizontal, opaque surface at a steady-state temperature of 80°C is exposed to an airflow having a free stream temperature of
lesya692 [45]

Answer:

Check the explanation

Explanation:

Kindly check the attached images below to see the step by step explanation to the question above.

7 0
3 years ago
An inventor claims to have developed a refrigerator that at steady state requires a net power input of 1.1 horsepower to remove
Lynna [10]

Answer:

The inventor's claim is false in the sense that no thermal machine can violate the first thermodynamic law.

Explanation:

The inventor's claim could not be possible as no thermal machine can transfer more heat than the input work consumed. If we expose the thermal efficiency:

n=Q out / W in

Where Q and W both must be in the same power unit, so we will convert the remove heat from BTU/hr to hp:

12000 BTU/hr = 4.72 hp

Therefore by comparing, we notice that the removing heat of 4.75 hp is large than the delivered work of 1.11 hp. By evaluating the efficiency:

[tex]n=4.75 hp / 1.1 hp  = 4.3 > 1[/tex]

6 0
3 years ago
Other questions:
  • A large tank is filled to capacity with 500 gallons of pure water. Brine containing 2 pounds of salt per gallon is pumped into t
    15·1 answer
  • 1 kg of saturated steam at 1000 kPa is in a piston-cylinder and the massless cylinder is held in place by pins. The pins are rem
    5·1 answer
  • A resonant six-turn loop of closely spaced turns is operating at 50 MHz. The radius of the loop is λ/30, and the loop is connect
    15·1 answer
  • What is the horizontal distance from Point A to toe of slope?
    12·1 answer
  • What is the value of the energy (in Joules) stored by the mobile phone battery (capacity of 1.8 Ah), if it is rated at 3.7 V
    15·2 answers
  • The formula for the cross sectional area of specimen at the middle is
    5·1 answer
  • Which technical planning document defines support tasks?
    7·1 answer
  • Today I meant to look for my missing watch, but I could never find the time.
    9·2 answers
  • It is better to know or not to know?​
    6·2 answers
  • A student used a 500-ml graduated cylinder to measure the volume of water in a 1-cup measure. three trials of the measurement ga
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!