From 8d35070c9ad258599e87a9f65252ae42c0a34d92 Mon Sep 17 00:00:00 2001 From: Maria Nowaczyk Date: Wed, 30 Jan 2019 11:16:07 +0100 Subject: [PATCH] sage math --- 2019-01-30-101148.sagews | 90 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 2019-01-30-101148.sagews diff --git a/2019-01-30-101148.sagews b/2019-01-30-101148.sagews new file mode 100644 index 0000000..8a3c34b --- /dev/null +++ b/2019-01-30-101148.sagews @@ -0,0 +1,90 @@ +︠0b21512f-449f-4bfa-8f19-cf37775c11c7︠ +#Zad.1 +rownanie = x+2== 3*x -5 +solve(rownanie,x) +︡5d92e14e-2815-48d8-bb3a-c912931a8147︡{"stdout":"[x == (7/2)]\n"}︡{"done":true} +︠f6f55521-4f15-482a-b86f-b6ee9633785bs︠ +#Zad.2 +rownanie= x^2 + 3*x - 1== 0 +solve(rownanie,x) +︡2fbdd029-3790-4ab8-ab13-5a99f0038965︡{"stdout":"[x == -1/2*sqrt(13) - 3/2, x == 1/2*sqrt(13) - 3/2]"}︡{"stdout":"\n"}︡{"done":true} +︠e988a1b2-b160-4e28-8f9c-48019b98f535s︠ + +#zad.3 +rownanie= 3^x*(x^2 -4)==0 +solve(rownanie,x) +︡89c3c5e1-b37f-42da-819c-54a32b3367f8︡{"stdout":"[x == -2, x == 2]\n"}︡{"done":true} +︠42db8df9-a569-48b2-a9ff-2c8e66a86566s︠ + + + +var('x,y') +solve([5*x + 2*y == 4, x - 4*y== -2], x,y) +︡6baf20fe-7d0f-4a03-bae8-c9c42157437d︡{"stdout":"(x, y)\n"}︡{"stdout":"[[x == (6/11), y == (7/11)]]\n"}︡{"done":true} +︠6c47a0f5-0d71-425b-a802-1c4322e4bb44︠ + +︡c184d17c-323e-44eb-ba6a-d875d93948ac︡ +︠b1501f3f-48e4-4ece-9f25-637bc23e5027︠ + +︡8126f8ef-c597-4660-a16d-5f6db66385b3︡ +︠0a06f984-fb6a-421f-954d-05c441e27910︠ + +︡07691262-55c6-4ee3-8aae-0bf8e11a5ba9︡ +︠dbca3f6e-eaf1-4e59-8ff9-5b988c6d9093︠ + +︡f3e78844-235d-405d-9c74-dfad5074f50b︡ +︠878a12e5-526a-489a-a1fe-35ce53ff7aed︠ + +︡7d225bec-1af5-480e-827b-85fac66c1003︡ +︠cf707da2-1d26-453c-a845-bf664f64520d︠ + +︡ab072e22-1644-4268-a649-04c12f1f0813︡ +︠8a747b5e-89f3-4557-81a7-a7777e676413s︠ + + +P= implicit_plot((5*x+2*y==4), (x,-2,2), (y,-2,2), color="red") +G= implicit_plot((x-4*y==-2), (x,-2,2), (y,-2,2), color="blue") +PG= points(([(6/11,7/11)]), size=15, color='green', figsize=4) + +PG +P+G + + + +︡7bf295a3-e15e-4fb4-be6c-547637aa0f17︡{"file":{"filename":"/home/user/.sage/temp/project-2bf7d871-d296-4bb7-ac3c-80e0ceafd3ef/119/tmp_uav0_W.svg","show":true,"text":null,"uuid":"67de6591-8ac9-487f-98dd-1f12d0fa9a24"},"once":false}︡{"done":true} +︠1143c187-539b-404e-a481-4d378563b962s︠ +︡add1fe35-8be2-4be7-a8ec-d8ec022c9920︡{"done":true} +︠e1d81e76-18ae-4c0b-94f8-2b2e08c06390s︠ + + + + +var('x,y') +solve([x^2 + 2*x + y^2 - 4*x== 20, 2*x - y ==0], x, y) +︡74e0206e-e179-4f3c-9e14-426158bdfb85︡{"stdout":"(x, y)\n"}︡{"stdout":"[[x == -1/5*sqrt(101) + 1/5, y == -2/5*sqrt(101) + 2/5], [x == 1/5*sqrt(101) + 1/5, y == 2/5*sqrt(101) + 2/5]]\n"}︡{"done":true} +︠029ae22d-6e11-41b8-9e9b-dfe8f5cbf53e︠ + +︡5d45b032-8a78-4594-b4ed-ba04cd51a32c︡ +︠5c429b12-7d84-4a9c-99aa-4baeeacdf55cs︠ + + + +P= implicit_plot((x^2 + 2*x + y^2 - 4*x== 20), (x,-8,8), (y,-8,8), color="red") +G= implicit_plot((2*x - y ==0), (x,-8,8), (y,-8,8), color="blue") +S= points(([(-1/5*sqrt(101) + 1/5,-2/5*sqrt(101) + 2/5)]), size=15, color='green', figsize=4) +PG= points(([(1/5*sqrt(101) + 1/5,2/5*sqrt(101) + 2/5)]), size=15, color='green', figsize=4) +PG+P+G +P+G+S + +︡7375edd5-eb8e-49fd-98ed-7337cac62048︡{"file":{"filename":"/home/user/.sage/temp/project-2bf7d871-d296-4bb7-ac3c-80e0ceafd3ef/119/tmp_KrSx1k.svg","show":true,"text":null,"uuid":"ed66ef2c-c1f0-4b02-9968-8fed2e406f2a"},"once":false}︡{"file":{"filename":"/home/user/.sage/temp/project-2bf7d871-d296-4bb7-ac3c-80e0ceafd3ef/119/tmp_QdWcsR.svg","show":true,"text":null,"uuid":"7c06f140-8e8e-4044-9024-8da01502657e"},"once":false}︡{"done":true} +︠6e236cf7-56d3-4cff-b50d-fafc1f470260s︠ + +︡7b57c0e4-e233-4c2c-b2f6-06db72eb8c42︡{"done":true} + + + + + + + + +