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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Numerical Methods With Chemical Engineering Applications
Authors: Kevin D. Dorfman, Prodromos Daoutidis
1st Edition
1107135117, 978-1107135116
Students also viewed these Programming questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App