You are on page 1of 1

clc

clear
close all
warning off
%%
X=input('Please Input X: ');
'Y=X^3+3*X^2+6*X+6'
Y1=X^3;
Y2=3*X^2;
Y3=6*X+6;
Y=Y1+Y2+Y3;
%%
table(X,Y)

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Please Input X: 5

ans =

'Y=X^3+3*X^2+6*X+6'

ans =

1×2 table

X Y
_ ___

5 236

>>

You might also like