Write a scheme function called tan-value which consumes


This question is for DrRacket program:

Write a Scheme function called tan-value which consumes one integer, degrees, in the range between -180 and 180 (inclusive) and will produce a symbol indicating what type of value the trigonometry tangent function produces given the angle specified by degrees. You do not require the use of the tan function in Scheme. 

Instead, you can use the following rules: 
• if degrees is an integer multiple of 180 (i.e., 0, 180 or -180), then the function should produce 'zero 
• if degrees is an integer multiple of 90 but not a multiple of 180 (i.e., 90 or -90), then the function should produce 'undefined 
• if 0 < degrees < 90 or -180 < degrees < -90, then the function should produce 'positive
• in all other case (-90 < degrees < 0 or 90 < degrees < 180), then the function should produce 'negative. For example, (tan-value 90) => 'undefined and (tan-value 120) => 'negative.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Write a scheme function called tan-value which consumes
Reference No:- TGS088964

Expected delivery within 24 Hours