Evaluate the expression 𝑦 = 4𝑥3 + 6𝑥2 + 𝑥 + 1 using MATLAB for 𝑥 = 2.

2 views (last 30 days)
Evaluate the expression 𝑦 = 4𝑥3 + 6𝑥2 + 𝑥 + 1 using MATLABfor 𝑥 = 2.

Accepted Answer

MEET SHAH
MEET SHAH on 17 Apr 2022
Code:
x = 2;
y = 4*x^3 + 6*x^2 + x + 1;
Output:
x = 2
y = 59

More Answers (1)

Sam Chak
Sam Chak on 17 Apr 2022
This is very strictly based how you displayed the equation.
x = 2;
y = 4*x*3 + 6*x*2 + x + 1
Mostly likely you just simply copied/pasted without formatting it. Anyhow, please check and come back

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Products


Release

R2007b

Community Treasure Hunt

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

Start Hunting!