Module: Math

Includes:
Hornetseye::Methods
Defined in:
docs/multiarray/lib/multiarray/complex.rb,
docs/multiarray/lib/multiarray/methods.rb,
docs/multiarray/lib/multiarray/rgb.rb

Overview

The Math module is extended with a few methods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.acos ⇒ Object

.acos_without_internalcomplex ⇒ Object

.acosh ⇒ Object

.acosh_without_internalcomplex ⇒ Object

.asin ⇒ Object

.asin_without_internalcomplex ⇒ Object

.asinh ⇒ Object

.asinh_without_internalcomplex ⇒ Object

.atan ⇒ Object

.atan2 ⇒ Object

.atan2_without_internalcomplex ⇒ Object

.atan_without_internalcomplex ⇒ Object

.atanh ⇒ Object

.atanh_without_internalcomplex ⇒ Object

.cos ⇒ Object

.cos_without_internalcomplex ⇒ Object

.cosh ⇒ Object

.cosh_without_internalcomplex ⇒ Object

.exp ⇒ Object

.exp_without_internalcomplex ⇒ Object

.log ⇒ Object

.log10 ⇒ Object

.log10_without_internalcomplex ⇒ Object

.log_without_internalcomplex ⇒ Object

.log_without_rgb ⇒ Object

.sin ⇒ Object

.sin_without_internalcomplex ⇒ Object

.sinh ⇒ Object

.sinh_without_internalcomplex ⇒ Object

.sqrt ⇒ Object

.sqrt_without_internalcomplex ⇒ Object

.sqrt_without_rgb ⇒ Object

.tan ⇒ Object

.tan_without_internalcomplex ⇒ Object

.tanh ⇒ Object

.tanh_without_internalcomplex ⇒ Object

Instance Method Details

#log_with_rgb(c) ⇒ Object



952
953
954
955
956
957
958
# File 'docs/multiarray/lib/multiarray/rgb.rb', line 952

def log_with_rgb(c)
  if c.is_a? Hornetseye::RGB
    Hornetseye::RGB.new log( c.r ), log( c.g ), log( c.b )
  else
    log_without_rgb c
  end
end

#sqrt_with_rgb(c) ⇒ Object



940
941
942
943
944
945
946
# File 'docs/multiarray/lib/multiarray/rgb.rb', line 940

def sqrt_with_rgb(c)
  if c.is_a? Hornetseye::RGB
    Hornetseye::RGB.new sqrt( c.r ), sqrt( c.g ), sqrt( c.b )
  else
    sqrt_without_rgb c
  end
end