The classic quadratic formula says that the two roots of the quadratic equation ax2+bx+c=0 are x1,x2=(-b±√(b2-4ac). Write a function that keep solutions x1,x2 and use this function in another script file. It takes as integers to input the values of a, b, and c and solve the equation using the first function you define in step one. Finally, use this to solve the equation 8x2+4x-2=0.
1 Comment
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/665413-how-can-i-solve-this-function#comment_1165403
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/665413-how-can-i-solve-this-function#comment_1165403
Sign in to comment.