30 lines
1.7 KiB
Python
30 lines
1.7 KiB
Python
︠eea7bd95-4b37-45b0-8cff-9ddc46548f53r︠
|
|
sage: x = var('x')
|
|
sage: plot(x^2-2*x+3,(x,-10,10))
|
|
︡1d373587-f9d8-4196-924a-0b599ae7b8b2︡{"file":{"filename":"/projects/79dcc751-3f6f-4455-8835-192734ea3c8b/.sage/temp/compute2-us/8821/tmp_Vcxkf3.svg","show":true,"text":null,"uuid":"fdc28a1c-e4e3-4b5c-9a73-f70fa5799b2a"},"once":false}︡{"done":true}︡︡
|
|
︠91363446-9b62-422c-a5f8-fa3fc46b403bs︠
|
|
sage: x = var('x')
|
|
sage: plot(cos(2*x),(x,-10,10),rgbcolor=(1,0,1))
|
|
︡5ddf93c5-2e53-4f5d-ae72-51534139464d︡{"file":{"filename":"/projects/79dcc751-3f6f-4455-8835-192734ea3c8b/.sage/temp/compute2-us/8821/tmp_XTzcpv.svg","show":true,"text":null,"uuid":"caf91097-be58-4e43-bbf9-de2be3ace6df"},"once":false}︡{"done":true}︡
|
|
︠3369bda5-76f8-4f9b-87f5-687de954c0a4s︠
|
|
sage: x = var('x')
|
|
sage: plot(sin(1/x),(x,-1,1),hue=0.75)
|
|
︡9fad024c-4ab6-4eed-97ef-117e1d5da4bd︡{"file":{"filename":"/projects/79dcc751-3f6f-4455-8835-192734ea3c8b/.sage/temp/compute2-us/8821/tmp_wEvCfa.svg","show":true,"text":null,"uuid":"819dc442-273e-49d7-919a-c7eeac3b28bf"},"once":false}︡{"done":true}︡
|
|
︠65b7c6aa-33ef-428c-b199-1c5497f8830fs︠
|
|
sage: x, y = var('x,y')
|
|
sage: plot3d(x^2 + y^2, (x,-2,2), (y,-2,2), adaptive=True, color=rainbow(60, 'rgbtuple'))
|
|
︡08572b73-6cae-40ac-954f-b935a8f6f41f︡{"file":{"filename":"0a58c165-0040-4e4d-bc23-24e0152840cb.sage3d","uuid":"0a58c165-0040-4e4d-bc23-24e0152840cb"}}︡{"done":true}︡
|
|
︠9cd76fd8-3eb8-4544-ab18-d46c8913943cs︠
|
|
sage: x, y = var('x,y')
|
|
sage: plot3d(x^2-y^2 + 2*x*y ^2+1, (x,-0.7,0.7), (y,-0.7,0.7), mesh=True, opacity=0)
|
|
︡5f964d16-f3e8-486f-8d3d-1b3b61ea032b︡{"file":{"filename":"bcf40ed4-fcd9-459a-b4f5-dc87dc29ae9e.sage3d","uuid":"bcf40ed4-fcd9-459a-b4f5-dc87dc29ae9e"}}︡{"done":true}︡
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|