tbmx 0.5.5 → 0.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/tbmx.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d89e3bd39dba70ab3ce7af1af18e48b2f4d06a33
|
|
4
|
+
data.tar.gz: f7ee5cfed9a1e044eeb76712d25896e82811f4c2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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",
|
|
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.
|
|
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-
|
|
11
|
+
date: 2015-08-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|