과제'

1154 days 전, hcm8345 작성

var('x') f(x)=-4*x^2+4*x v(x)=-4*x+4 p1=plot(f(x), (x, 0, 5)) p2=plot(v(x), (x, 0, 5), color='red') show(p1+p2) 
       
 
       
-8*x + 4
-8*x + 4
var('x') f(x)=8*x^2+7*x v(x)=diff(f(x), x) print "v(x)=", v(x) 
       
v(x)= 16*x + 7
v(x)= 16*x + 7
 
       
Traceback (click to the left of this block for traceback)
...
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "_sage_input_25.py", line 10, in <module>
    exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("dmFyKCd4JykKCnBsb3Qoc2luKHNpbih4KSwgKHgsLTIsMiksIHhtYXg9MiwgeG1pbj0tMik="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
  File "", line 1, in <module>
    
  File "/tmp/tmpdgvUE7/___code___.py", line 6
    
                                                                                                   ^
SyntaxError: invalid syntax