AndradeGonzalez-wp2017/07/Solutions #07/find/#7find.sagews

45 lines
1.5 KiB
Plaintext
Raw Permalink Normal View History

2017-11-21 17:11:50 +01:00
︠7da9dd50-195a-43cc-90a1-037822973175︠
'''\int x\sin x dx'''
d1=diff(x * sin(x))
d1
︡85886fbc-74b8-4e7f-bad8-35518bcbcee1︡{"stdout":"' ++ \\\\int x\\\\sin x dx'\n"}︡{"stdout":"x*cos(x) + sin(x)\n"}︡{"done":true}︡
︠59439dbf-8b8e-49fd-a87e-4d85a5216966s︠
''' \int_{-2}^{4} e^{1/x^2}dx '''
d2=diff((-2)^4 * e^(1/x^2))
d2
︡05cf1eb5-78ac-4f65-8f23-b887a6f0be89︡{"stdout":"' \\\\int_{-2}^{4} e^{1/x^2}dx '\n"}︡{"stdout":"-32*e^(x^(-2))/x^3\n"}︡{"done":true}︡
︠8755e592-fb1b-427a-83eb-83ff91296773s︠
'''sqrt{x^2\sin x+2}'''
d3=diff(sqrt(x^2)*sin(x+2))
d3
︡4c40387c-184c-4dfd-89fb-b5fd2890cd3a︡{"stdout":"'sqrt{x^2\\\\sin x+2}'\n"}︡{"stdout":"sqrt(x^2)*cos(x + 2) + x*sin(x + 2)/sqrt(x^2)\n"}︡{"done":true}︡
︠fb1fcc84-7716-4ae9-bbec-4fb92f577397s︠
'''((x e^{\cos x})^{3})'''
d4=diff((x*e^(cos(x)))^3)
d4
︡bc405c26-7e4f-4785-b13b-d3c33cd8e513︡{"stdout":"'((x e^{\\\\cos x})^{3})'\n"}︡{"stdout":"-3*x^3*e^(3*cos(x))*sin(x) + 3*x^2*e^(3*cos(x))\n"}︡{"done":true}︡
︠f4e709b8-fba0-4634-9eb8-48721d6cfcf4s︠
'''partial derivative of f(x,y)=x^2+\sin (xy)-y for y'''
x,y = var('x,y')
f1 =(x^(2)+sin(x*y)-y)
'''funcion f1:'''
f1
''' dx: '''
f1.diff(x)
''' dy: '''
f1.diff(y)
︡cefb1595-6130-4d72-8c8a-751bdee4c7c9︡{"stdout":"'partial derivative of f(x,y)=x^2+\\\\sin (xy)-y for y'\n"}︡{"stdout":"'funcion f1:'\n"}︡{"stdout":"x^2 - y + sin(x*y)\n"}︡{"stdout":"' dx: '\n"}︡{"stdout":"y*cos(x*y) + 2*x\n"}︡{"stdout":"' dy: '\n"}︡{"stdout":"x*cos(x*y) - 1\n"}︡{"done":true}︡