Write a script file using conditional statements to evaluate the following function, assuming that the scalar variable x has a value. The function is y = ex+1 for x<−1, y = 2 + cos(π x) for −1 ≤ x<5, and y = 10(x − 5) + 1 for x ≥ 5. Use your file to evaluate y for x = −5, x = 3, and x = 15, and check the results by hand.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.