Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

All published worksheets from http://sagenb.org

Views: 168742
Image: ubuntu2004
24*2- 3*12/4 # Just click evaluate link or click that cell and Press "Shift+Enter". This is a comment part. You can do basic arithmetic operations such +,-,* and /.
39
14144345351515115151*3434352525454252515151511515 # You can work with very big integers
48576668178873052745599937585747617406927463765
2^40 # Another example. You are about to calculate 40 th power of 2.
1099511627776
factor(156) # You can find the prime factors of an integer by the command factor
2^2 * 3 * 13
factor? # Put the cursor after ? and Press "Tab" key. Then you can see help pages about the use of the command factor.
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "_sage_input_20.py", line 9, in <module> exec compile(ur'open("___code___.py","w").write("# -*- coding: utf-8 -*-\n" + _support_.preparse_worksheet_cell(base64.b64decode("ZmFjdG9yPyAjIFB1dCB0aGUgY3Vyc29yIGFmdGVyID8gYW5kIFByZXNzICJUYWIiIGtleS4gVGhlbiB5b3UgY2FuIHNlZSBoZWxwIHBhZ2VzIGFib3V0IHRoZSB1c2Ugb2YgdGhlIGNvbW1hbmQgZmFjdG9yLg=="),globals())+"\n"); execfile(os.path.abspath("___code___.py"))' + '\n', '', 'single') File "", line 1, in <module> File "/tmp/tmpelH2Ve/___code___.py", line 2 factor? # Put the cursor after ? and Press "Tab" key. Then you can see help pages about the use of the command factor. ^ SyntaxError: invalid syntax
plot # Put the cursor after the word plot and press "Tab" key. Then you can see all sage commands starting with "plot" (Select plot3d). Then you may get help on the command, eg. plot3d to draw 3d graphs (Write plot3d? and apply steps given in the previous step.
<function plot at 0x28cc2a8>
plot(x^3,(x,-3,5)) # Just click evaluate link or click that cell and Press "Shift+Enter" to draw the graph of the function y=x^3 with interval (-3,5).
# For more information about sage, visit http://www.sagemath.org # For online tutorial, visit and study http://www.sagemath.org/doc/tutorial/index.html