Question: = 1. Write a Matlab function that uses as input, two vectors = (ar, ay, az) and b (bx, by, bz). The function should
= 1. Write a Matlab function that uses as input, two vectors = (ar, ay, az) and b (bx, by, bz). The function should compute the scalar product d = a.b, and the cross product, c= axb by using the definitions of these operations. The function should return both quantities. Test your function with a = [5 1 -3] and b = [1 -3 4]. 2. Write a Matlab code that solves the quadratic equation ax +bx+ c = 0 for any given values of (a,b,c). If the solutions are complex numbers, the code just need to say "The roots are complex". Otherwise, both roots need to be displayed on the screen. Test your program with (a=1, b=10, c=-39).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
