987
|
1 |
"
|
|
2 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger
|
1152
|
3 |
|
1155
|
4 |
New code and modifications done at SWING Research Group [1]:
|
1152
|
5 |
|
987
|
6 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko
|
|
7 |
SWING Research Group, Czech Technical University in Prague
|
|
8 |
|
|
9 |
This software is furnished under a license and may be used
|
|
10 |
only in accordance with the terms of that license and with the
|
|
11 |
inclusion of the above copyright notice. This software may not
|
|
12 |
be provided or otherwise made available to, or used by, any
|
|
13 |
other person. No title to or ownership of the software is
|
|
14 |
hereby transferred.
|
|
15 |
|
1155
|
16 |
[1] Code written at SWING Research Group contains a signature
|
|
17 |
of one of the above copright owners. For exact set of such code,
|
|
18 |
see the differences between this version and version stx:libjava
|
1152
|
19 |
as of 1.9.2010
|
987
|
20 |
"
|
|
21 |
"{ Package: 'stx:libjava' }"
|
|
22 |
|
|
23 |
Object subclass:#JavaMathSupport
|
|
24 |
instanceVariableNames:''
|
|
25 |
classVariableNames:''
|
|
26 |
poolDictionaries:''
|
|
27 |
category:'Languages-Java-Support-Native'
|
|
28 |
!
|
|
29 |
|
|
30 |
!JavaMathSupport class methodsFor:'documentation'!
|
|
31 |
|
|
32 |
copyright
|
|
33 |
"
|
|
34 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger
|
1152
|
35 |
|
1155
|
36 |
New code and modifications done at SWING Research Group [1]:
|
1152
|
37 |
|
987
|
38 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko
|
|
39 |
SWING Research Group, Czech Technical University in Prague
|
|
40 |
|
|
41 |
This software is furnished under a license and may be used
|
|
42 |
only in accordance with the terms of that license and with the
|
|
43 |
inclusion of the above copyright notice. This software may not
|
|
44 |
be provided or otherwise made available to, or used by, any
|
|
45 |
other person. No title to or ownership of the software is
|
|
46 |
hereby transferred.
|
|
47 |
|
1155
|
48 |
[1] Code written at SWING Research Group contains a signature
|
|
49 |
of one of the above copright owners. For exact set of such code,
|
|
50 |
see the differences between this version and version stx:libjava
|
1152
|
51 |
as of 1.9.2010
|
987
|
52 |
|
|
53 |
"
|
|
54 |
! !
|
|
55 |
|
|
56 |
!JavaMathSupport class methodsFor:'java-style FP functions'!
|
|
57 |
|
990
|
58 |
cos:f
|
|
59 |
|
|
60 |
%{
|
|
61 |
RETURN ( _MKFLOAT( jcos ( __floatVal ( f ) ) ) );
|
|
62 |
%}
|
|
63 |
|
988
|
64 |
|
|
65 |
"Created: / 07-09-2011 / 17:34:18 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
66 |
!
|
|
67 |
|
987
|
68 |
cosh: f
|
|
69 |
|
988
|
70 |
%{
|
|
71 |
RETURN ( _MKFLOAT( jcosh ( __floatVal ( f ) ) ) );
|
|
72 |
%}
|
|
73 |
|
987
|
74 |
"Created: / 07-09-2011 / 17:08:17 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
75 |
!
|
|
76 |
|
990
|
77 |
expm1:f
|
|
78 |
|
|
79 |
%{
|
|
80 |
RETURN ( _MKFLOAT( jexpm1 ( __floatVal ( f ) ) ) );
|
|
81 |
%}
|
988
|
82 |
|
|
83 |
"Created: / 07-09-2011 / 17:34:02 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
84 |
!
|
|
85 |
|
990
|
86 |
floor:f
|
|
87 |
|
|
88 |
%{
|
|
89 |
RETURN ( _MKFLOAT( jfloor ( __floatVal ( f ) ) ) );
|
|
90 |
%}
|
988
|
91 |
|
|
92 |
"Created: / 07-09-2011 / 17:33:35 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
93 |
!
|
|
94 |
|
990
|
95 |
sin:f
|
|
96 |
|
|
97 |
%{
|
|
98 |
RETURN ( _MKFLOAT( jsin ( __floatVal ( f ) ) ) );
|
|
99 |
%}
|
988
|
100 |
|
|
101 |
"Created: / 07-09-2011 / 17:32:24 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
102 |
!
|
|
103 |
|
987
|
104 |
sinh: f
|
|
105 |
|
988
|
106 |
%{
|
|
107 |
RETURN ( _MKFLOAT( jsinh ( __floatVal ( f ) ) ) );
|
|
108 |
%}
|
|
109 |
|
|
110 |
|
987
|
111 |
"Created: / 07-09-2011 / 17:08:21 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
988
|
112 |
!
|
|
113 |
|
990
|
114 |
tanh:f
|
|
115 |
|
|
116 |
%{
|
|
117 |
RETURN ( _MKFLOAT( jtanh ( __floatVal ( f ) ) ) );
|
|
118 |
%}
|
|
119 |
|
988
|
120 |
|
|
121 |
"Created: / 07-09-2011 / 17:32:09 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
987
|
122 |
! !
|
|
123 |
|
|
124 |
!JavaMathSupport class methodsFor:'documentation'!
|
|
125 |
|
|
126 |
version_SVN
|
|
127 |
^ '$Id$'
|
|
128 |
! !
|