CoCalc Public Filessupport / 2015-10-10-114354-nemo.sagews
Description: Jupyter notebook support/2015-06-04-141749-bokeh.ipynb
%auto
%default_mode julia

ENV["LD_LIBRARY_PATH"] = "/usr/local/share/julia/site/v0.4/Nemo/local/lib"
using Nemo

R, alpha = FiniteField(fmpz(7), 5, "alpha")

(Finite field of degree 5 over F_7,alpha)
(1 + alpha)^7

6*alpha^3+3*alpha^2+1
f = 1 + x + y + z + t
p = f^30
time q = p*(p + 1)

Error in lines 1-1 Traceback (most recent call last): File "/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/.sagemathcloud/sage_server.py", line 881, in execute exec compile(block+'\n', '', 'single') in namespace, locals File "", line 1, in <module> File "/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/.sagemathcloud/sage_server.py", line 916, in execute_with_code_decorators print code_decorator.eval(code, locals=self.namespace), File "/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/.sagemathcloud/julia.py", line 103, in eval raise RuntimeError(julia_error) RuntimeError: ERROR: syntax: extra token "q" after end of expression
R, x = CyclotomicField(20)
S = R[y]
f = (3x^7 + x^4 - 3x + 1)*y^3 + (2x^6-x^5+4x^4-x^3+x^2-1)*y +(-3x^7+2x^6-x^5+3x^3-2x^2+x)
r = f^300

Error in lines 1-1 Traceback (most recent call last): File "/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/.sagemathcloud/sage_server.py", line 881, in execute exec compile(block+'\n', '', 'single') in namespace, locals File "", line 1, in <module> File "/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/.sagemathcloud/sage_server.py", line 916, in execute_with_code_decorators print code_decorator.eval(code, locals=self.namespace), File "/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/.sagemathcloud/julia.py", line 103, in eval raise RuntimeError(julia_error) RuntimeError: ERROR: UndefVarError: f not defined