For the function y = ((2x ^ 2 - 5x + 4) ^ 3)/(x ^ 2), calculate the value of y for the follow ing values of x-2,-1.0, 1.2.3, 4, 5 using element-by-element operations.

3 views (last 30 days)
y = ((2x ^ 2 - 5x + 4) ^ 3)/(x ^ 2)

Answers (1)

Image Analyst
Image Analyst on 25 Dec 2021
Hint:
x = [-2, -1.0, 1, 2, 3, 4, 5]
For y = ((2x ^ 2 - 5x + 4) ^ 3)/(x ^ 2) use "dot slash" and "dot caret" instead of slash and caret. and 2x needs a * between the 2 and the x.

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!