수학 과제 2

187 days ago by ehdgns0929

var('x') f(x)=x^3-4*x^2+3 plot(f(x), (x, -1, 3)) 
       
df(x)=diff(f(x), x) df(x) 
       
3*x^2 - 8*x
3*x^2 - 8*x
solve(df(x)==0, x) 
       
[x == (8/3), x == 0]
[x == (8/3), x == 0]
print f(-1), f(8/3), f(0), f(3) 
       
-2 -175/27 3 -6
-2 -175/27 3 -6