Sharedsupport / 2018-05-02-nemo.ipynbOpen in CoCalc
Author: William A. Stein
License: GNU General Public License v3.0
Description: Examples for support purposes.

Illustration of how NEMO does not implement / at all for the integers modulo NN for a sage-devel discussion...

(This uses the Julia kernel.)

In [1]:
using Nemo
Welcome to Nemo version 0.7.3
WARNING: Compat.UTF8String is deprecated, use String instead. likely near /ext/julia/julia/share/julia/site/v0.6/IJulia/src/kernel.jl:31 WARNING: Compat.UTF8String is deprecated, use String instead. likely near /ext/julia/julia/share/julia/site/v0.6/IJulia/src/kernel.jl:31 WARNING: Compat.UTF8String is deprecated, use String instead. likely near /ext/julia/julia/share/julia/site/v0.6/IJulia/src/kernel.jl:31 WARNING: Compat.UTF8String is deprecated, use String instead. likely near /ext/julia/julia/share/julia/site/v0.6/IJulia/src/kernel.jl:31 WARNING: Compat.UTF8String is deprecated, use String instead. likely near /ext/julia/julia/share/julia/site/v0.6/IJulia/src/kernel.jl:31
Nemo comes with absolutely no warranty whatsoever
In [3]:
R = ResidueRing(ZZ, 6)
Integers modulo 6
In [4]:
a = R(5)
5
In [5]:
b = R(7)
1
In [6]:
c = a*b
5
In [7]:
c/a
MethodError: no method matching /(::Nemo.nmod, ::Nemo.nmod) Stacktrace: [1] include_string(::String, ::String) at ./loading.jl:522
In [8]:
c/b
MethodError: no method matching /(::Nemo.nmod, ::Nemo.nmod) Stacktrace: [1] include_string(::String, ::String) at ./loading.jl:522
In [ ]: