Class: ECC::IntegerOp
- Inherits:
-
Object
- Object
- ECC::IntegerOp
- Defined in:
- lib/elliptic-lite/base.rb
Overview
change to IntegerFieldOp or such - why? why not?
Class Method Summary collapse
- .add(a, b) ⇒ Object
- .div(a, b) ⇒ Object
- .mul(a, b) ⇒ Object
- .pow(a, exponent) ⇒ Object
- .sub(a, b) ⇒ Object
Class Method Details
.add(a, b) ⇒ Object
14 |
# File 'lib/elliptic-lite/base.rb', line 14 def self.add( a, b ) a + b; end |
.div(a, b) ⇒ Object
18 |
# File 'lib/elliptic-lite/base.rb', line 18 def self.div( a, b ) a / b; end |
.mul(a, b) ⇒ Object
16 |
# File 'lib/elliptic-lite/base.rb', line 16 def self.mul( a, b ) a * b; end |
.pow(a, exponent) ⇒ Object
17 |
# File 'lib/elliptic-lite/base.rb', line 17 def self.pow( a, exponent ) a.pow( exponent ); end |
.sub(a, b) ⇒ Object
15 |
# File 'lib/elliptic-lite/base.rb', line 15 def self.sub( a, b ) a - b; end |