Answered step by step
Verified Expert Solution
Question
1 Approved Answer
rite Scheme function that returns the number of zeros, naeros n given simple list of numbers. 2- (5 pts) Write a Scheme function, maxminlist, that
rite Scheme function that returns the number of zeros, naeros n given simple list of numbers. 2- (5 pts) Write a Scheme function, maxminlist, that takes a simple list of numbers as a parameter and returns a list with the largest and smallest numbers in the input list. 3- (10 pts) Write a Scheme function, quadroots, that computes the real roots of a given quadratic equation. If the roots are complex, the function must display a message indicating that (must use an IF function). The three parameters to the function are the three coefficients (a, b, and c) of the quadratic equation ax2 bx c. Recall that the real roots of the quadratic equation are: root1: (-b + vb2 - 4ac) /2a root2: (-b - /b2- 4ac) /2a
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 Started