tbmx 0.5.5 → 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tbmx.rb +7 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2ccb9cbb7c49767890fcf8779fba34b5c474ee1e
4
- data.tar.gz: 1e9afa2a780a42f198721915935fb96eeeb20659
3
+ metadata.gz: d89e3bd39dba70ab3ce7af1af18e48b2f4d06a33
4
+ data.tar.gz: f7ee5cfed9a1e044eeb76712d25896e82811f4c2
5
5
  SHA512:
6
- metadata.gz: db5e4c90cdb5cd751d69f686dfa0b8b706c7d84124daebe3cd7412ea44f94806e1cbba12017567ed284731c07ca9b3c578345460b7b858a6787a70222733fae5
7
- data.tar.gz: 04534bafc9f28aeb7fadc7892872ee4a58afa41c85597bf0f9b5dcc24453c6eb56e0d8150ecae564bdca000ec4b0e88ea79da10c5f1772290aca9a38cd3dc41f
6
+ metadata.gz: 6d61136a46793f9d21f566cc67ad34061fffcfd3d11c411a2ca5f094f5c3f9f46d976c3c3f3c4be8d052e39c485ee64faf06395a4482c6850a2196a8b11c607f
7
+ data.tar.gz: 23561dd854f251ca25f08844326a7af0cceef915c94232d161bf80c65f81ea6bf1177ca71a862523dbded4e5015a5aa4990580579ed532ebc27f669731862d03
data/lib/tbmx.rb CHANGED
@@ -49,6 +49,10 @@ module TBMX
49
49
  degrees * Math::PI / 180.0
50
50
  end
51
51
 
52
+ def lgamma n
53
+ Math::lgamma(n).first
54
+ end
55
+
52
56
  def radians2degrees radians
53
57
  radians * 180.0 / Math::PI
54
58
  end
@@ -332,7 +336,7 @@ module TBMX
332
336
  "sinh", "cosh", "tanh",
333
337
  "asinh", "acosh", "atanh",
334
338
  "erf", "erfc",
335
- "gamma", "lgamma",
339
+ "gamma",
336
340
  "log10", "log2",
337
341
  "sqrt"
338
342
  math_function_handler command.word.to_sym
@@ -340,6 +344,8 @@ module TBMX
340
344
  MathFunctions::degrees2radians number_from_expression
341
345
  when "r2d", "rad->deg", "radians->degrees"
342
346
  MathFunctions::radians2degrees number_from_expression
347
+ when "lgamma"
348
+ MathFunctions::lgamma number_from_expression
343
349
  when "log"
344
350
  base, number = numbers_from_expressions
345
351
  if number.nil?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tbmx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Mark Gore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-21 00:00:00.000000000 Z
11
+ date: 2015-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport