Write a script le using conditional statements to evaluate the following function, assuming that the scalar variable

Question:

Write a script le 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 le to evaluate y for x = -5, x = 3, and x = 15, and check the results by hand.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: