AndradeGonzalez-wp2017/08/Solutions #08/Tasks #08.sagews
2017-11-21 21:10:28 +00:00

37 lines
2.2 KiB
Python

f2666ea2-b9b8-417c-82c0-6cd5a1d853des
'''x\mapsto x^2-2x+3'''
f = x^2-2*x+3
plot(f, -6, 6, color='red')
5763592a-05af-4d73-ac1d-2426a4fd2d08{"stdout":"'x\\\\mapsto x^2-2x+3'\n"}{"file":{"filename":"/home/user/.sage/temp/project-e095c894-8a52-4822-8f54-d822f5699f06/140/tmp_h2nJgu.svg","show":true,"text":null,"uuid":"2a588005-b84d-44ad-a51c-9f54ae16c18f"},"once":false}{"done":true}
cab68ee0-3901-4b5c-9a0f-5c961b1bd583s
'''x \ mapsto \ cos 2x'''
f2 = cos(2*x)
plot(f2, -6, 6, color='blue')
4d44eabb-625f-4534-a134-79278a395dff{"stdout":"'x \\\\ mapsto \\\\ cos 2x'\n"}{"file":{"filename":"/home/user/.sage/temp/project-e095c894-8a52-4822-8f54-d822f5699f06/140/tmp_aJljiX.svg","show":true,"text":null,"uuid":"0af26589-5a0d-4c55-8fbd-3bbe68e80fdd"},"once":false}{"done":true}
a75b767a-7552-42c7-9f19-7d9c5a35c32fs
'''x \ mapsto \ sin \ tfrac {1} {x}'''
f3 = sin(1/x)
plot(f2, color='green')
8f2cdde1-4f43-4d04-a7a4-54f2b65888c6{"stdout":"'x \\\\ mapsto \\\\ sin \\\\ tfrac {1} {x}'\n"}{"file":{"filename":"/home/user/.sage/temp/project-e095c894-8a52-4822-8f54-d822f5699f06/140/tmp_1dtVYJ.svg","show":true,"text":null,"uuid":"fb24fad5-30ce-4e46-999a-8fe835c6e314"},"once":false}{"done":true}
05c55495-3f11-485b-a4bd-06081835689fs
''' (x, y) \ mapsto x ^ 2 + y ^ 2 '''
var('x,y')
f4= x^2 +y^2
contour_plot(f4, (x,-1,1), (y,-1,1))
454ba1cf-d584-458f-9cc9-d9bc2d34e1bb{"stdout":"' (x, y) \\\\ mapsto x ^ 2 + y ^ 2 '\n"}{"stdout":"(x, y)\n"}{"file":{"filename":"/home/user/.sage/temp/project-e095c894-8a52-4822-8f54-d822f5699f06/140/tmp_b1dx4m.svg","show":true,"text":null,"uuid":"ac5f18ad-00e5-40f4-97da-f76aec164206"},"once":false}{"done":true}
92247166-3a53-42a7-82e4-ea8f50e8cad7s
''' (x, y) \ mapsto x ^ 2-y ^ 2 + 2 x y ^ 2 + 1 '''
var('x,y')
f5= x^2 - y^2 + 2*x*y^2 + 1
contour_plot(f5, (x,-1,1), (y,-1,1))
9079dc41-877a-4df3-ab08-438255d15a8f{"stdout":"' (x, y) \\\\ mapsto x ^ 2-y ^ 2 + 2 x y ^ 2 + 1 '\n"}{"stdout":"(x, y)\n"}{"file":{"filename":"/home/user/.sage/temp/project-e095c894-8a52-4822-8f54-d822f5699f06/140/tmp_N0d1kr.svg","show":true,"text":null,"uuid":"e700594c-7e2b-4cd0-833a-7152f40e36a2"},"once":false}{"done":true}