CoCalc -- Collaborative Calculation in the Cloud
Sharedsupport / 2018-05-02-nemo.ipynbOpen in CoCalc

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.)

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
R = ResidueRing(ZZ, 6)
Integers modulo 6
a = R(5)
5
b = R(7)
1
c = a*b
5
c/a
MethodError: no method matching /(::Nemo.nmod, ::Nemo.nmod) Stacktrace: [1] include_string(::String, ::String) at ./loading.jl:522
c/b
MethodError: no method matching /(::Nemo.nmod, ::Nemo.nmod) Stacktrace: [1] include_string(::String, ::String) at ./loading.jl:522