Module: MathViz::NumericOperations
- Included in:
- Numeric
- Defined in:
- lib/mathviz.rb
Overview
Namespaced extensions
Instance Method Summary collapse
-
#finite? ⇒ Boolean
Dummy defintion for all numerics.
-
#max(b) ⇒ Object
Provide in operator form.
-
#min(b) ⇒ Object
Provide in operator form.
Instance Method Details
#finite? ⇒ Boolean
Dummy defintion for all numerics. Normally only defined on things where it can possible return false.
298 299 300 |
# File 'lib/mathviz.rb', line 298 def finite? true end |
#max(b) ⇒ Object
Provide in operator form
288 289 290 |
# File 'lib/mathviz.rb', line 288 def max(b) [self, b].max end |
#min(b) ⇒ Object
Provide in operator form
293 294 295 |
# File 'lib/mathviz.rb', line 293 def min(b) [self, b].min end |