Question: a) Explain what the following SCHEME function does and express the expression in infix form or mathematical form. [1] (define (find-1-solution a b) (list (/(b)(2a))))

 a) Explain what the following SCHEME function does and express the

expression in infix form or mathematical form. [1] (define (find-1-solution a b)

a) Explain what the following SCHEME function does and express the expression in infix form or mathematical form. [1] (define (find-1-solution a b) (list (/(b)(2a)))) (5 marks) b) Explain what the following SCHEME function does and express the expressions in infix form or mathematical form. [2] (define (find-2-solution a b c) (list (/(+(b)(sqrt((b b )(4 a c))))(2a)) (/((b)(sqrt((b b) (4ac))))(2a)))) c) Define a function using SCHEME or any other Functional Programming language for the following:- The function can be named as solve-quadratic-equation that get three (3) parameters a,b and c. The function will check and call the above function in i) or ii) depending on the following conditions: If (b24ac)=0, then call the function find-1-solution. If (b24ac)>0, then call the function find-2-solution. If (b24ac)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!