Skip to content

Commit e86d27a

Browse files
committed
Remplace Math-Number-Extension by the right package
1 parent 358678e commit e86d27a

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

src/Math-Numbers-Extensions/Float.extension.st renamed to src/Math-Number-Extensions/Float.extension.st

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Extension { #name : #Float }
22

3-
{ #category : #'*Math-Numbers-Extensions-mathematical functions' }
3+
{ #category : #'*Math-Number-Extensions-mathematical functions' }
44
Float >> arCosh [
55
"Answer receiver's area hyperbolic cosine.
66
That is the inverse function of cosh."
@@ -13,7 +13,7 @@ Float >> arCosh [
1313
ifFalse: [((self squared - 1) sqrt + self) ln]
1414
]
1515

16-
{ #category : #'*Math-Numbers-Extensions-mathematical functions' }
16+
{ #category : #'*Math-Number-Extensions-mathematical functions' }
1717
Float >> arSinh [
1818
"Answer receiver's area hyperbolic sine.
1919
That is the inverse function of sinh."
@@ -24,7 +24,7 @@ Float >> arSinh [
2424
ifFalse: [((self squared + 1) sqrt + self) ln]
2525
]
2626

27-
{ #category : #'*Math-Numbers-Extensions-mathematical functions' }
27+
{ #category : #'*Math-Number-Extensions-mathematical functions' }
2828
Float >> arTanh [
2929
"Answer receiver's area hyperbolic tangent.
3030
That is the inverse function of tanh."
@@ -37,7 +37,7 @@ Float >> arTanh [
3737
^((1 + self) / (1 - self)) ln / 2
3838
]
3939

40-
{ #category : #'*Math-Numbers-Extensions-mathematical functions' }
40+
{ #category : #'*Math-Number-Extensions-mathematical functions' }
4141
Float >> cosh [
4242
"Answer receivers hyperbolic cosine."
4343

@@ -46,7 +46,7 @@ Float >> cosh [
4646
^(ex + ex reciprocal) / 2
4747
]
4848

49-
{ #category : #'*Math-Numbers-Extensions-mathematical functions' }
49+
{ #category : #'*Math-Number-Extensions-mathematical functions' }
5050
Float >> sinh [
5151
"Answer receivers hyperbolic sine"
5252

@@ -55,7 +55,7 @@ Float >> sinh [
5555
^(ex - ex reciprocal) / 2
5656
]
5757

58-
{ #category : #'*Math-Numbers-Extensions-mathematical functions' }
58+
{ #category : #'*Math-Number-Extensions-mathematical functions' }
5959
Float >> tanh [
6060
"Answer hyperbolic tangent of receiver.
6161
Trivial implementation is:

src/Math-Numbers-Extensions/Number.extension.st renamed to src/Math-Number-Extensions/Number.extension.st

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
Extension { #name : #Number }
22

3-
{ #category : #'*Math-Numbers-Extensions-mathematical functions' }
3+
{ #category : #'*Math-Number-Extensions-mathematical functions' }
44
Number >> arCosh [
55
"Answer receiver's area hyperbolic cosine.
66
That is the inverse function of cosh."
77

88
^self asFloat arCosh
99
]
1010

11-
{ #category : #'*Math-Numbers-Extensions-mathematical functions' }
11+
{ #category : #'*Math-Number-Extensions-mathematical functions' }
1212
Number >> arSinh [
1313
"Answer receiver's area hyperbolic sine.
1414
That is the inverse function of sinh."
1515

1616
^self asFloat arSinh
1717
]
1818

19-
{ #category : #'*Math-Numbers-Extensions-mathematical functions' }
19+
{ #category : #'*Math-Number-Extensions-mathematical functions' }
2020
Number >> arTanh [
2121
"Answer receiver's area hyperbolic tangent.
2222
That is the inverse function of tanh."
2323

2424
^self asFloat arTanh
2525
]
2626

27-
{ #category : #'*Math-Numbers-Extensions-mathematical functions' }
27+
{ #category : #'*Math-Number-Extensions-mathematical functions' }
2828
Number >> cosh [
2929
"Answer receivers hyperbolic cosine."
3030

3131
^self asFloat cosh
3232
]
3333

34-
{ #category : #'*Math-Numbers-Extensions-mathematical functions' }
34+
{ #category : #'*Math-Number-Extensions-mathematical functions' }
3535
Number >> sinc [
3636
"Answer receivers cardinal sine."
3737

@@ -40,14 +40,14 @@ Number >> sinc [
4040
ifFalse: [self sin / self]
4141
]
4242

43-
{ #category : #'*Math-Numbers-Extensions-mathematical functions' }
43+
{ #category : #'*Math-Number-Extensions-mathematical functions' }
4444
Number >> sinh [
4545
"Answer receivers hyperbolic sine"
4646

4747
^self asFloat sinh
4848
]
4949

50-
{ #category : #'*Math-Numbers-Extensions-mathematical functions' }
50+
{ #category : #'*Math-Number-Extensions-mathematical functions' }
5151
Number >> tanh [
5252
"Answer receivers hyperbolic tangent"
5353

src/Math-Numbers-Extensions/NumbersExtensionsTest.class.st renamed to src/Math-Number-Extensions/NumberExtensionsTest.class.st

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
Class {
2-
#name : #NumbersExtensionsTest,
2+
#name : #NumberExtensionsTest,
33
#superclass : #TestCase,
4-
#category : 'Math-Numbers-Extensions'
4+
#category : #'Math-Number-Extensions'
55
}
66

77
{ #category : #tests }
8-
NumbersExtensionsTest >> testArTanh [
9-
self assert: 0 arTanh equals: 0.0 arTanh.
8+
NumberExtensionsTest >> testArTanh [
9+
self assert: 0 arTanh = 0.0 arTanh.
1010
self assert: 1 arTanh isFloat.
11-
self assert: 1 arTanh = 1.0 arTanh
11+
self assert: 1 arTanh equals: 1.0 arTanh
1212
]
1313

1414
{ #category : #tests }
15-
NumbersExtensionsTest >> testSinc [
15+
NumberExtensionsTest >> testSinc [
1616
"test cardinal sine"
1717

1818
self assert: 0 sinc equals: 1.

src/Math-Number-Extensions/package.st

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Package { #name : #'Math-Number-Extensions' }

src/Math-Numbers-Extensions/package.st

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)