Uncategorized
ENG 112 cod for SCILAB
Write a Scilab script named HW6_Prob_01.sce, that will calculate the following:
Take in two vectors (A and B) of size 1×3 and calculate the resultant vector
from the X, Y and Z coordinates of the two vectors
Have the user input the force vector A in the format of [X, Y, Z] in units of
Newtons.
Have the user input the force vector B in the format of [X, Y, Z] in units of
Newtons.
Calculate the resultant force vector by adding the vectors A & B
Output the resultant force vector in units of Newtons.
Calculate the magnitude of the resultant vector using the equation below:
F = [X, Y, Z]
Output the magnitude of the resultant force vector in units of Newtons.