Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
EuclidianDomain.cs
1using System;
3
5{
10 {
15 : base()
16 {
17 }
18
26 {
27 if (!(Left is IEuclidianDomainElement L) || !(Right is IEuclidianDomainElement R))
28 return base.Divide(Left, Right);
29 else
30 {
31 IEuclidianDomainElement Result = this.Divide(L, R, out IEuclidianDomainElement Remainder);
32 if (Result is null || !Remainder.Equals(Remainder.AssociatedAbelianGroup.Zero))
33 return null;
34 else
35 return Result;
36 }
37 }
38
47
48 }
49}
Base class for all types of euclidian domains.
EuclidianDomain()
Base class for all types of euclidian domains.
abstract IEuclidianDomainElement Divide(IEuclidianDomainElement Left, IEuclidianDomainElement Right, out IEuclidianDomainElement Remainder)
Divides the right ring element from the left one: Left/Right
override ICommutativeRingElement Divide(ICommutativeRingElement Left, ICommutativeRingElement Right)
Divides the right ring element from the left one: Left/Right
Base class for all types of integral domains.
Basic interface for all types of commutative ring elements.
Basic interface for all types of Euclidian domain elements.
Basic interface for all types of euclidian domains.