| 1 | package SPVM::Math; | ||
| 2 | |||
| 3 | 2 | our $VERSION = "1.013"; | |
| 4 | |||
| 5 | 2 | 1; | |
| 6 | |||
| 7 | =head1 Name | ||
| 8 | |||
| 9 | SPVM::Math - Mathematical Calculations | ||
| 10 | |||
| 11 | =head1 Description | ||
| 12 | |||
| 13 | Math class in L<SPVM> provides mathematical calculations defined in C<math.h> and C<complex.h> in the C language. | ||
| 14 | |||
| 15 | =head1 Usage | ||
| 16 | |||
| 17 | use Math; | ||
| 18 | |||
| 19 | my $sin = Math->sin(Math->PI / 4); | ||
| 20 | |||
| 21 | my $cos = Math->cos(Math->PI / 4); | ||
| 22 | |||
| 23 | my $tan = Math->tan(Math->PI / 4); | ||
| 24 | |||
| 25 | # 1 + 2i | ||
| 26 | my $z = Math->complex(1, 2); | ||
| 27 | |||
| 28 | # i | ||
| 29 | my $i = Math->complex(0, 1); | ||
| 30 | |||
| 31 | # Euler's equation | ||
| 32 | my $euler_left = Math->cexp(Math->cmul($i, $z)); | ||
| 33 | my $euler_right = Math->ccos($z) + Math->cmul($i, Math->csin($z)); | ||
| 34 | |||
| 35 | =head1 Class Methods | ||
| 36 | |||
| 37 | =head2 abs | ||
| 38 | |||
| 39 | C<static method abs : int ($x : int);> | ||
| 40 | |||
| 41 | Calculates the abusolute value of $x and return it. | ||
| 42 | |||
| 43 | =head2 acos | ||
| 44 | |||
| 45 | C<static method acos : double ($x : double);> | ||
| 46 | |||
| 47 | Calls native L<acos|https://linux.die.net/man/3/acos> function defined in C<math.h> in the C language and returns its return value. | ||
| 48 | |||
| 49 | =head2 acosf | ||
| 50 | |||
| 51 | C<static method acosf : float ($x : float);> | ||
| 52 | |||
| 53 | Calls native L<acosf|https://linux.die.net/man/3/acosf> function defined in C<math.h> in the C language and returns its return value. | ||
| 54 | |||
| 55 | =head2 acosh | ||
| 56 | |||
| 57 | C<static method acosh : double ($x : double);> | ||
| 58 | |||
| 59 | Calls native L<acosh|https://linux.die.net/man/3/acosh> function defined in C<math.h> in the C language and returns its return value. | ||
| 60 | |||
| 61 | =head2 acoshf | ||
| 62 | |||
| 63 | C<static method acoshf : float ($x : float);> | ||
| 64 | |||
| 65 | Calls native L<acoshf|https://linux.die.net/man/3/acoshf> function defined in C<math.h> in the C language and returns its return value. | ||
| 66 | |||
| 67 | =head2 asin | ||
| 68 | |||
| 69 | C<static method asin : double ($x : double);> | ||
| 70 | |||
| 71 | Calls native L<asin|https://linux.die.net/man/3/asin> function defined in C<math.h> in the C language and returns its return value. | ||
| 72 | |||
| 73 | =head2 asinf | ||
| 74 | |||
| 75 | C<static method asinf : float ($x : float);> | ||
| 76 | |||
| 77 | Calls native L<asinf|https://linux.die.net/man/3/asinf> function defined in C<math.h> in the C language and returns its return value. | ||
| 78 | |||
| 79 | =head2 asinh | ||
| 80 | |||
| 81 | C<static method asinh : double ($x : double);> | ||
| 82 | |||
| 83 | Calls native L<asinh|https://linux.die.net/man/3/asinh> function defined in C<math.h> in the C language and returns its return value. | ||
| 84 | |||
| 85 | =head2 asinhf | ||
| 86 | |||
| 87 | C<static method asinhf : float ($x : float);> | ||
| 88 | |||
| 89 | Calls native L<asinhf|https://linux.die.net/man/3/asinhf> function defined in C<math.h> in the C language and returns its return value. | ||
| 90 | |||
| 91 | =head2 atan | ||
| 92 | |||
| 93 | C<static method atan : double ($x : double);> | ||
| 94 | |||
| 95 | Calls native L<atan|https://linux.die.net/man/3/atan> function defined in C<math.h> in the C language and returns its return value. | ||
| 96 | |||
| 97 | =head2 atan2 | ||
| 98 | |||
| 99 | C<static method atan2 : double ($y : double, $x : double);> | ||
| 100 | |||
| 101 | Calls native L<atan2|https://linux.die.net/man/3/atan2> function defined in C<math.h> in the C language and returns its return value. | ||
| 102 | |||
| 103 | =head2 atan2f | ||
| 104 | |||
| 105 | C<static method atan2f : float ($y : float, $x : float);> | ||
| 106 | |||
| 107 | Calls native L<atan2f|https://linux.die.net/man/3/atan2f> function defined in C<math.h> in the C language and returns its return value. | ||
| 108 | |||
| 109 | =head2 atanf | ||
| 110 | |||
| 111 | C<static method atanf : float ($x : float);> | ||
| 112 | |||
| 113 | Calls native L<atanf|https://linux.die.net/man/3/atanf> function defined in C<math.h> in the C language and returns its return value. | ||
| 114 | |||
| 115 | =head2 atanh | ||
| 116 | |||
| 117 | C<static method atanh : double ($x : double);> | ||
| 118 | |||
| 119 | Calls native L<atanh|https://linux.die.net/man/3/atanh> function defined in C<math.h> in the C language and returns its return value. | ||
| 120 | |||
| 121 | =head2 atanhf | ||
| 122 | |||
| 123 | C<static method atanhf : float ($x : float);> | ||
| 124 | |||
| 125 | Calls native L<atanhf|https://linux.die.net/man/3/atanhf> function defined in C<math.h> in the C language and returns its return value. | ||
| 126 | |||
| 127 | =head2 cabs | ||
| 128 | |||
| 129 | C<static method cabs : double ($z : L<Complex_2d|SPVM::Complex_2d>);> | ||
| 130 | |||
| 131 | Calls native L<cabs|https://linux.die.net/man/3/cabs> function defined in C<complex.h> in the C language and returns its return value. | ||
| 132 | |||
| 133 | =head2 cabsf | ||
| 134 | |||
| 135 | C<static method cabsf : float ($z : L<Complex_2f|SPVM::Complex_2f>);> | ||
| 136 | |||
| 137 | Calls native L<cabsf|https://linux.die.net/man/3/cabsf> function defined in C<complex.h> in the C language and returns its return value. | ||
| 138 | |||
| 139 | =head2 cacos | ||
| 140 | |||
| 141 | C<static method cacos : L<Complex_2d|SPVM::Complex_2d> ($z : L<Complex_2d|SPVM::Complex_2d>);> | ||
| 142 | |||
| 143 | Calls native L<cacos|https://linux.die.net/man/3/cacos> function defined in C<complex.h> in the C language and returns its return value. | ||
| 144 | |||
| 145 | =head2 cacosf | ||
| 146 | |||
| 147 | C<static method cacosf : L<Complex_2f|SPVM::Complex_2f> ($z : L<Complex_2f|SPVM::Complex_2f>);> | ||
| 148 | |||
| 149 | Calls native L<cacosf|https://linux.die.net/man/3/cacosf> function defined in C<complex.h> in the C language and returns its return value. | ||
| 150 | |||
| 151 | =head2 cacosh | ||
| 152 | |||
| 153 | C<static method cacosh : L<Complex_2d|SPVM::Complex_2d> ($z : L<Complex_2d|SPVM::Complex_2d>);> | ||
| 154 | |||
| 155 | Calls native L<cacosh|https://linux.die.net/man/3/cacosh> function defined in C<complex.h> in the C language and returns its return value. | ||
| 156 | |||
| 157 | =head2 cacoshf | ||
| 158 | |||
| 159 | C<static method cacoshf : L<Complex_2f|SPVM::Complex_2f> ($z : L<Complex_2f|SPVM::Complex_2f>);> | ||
| 160 | |||
| 161 | Calls native L<cacoshf|https://linux.die.net/man/3/cacoshf> function defined in C<complex.h> in the C language and returns its return value. | ||
| 162 | |||
| 163 | =head2 cadd | ||
| 164 | |||
| 165 | C<static method cadd : L<Complex_2d|SPVM::Complex_2d> ($z1 : L<Complex_2d|SPVM::Complex_2d>, $z2 : L<Complex_2d|SPVM::Complex_2d>);> | ||
| 166 | |||
| 167 | Performs the addition operation on $z1 and $z2, and returns the resulting value. | ||
| 168 | |||
| 169 | =head2 caddf | ||
| 170 | |||
| 171 | C<static method caddf : L<Complex_2f|SPVM::Complex_2f> ($z1 : L<Complex_2f|SPVM::Complex_2f>, $z2 : L<Complex_2f|SPVM::Complex_2f>);> | ||
| 172 | |||
| 173 | Performs the addition operation on $z1 and $z2, and returns the resulting value. | ||
| 174 | |||
| 175 | =head2 carg | ||
| 176 | |||
| 177 | C<static method carg : double ($z : L<Complex_2d|SPVM::Complex_2d>);> | ||
| 178 | |||
| 179 | Calls native L<carg|https://linux.die.net/man/3/carg> function defined in C<complex.h> in the C language and returns its return value. | ||
| 180 | |||
| 181 | =head2 cargf | ||
| 182 | |||
| 183 | C<static method cargf : float ($z : L<Complex_2f|SPVM::Complex_2f>);> | ||
| 184 | |||
| 185 | Calls native L<cargf|https://linux.die.net/man/3/cargf> function defined in C<complex.h> in the C language and returns its return value. | ||
| 186 | |||
| 187 | =head2 casin | ||
| 188 | |||
| 189 | C<static method casin : L<Complex_2d|SPVM::Complex_2d> ($z : L<Complex_2d|SPVM::Complex_2d>);> | ||
| 190 | |||
| 191 | Calls native L<casin|https://linux.die.net/man/3/casin> function defined in C<complex.h> in the C language and returns its return value. | ||
| 192 | |||
| 193 | =head2 casinf | ||
| 194 | |||
| 195 | C<static method casinf : L<Complex_2f|SPVM::Complex_2f> ($z : L<Complex_2f|SPVM::Complex_2f>);> | ||
| 196 | |||
| 197 | Calls native L<casinf|https://linux.die.net/man/3/casinf> function defined in C<complex.h> in the C language and returns its return value. | ||
| 198 | |||
| 199 | =head2 casinh | ||
| 200 | |||
| 201 | C<static method casinh : L<Complex_2d|SPVM::Complex_2d> ($z : L<Complex_2d|SPVM::Complex_2d>);> | ||
| 202 | |||
| 203 | Calls native L<casinh|https://linux.die.net/man/3/casinh> function defined in C<complex.h> in the C language and returns its return value. | ||
| 204 | |||
| 205 | =head2 casinhf | ||
| 206 | |||
| 207 | C<static method casinhf : L<Complex_2f|SPVM::Complex_2f> ($z : L<Complex_2f|SPVM::Complex_2f>);> | ||
| 208 | |||
| 209 | Calls native L<casinhf|https://linux.die.net/man/3/casinhf> function defined in C<complex.h> in the C language and returns its return value. | ||
| 210 | |||
| 211 | =head2 catan | ||
| 212 | |||
| 213 | C<static method catan : L<Complex_2d|SPVM::Complex_2d> ($z : L<Complex_2d|SPVM::Complex_2d>);> | ||
| 214 | |||
| 215 | Calls native L<catan|https://linux.die.net/man/3/catan> function defined in C<complex.h> in the C language and returns its return value. | ||
| 216 | |||
| 217 | =head2 catanf | ||
| 218 | |||
| 219 | C<static method catanf : L<Complex_2f|SPVM::Complex_2f> ($z : L<Complex_2f|SPVM::Complex_2f>);> | ||
| 220 | |||
| 221 | Calls native L<catanf|https://linux.die.net/man/3/catanf> function defined in C<complex.h> in the C language and returns its return value. | ||
| 222 | |||
| 223 | =head2 catanh | ||
| 224 | |||
| 225 | C<static method catanh : L<Complex_2d|SPVM::Complex_2d> ($z : L<Complex_2d|SPVM::Complex_2d>);> | ||
| 226 | |||
| 227 | Calls native L<catanh|https://linux.die.net/man/3/catanh> function defined in C<complex.h> in the C language and returns its return value. | ||
| 228 | |||
| 229 | =head2 catanhf | ||
| 230 | |||
| 231 | C<static method catanhf : L<Complex_2f|SPVM::Complex_2f> ($z : L<Complex_2f|SPVM::Complex_2f>);> | ||
| 232 | |||
| 233 | Calls native L<catanhf|https://linux.die.net/man/3/catanhf> function defined in C<complex.h> in the C language and returns its return value. | ||
| 234 | |||
| 235 | =head2 cbrt | ||
| 236 | |||
| 237 | C<static method cbrt : double ($x : double);> | ||
| 238 | |||
| 239 | Calls native L<cbrt|https://linux.die.net/man/3/cbrt> function defined in C<math.h> in the C language and returns its return value. | ||
| 240 | |||
| 241 | =head2 cbrtf | ||
| 242 | |||
| 243 | C<static method cbrtf : float ($x : float);> | ||
| 244 | |||
| 245 | Calls native L<cbrtf|https://linux.die.net/man/3/cbrtf> function defined in C<math.h> in the C language and returns its return value. | ||
| 246 | |||
| 247 | =head2 ccos | ||
| 248 | |||
| 249 | C<static method ccos : L<Complex_2d|SPVM::Complex_2d> ($z : L<Complex_2d|SPVM::Complex_2d>);> | ||
| 250 | |||
| 251 | Calls native L<ccos|https://linux.die.net/man/3/ccos> function defined in C<complex.h> in the C language and returns its return value. | ||
| 252 | |||
| 253 | =head2 ccosf | ||
| 254 | |||
| 255 | C<static method ccosf : L<Complex_2f|SPVM::Complex_2f> ($z : L<Complex_2f|SPVM::Complex_2f>);> | ||
| 256 | |||
| 257 | Calls native L<ccosf|https://linux.die.net/man/3/ccosf> function defined in C<complex.h> in the C language and returns its return value. | ||
| 258 | |||
| 259 | =head2 ccosh | ||
| 260 | |||
| 261 | C<static method ccosh : L<Complex_2d|SPVM::Complex_2d> ($z : L<Complex_2d|SPVM::Complex_2d>);> | ||
| 262 | |||
| 263 | Calls native L<ccosh|https://linux.die.net/man/3/ccosh> function defined in C<complex.h> in the C language and returns its return value. | ||
| 264 | |||
| 265 | =head2 ccoshf | ||
| 266 | |||
| 267 | C<static method ccoshf : L<Complex_2f|SPVM::Complex_2f> ($z : L<Complex_2f|SPVM::Complex_2f>);> | ||
| 268 | |||
| 269 | Calls native L<ccoshf|https://linux.die.net/man/3/ccoshf> function defined in C<complex.h> in the C language and returns its return value. | ||
| 270 | |||
| 271 | =head2 cdiv | ||
| 272 | |||
| 273 | C<static method cdiv : L<Complex_2d|SPVM::Complex_2d> ($z1 : L<Complex_2d|SPVM::Complex_2d>, $z2 : L<Complex_2d|SPVM::Complex_2d>);> | ||
| 274 | |||
| 275 | Performs the divison operation on $z1 and $z2, and returns the resulting value. | ||
| 276 | |||
| 277 | =head2 cdivf | ||
| 278 | |||
| 279 | C<static method cdivf : L<Complex_2f|SPVM::Complex_2f> ($z1 : L<Complex_2f|SPVM::Complex_2f>, $z2 : L<Complex_2f|SPVM::Complex_2f>);> | ||
| 280 | |||
| 281 | Performs the divison operation on $z1 and $z2, and returns the resulting value. | ||
| 282 | |||
| 283 | =head2 ceil | ||
| 284 | |||
| 285 | C<static method ceil : double ($x : double);> | ||
| 286 | |||
| 287 | Calls native L<ceil|https://linux.die.net/man/3/ceil> function defined in C<math.h> in the C language and returns its return value. | ||
| 288 | |||
| 289 | =head2 ceilf | ||
| 290 | |||
| 291 | C<static method ceilf : float ($x : float);> | ||
| 292 | |||
| 293 | Calls native L<ceilf|https://linux.die.net/man/3/ceilf> function defined in C<math.h> in the C language and returns its return value. | ||
| 294 | |||
| 295 | =head2 cexp | ||
| 296 | |||
| 297 | C<static method cexp : L<Complex_2d|SPVM::Complex_2d> ($z : L<Complex_2d|SPVM::Complex_2d>);> | ||
| 298 | |||
| 299 | Calls native L<cexp|https://linux.die.net/man/3/cexp> function defined in C<complex.h> in the C language and returns its return value. | ||
| 300 | |||
| 301 | =head2 cexpf | ||
| 302 | |||
| 303 | C<static method cexpf : L<Complex_2f|SPVM::Complex_2f> ($z : L<Complex_2f|SPVM::Complex_2f>);> | ||
| 304 | |||
| 305 | Calls native L<cexpf|https://linux.die.net/man/3/cexpf> function defined in C<complex.h> in the C language and returns its return value. | ||
| 306 | |||
| 307 | =head2 clog | ||
| 308 | |||
| 309 | C<static method clog : L<Complex_2d|SPVM::Complex_2d> ($z : L<Complex_2d|SPVM::Complex_2d>);> | ||
| 310 | |||
| 311 | Calls native L<clog|https://linux.die.net/man/3/clog> function defined in C<complex.h> in the C language and returns its return value. | ||
| 312 | |||
| 313 | =head2 clogf | ||
| 314 | |||
| 315 | C<static method clogf : L<Complex_2f|SPVM::Complex_2f> ($z : L<Complex_2f|SPVM::Complex_2f>);> | ||
| 316 | |||
| 317 | Calls native L<clogf|https://linux.die.net/man/3/clogf> function defined in C<complex.h> in the C language and returns its return value. | ||
| 318 | |||
| 319 | =head2 cmul | ||
| 320 | |||
| 321 | C<static method cmul : L<Complex_2d|SPVM::Complex_2d> ($z1 : L<Complex_2d|SPVM::Complex_2d>, $z2 : L<Complex_2d|SPVM::Complex_2d>);> | ||
| 322 | |||
| 323 | Performs the multiplication operation on $z1 and $z2, and returns the resulting value. | ||
| 324 | |||
| 325 | =head2 cmulf | ||
| 326 | |||
| 327 | C<static method cmulf : L<Complex_2f|SPVM::Complex_2f> ($z1 : L<Complex_2f|SPVM::Complex_2f>, $z2 : L<Complex_2f|SPVM::Complex_2f>);> | ||
| 328 | |||
| 329 | Performs the multiplication operation on $z1 and $z2, and returns the resulting value. | ||
| 330 | |||
| 331 | =head2 complex | ||
| 332 | |||
| 333 | C<static method complex : L<Complex_2d|SPVM::Complex_2d> ($re : double, $im : double);> | ||
| 334 | |||
| 335 | Creates a double complex value given the real number $re and the imaginary number $im and returns it. | ||
| 336 | |||
| 337 | =head2 complexf | ||
| 338 | |||
| 339 | C<static method complexf : L<Complex_2f|SPVM::Complex_2f> ($re : float, $im : float);> | ||
| 340 | |||
| 341 | Creates a float complex value given the real number $re and the imaginary number $im and returns it. | ||
| 342 | |||
| 343 | =head2 conj | ||
| 344 | |||
| 345 | C<static method conj : L<Complex_2d|SPVM::Complex_2d> ($z : L<Complex_2d|SPVM::Complex_2d>);> | ||
| 346 | |||
| 347 | Calls native L<conj|https://linux.die.net/man/3/conj> function defined in C<complex.h> in the C language and returns its return value. | ||
| 348 | |||
| 349 | =head2 conjf | ||
| 350 | |||
| 351 | C<static method conjf : L<Complex_2f|SPVM::Complex_2f> ($z : L<Complex_2f|SPVM::Complex_2f>);> | ||
| 352 | |||
| 353 | Calls native L<conjf|https://linux.die.net/man/3/conjf> function defined in C<complex.h> in the C language and returns its return value. | ||
| 354 | |||
| 355 | =head2 copysign | ||
| 356 | |||
| 357 | C<static method copysign : double ($x : double, $y : double);> | ||
| 358 | |||
| 359 | Calls native L<copysign|https://linux.die.net/man/3/copysign> function defined in C<math.h> in the C language and returns its return value. | ||
| 360 | |||
| 361 | =head2 copysignf | ||
| 362 | |||
| 363 | C<static method copysignf : float ($x : float, $y : float);> | ||
| 364 | |||
| 365 | Calls native L<copysignf|https://linux.die.net/man/3/copysignf> function defined in C<math.h> in the C language and returns its return value. | ||
| 366 | |||
| 367 | =head2 cos | ||
| 368 | |||
| 369 | C<static method cos : double ($x : double);> | ||
| 370 | |||
| 371 | Calls native L<cos|https://linux.die.net/man/3/cos> function defined in C<math.h> in the C language and returns its return value. | ||
| 372 | |||
| 373 | =head2 cosf | ||
| 374 | |||
| 375 | C<static method cosf : float ($x : float);> | ||
| 376 | |||
| 377 | Calls native L<cosf|https://linux.die.net/man/3/cosf> function defined in C<math.h> in the C language and returns its return value. | ||
| 378 | |||
| 379 | =head2 cosh | ||
| 380 | |||
| 381 | C<static method cosh : double ($x : double);> | ||
| 382 | |||
| 383 | Calls native L<cosh|https://linux.die.net/man/3/cosh> function defined in C<math.h> in the C language and returns its return value. | ||
| 384 | |||
| 385 | =head2 coshf | ||
| 386 | |||
| 387 | C<static method coshf : float ($x : float);> | ||
| 388 | |||
| 389 | Calls native L<coshf|https://linux.die.net/man/3/coshf> function defined in C<math.h> in the C language and returns its return value. | ||
| 390 | |||
| 391 | =head2 cpow | ||
| 392 | |||
| 393 | C<static method cpow : L<Complex_2d|SPVM::Complex_2d> ($z1 : L<Complex_2d|SPVM::Complex_2d>, $z2 : L<Complex_2d|SPVM::Complex_2d>);> | ||
| 394 | |||
| 395 | Calls native L<cpow|https://linux.die.net/man/3/cpow> function defined in C<complex.h> in the C language and returns its return value. | ||
| 396 | |||
| 397 | =head2 cpowf | ||
| 398 | |||
| 399 | C<static method cpowf : L<Complex_2f|SPVM::Complex_2f> ($z1 : L<Complex_2f|SPVM::Complex_2f>, $z2 : L<Complex_2f|SPVM::Complex_2f>);> | ||
| 400 | |||
| 401 | Calls native L<cpowf|https://linux.die.net/man/3/cpowf> function defined in C<complex.h> in the C language and returns its return value. | ||
| 402 | |||
| 403 | =head2 csin | ||
| 404 | |||
| 405 | C<static method csin : L<Complex_2d|SPVM::Complex_2d> ($z : L<Complex_2d|SPVM::Complex_2d>);> | ||
| 406 | |||
| 407 | Calls native L<csin|https://linux.die.net/man/3/csin> function defined in C<complex.h> in the C language and returns its return value. | ||
| 408 | |||
| 409 | =head2 csinf | ||
| 410 | |||
| 411 | C<static method csinf : L<Complex_2f|SPVM::Complex_2f> ($z : L<Complex_2f|SPVM::Complex_2f>);> | ||
| 412 | |||
| 413 | Calls native L<csinf|https://linux.die.net/man/3/csinf> function defined in C<complex.h> in the C language and returns its return value. | ||
| 414 | |||
| 415 | =head2 csinh | ||
| 416 | |||
| 417 | C<static method csinh : L<Complex_2d|SPVM::Complex_2d> ($z : L<Complex_2d|SPVM::Complex_2d>);> | ||
| 418 | |||
| 419 | Calls native L<csinh|https://linux.die.net/man/3/csinh> function defined in C<complex.h> in the C language and returns its return value. | ||
| 420 | |||
| 421 | =head2 csinhf | ||
| 422 | |||
| 423 | C<static method csinhf : L<Complex_2f|SPVM::Complex_2f> ($z : L<Complex_2f|SPVM::Complex_2f>);> | ||
| 424 | |||
| 425 | Calls native L<csinhf|https://linux.die.net/man/3/csinhf> function defined in C<complex.h> in the C language and returns its return value. | ||
| 426 | |||
| 427 | =head2 csqrt | ||
| 428 | |||
| 429 | C<static method csqrt : L<Complex_2d|SPVM::Complex_2d> ($z : L<Complex_2d|SPVM::Complex_2d>);> | ||
| 430 | |||
| 431 | Calls native L<csqrt|https://linux.die.net/man/3/csqrt> function defined in C<complex.h> in the C language and returns its return value. | ||
| 432 | |||
| 433 | =head2 csqrtf | ||
| 434 | |||
| 435 | C<static method csqrtf : L<Complex_2f|SPVM::Complex_2f> ($z : L<Complex_2f|SPVM::Complex_2f>);> | ||
| 436 | |||
| 437 | Calls native L<csqrtf|https://linux.die.net/man/3/csqrtf> function defined in C<complex.h> in the C language and returns its return value. | ||
| 438 | |||
| 439 | =head2 csub | ||
| 440 | |||
| 441 | C<static method csub : L<Complex_2d|SPVM::Complex_2d> ($z1 : L<Complex_2d|SPVM::Complex_2d>, $z2 : L<Complex_2d|SPVM::Complex_2d>);> | ||
| 442 | |||
| 443 | Performs the subtraction operation on $z1 and $z2, and returns the resulting value. | ||
| 444 | |||
| 445 | =head2 csubf | ||
| 446 | |||
| 447 | C<static method csubf : L<Complex_2f|SPVM::Complex_2f> ($z1 : L<Complex_2f|SPVM::Complex_2f>, $z2 : L<Complex_2f|SPVM::Complex_2f>);> | ||
| 448 | |||
| 449 | Performs the subtraction operation on $z1 and $z2, and returns the resulting value. | ||
| 450 | |||
| 451 | =head2 cneg | ||
| 452 | |||
| 453 | C<static method cneg : L<Complex_2d|SPVM::Complex_2d> ($z : L<Complex_2d|SPVM::Complex_2d>);> | ||
| 454 | |||
| 455 | Negates the sign of $z and returns it. | ||
| 456 | |||
| 457 | =head2 cnegf | ||
| 458 | |||
| 459 | C<static method cnegf : L<Complex_2f|SPVM::Complex_2f> ($z : L<Complex_2f|SPVM::Complex_2f>);> | ||
| 460 | |||
| 461 | Negates the sign of $z and returns it. | ||
| 462 | |||
| 463 | =head2 ctan | ||
| 464 | |||
| 465 | C<static method ctan : L<Complex_2d|SPVM::Complex_2d> ($z : L<Complex_2d|SPVM::Complex_2d>);> | ||
| 466 | |||
| 467 | Calls native L<ctan|https://linux.die.net/man/3/ctan> function defined in C<complex.h> in the C language and returns its return value. | ||
| 468 | |||
| 469 | =head2 ctanf | ||
| 470 | |||
| 471 | C<static method ctanf : L<Complex_2f|SPVM::Complex_2f> ($z : L<Complex_2f|SPVM::Complex_2f>);> | ||
| 472 | |||
| 473 | Calls native L<ctanf|https://linux.die.net/man/3/ctanf> function defined in C<complex.h> in the C language and returns its return value. | ||
| 474 | |||
| 475 | =head2 ctanh | ||
| 476 | |||
| 477 | C<static method ctanh : L<Complex_2d|SPVM::Complex_2d> ($z : L<Complex_2d|SPVM::Complex_2d>);> | ||
| 478 | |||
| 479 | Calls native L<ctanh|https://linux.die.net/man/3/ctanh> function defined in C<complex.h> in the C language and returns its return value. | ||
| 480 | |||
| 481 | =head2 ctanhf | ||
| 482 | |||
| 483 | C<static method ctanhf : L<Complex_2f|SPVM::Complex_2f> ($z : L<Complex_2f|SPVM::Complex_2f>);> | ||
| 484 | |||
| 485 | Calls native L<ctanhf|https://linux.die.net/man/3/ctanhf> function defined in C<complex.h> in the C language and returns its return value. | ||
| 486 | |||
| 487 | =head2 E | ||
| 488 | |||
| 489 | C<static method E : double ();> | ||
| 490 | |||
| 491 | Returns the Euler's number C<e>. This value is C<0x1.5bf0a8b145769p+1>. | ||
| 492 | |||
| 493 | =head2 erf | ||
| 494 | |||
| 495 | C<static method erf : double ($x : double);> | ||
| 496 | |||
| 497 | Calls native L<erf|https://linux.die.net/man/3/erf> function defined in C<math.h> in the C language and returns its return value. | ||
| 498 | |||
| 499 | =head2 erfc | ||
| 500 | |||
| 501 | C<static method erfc : double ($x : double);> | ||
| 502 | |||
| 503 | Calls native L<erfc|https://linux.die.net/man/3/erfc> function defined in C<math.h> in the C language and returns its return value. | ||
| 504 | |||
| 505 | =head2 erfcf | ||
| 506 | |||
| 507 | C<static method erfcf : float ($x : float);> | ||
| 508 | |||
| 509 | Calls native L<erfcf|https://linux.die.net/man/3/erfcf> function defined in C<math.h> in the C language and returns its return value. | ||
| 510 | |||
| 511 | =head2 erff | ||
| 512 | |||
| 513 | C<static method erff : float ($x : float);> | ||
| 514 | |||
| 515 | Calls native L<erff|https://linux.die.net/man/3/erff> function defined in C<math.h> in the C language and returns its return value. | ||
| 516 | |||
| 517 | =head2 exp | ||
| 518 | |||
| 519 | C<static method exp : double ($x : double);> | ||
| 520 | |||
| 521 | Calls native L<exp|https://linux.die.net/man/3/exp> function defined in C<math.h> in the C language and returns its return value. | ||
| 522 | |||
| 523 | =head2 exp2 | ||
| 524 | |||
| 525 | C<static method exp2 : double ($x : double);> | ||
| 526 | |||
| 527 | Calls native L<exp2|https://linux.die.net/man/3/exp2> function defined in C<math.h> in the C language and returns its return value. | ||
| 528 | |||
| 529 | =head2 exp2f | ||
| 530 | |||
| 531 | C<static method exp2f : float ($x : float);> | ||
| 532 | |||
| 533 | Calls native L<exp2f|https://linux.die.net/man/3/exp2f> function defined in C<math.h> in the C language and returns its return value. | ||
| 534 | |||
| 535 | =head2 expf | ||
| 536 | |||
| 537 | C<static method expf : float ($x : float);> | ||
| 538 | |||
| 539 | Calls native L<expf|https://linux.die.net/man/3/expf> function defined in C<math.h> in the C language and returns its return value. | ||
| 540 | |||
| 541 | =head2 expm1 | ||
| 542 | |||
| 543 | C<static method expm1 : double ($x : double);> | ||
| 544 | |||
| 545 | Calls native L<expm1|https://linux.die.net/man/3/expm1> function defined in C<math.h> in the C language and returns its return value. | ||
| 546 | |||
| 547 | =head2 expm1f | ||
| 548 | |||
| 549 | C<static method expm1f : float ($x : float);> | ||
| 550 | |||
| 551 | Calls native L<expm1f|https://linux.die.net/man/3/expm1f> function defined in C<math.h> in the C language and returns its return value. | ||
| 552 | |||
| 553 | =head2 fabs | ||
| 554 | |||
| 555 | C<static method fabs : double ($x : double);> | ||
| 556 | |||
| 557 | Calls native L<fabs|https://linux.die.net/man/3/fabs> function defined in C<math.h> in the C language and returns its return value. | ||
| 558 | |||
| 559 | =head2 fabsf | ||
| 560 | |||
| 561 | C<static method fabsf : float ($x : float);> | ||
| 562 | |||
| 563 | Calls native L<fabsf|https://linux.die.net/man/3/fabsf> function defined in C<math.h> in the C language and returns its return value. | ||
| 564 | |||
| 565 | =head2 fdim | ||
| 566 | |||
| 567 | C<static method fdim : double ($x : double, $y : double);> | ||
| 568 | |||
| 569 | Calls native L<fdim|https://linux.die.net/man/3/fdim> function defined in C<math.h> in the C language and returns its return value. | ||
| 570 | |||
| 571 | =head2 fdimf | ||
| 572 | |||
| 573 | C<static method fdimf : float ($x : float, $y : float);> | ||
| 574 | |||
| 575 | Calls native L<fdimf|https://linux.die.net/man/3/fdimf> function defined in C<math.h> in the C language and returns its return value. | ||
| 576 | |||
| 577 | =head2 FE_DOWNWARD | ||
| 578 | |||
| 579 | C<static method FE_DOWNWARD : int ();> | ||
| 580 | |||
| 581 | Returns the value of C<FE_DOWNWARD> macro defined in C<fenv.h> in the C language. | ||
| 582 | |||
| 583 | =head2 FE_TONEAREST | ||
| 584 | |||
| 585 | C<static method FE_TONEAREST : int ();> | ||
| 586 | |||
| 587 | Returns the value of C<FE_TONEAREST> macro defined in C<fenv.h> in the C language. | ||
| 588 | |||
| 589 | =head2 FE_TOWARDZERO | ||
| 590 | |||
| 591 | C<static method FE_TOWARDZERO : int ();> | ||
| 592 | |||
| 593 | Returns the value of C<FE_TOWARDZERO> macro defined in C<fenv.h> in the C language. | ||
| 594 | |||
| 595 | =head2 FE_UPWARD | ||
| 596 | |||
| 597 | C<static method FE_UPWARD : int ();> | ||
| 598 | |||
| 599 | Returns the value of C<FE_UPWARD> macro defined in C<fenv.h> in the C language. | ||
| 600 | |||
| 601 | =head2 fesetround | ||
| 602 | |||
| 603 | C<static method fesetround : int ($round : int);> | ||
| 604 | |||
| 605 | Calls native L<fesetround|https://linux.die.net/man/3/fesetround> function defined in C<math.h> in the C language and returns its return value. | ||
| 606 | |||
| 607 | =head2 floor | ||
| 608 | |||
| 609 | C<static method floor : double ($x : double);> | ||
| 610 | |||
| 611 | Calls native L<floor|https://linux.die.net/man/3/floor> function defined in C<math.h> in the C language and returns its return value. | ||
| 612 | |||
| 613 | =head2 floorf | ||
| 614 | |||
| 615 | C<static method floorf : float ($x : float);> | ||
| 616 | |||
| 617 | Calls native L<floorf|https://linux.die.net/man/3/floorf> function defined in C<math.h> in the C language and returns its return value. | ||
| 618 | |||
| 619 | =head2 fma | ||
| 620 | |||
| 621 | C<static method fma : double ($x : double, $y : double, $x3 : double);> | ||
| 622 | |||
| 623 | Calls native L<fma|https://linux.die.net/man/3/fma> function defined in C<math.h> in the C language and returns its return value. | ||
| 624 | |||
| 625 | =head2 fmaf | ||
| 626 | |||
| 627 | C<static method fmaf : float ($x : float, $y : float, $x3 : float);> | ||
| 628 | |||
| 629 | Calls native L<fmaf|https://linux.die.net/man/3/fmaf> function defined in C<math.h> in the C language and returns its return value. | ||
| 630 | |||
| 631 | =head2 fmax | ||
| 632 | |||
| 633 | C<static method fmax : double ($x : double, $y : double);> | ||
| 634 | |||
| 635 | Calls native L<fmax|https://linux.die.net/man/3/fmax> function defined in C<math.h> in the C language and returns its return value. | ||
| 636 | |||
| 637 | =head2 fmaxf | ||
| 638 | |||
| 639 | C<static method fmaxf : float ($x : float, $y : float);> | ||
| 640 | |||
| 641 | Calls native L<fmaxf|https://linux.die.net/man/3/fmaxf> function defined in C<math.h> in the C language and returns its return value. | ||
| 642 | |||
| 643 | =head2 fmin | ||
| 644 | |||
| 645 | C<static method fmin : double ($x : double, $y : double);> | ||
| 646 | |||
| 647 | Calls native L<fmin|https://linux.die.net/man/3/fmin> function defined in C<math.h> in the C language and returns its return value. | ||
| 648 | |||
| 649 | =head2 fminf | ||
| 650 | |||
| 651 | C<static method fminf : float ($x : float, $y : float);> | ||
| 652 | |||
| 653 | Calls native L<fminf|https://linux.die.net/man/3/fminf> function defined in C<math.h> in the C language and returns its return value. | ||
| 654 | |||
| 655 | =head2 fmod | ||
| 656 | |||
| 657 | C<static method fmod : double ($x : double, $y : double);> | ||
| 658 | |||
| 659 | Calls native L<fmod|https://linux.die.net/man/3/fmod> function defined in C<math.h> in the C language and returns its return value. | ||
| 660 | |||
| 661 | =head2 fmodf | ||
| 662 | |||
| 663 | C<static method fmodf : float ($x : float, $y : float);> | ||
| 664 | |||
| 665 | Calls native L<fmodf|https://linux.die.net/man/3/fmodf> function defined in C<math.h> in the C language and returns its return value. | ||
| 666 | |||
| 667 | =head2 FP_ILOGB0 | ||
| 668 | |||
| 669 | C<static method FP_ILOGB0 : int ();> | ||
| 670 | |||
| 671 | Return the value of C<FP_ILOGB0> macro defined in C<fenv.h> in the C language. | ||
| 672 | |||
| 673 | =head2 FP_ILOGBNAN | ||
| 674 | |||
| 675 | C<static method FP_ILOGBNAN : int ();> | ||
| 676 | |||
| 677 | Return the value of C<FP_ILOGBNAN> macro defined in C<fenv.h> in the C language. | ||
| 678 | |||
| 679 | =head2 FP_INFINITE | ||
| 680 | |||
| 681 | C<static method FP_INFINITE : int ();> | ||
| 682 | |||
| 683 | Return the value of C<FP_INFINITE> macro defined in C<fenv.h> in the C language. | ||
| 684 | |||
| 685 | =head2 FP_NAN | ||
| 686 | |||
| 687 | C<static method FP_NAN : int ();> | ||
| 688 | |||
| 689 | Return the value of C<FP_NAN> macro defined in C<fenv.h> in the C language. | ||
| 690 | |||
| 691 | =head2 FP_ZERO | ||
| 692 | |||
| 693 | C<static method FP_ZERO : int ();> | ||
| 694 | |||
| 695 | Return the value of C<FP_ZERO> macro defined in C<fenv.h> in the C language. | ||
| 696 | |||
| 697 | =head2 fpclassify | ||
| 698 | |||
| 699 | C<static method fpclassify : int ($x : double);> | ||
| 700 | |||
| 701 | Calls native L<fpclassify|https://linux.die.net/man/3/fpclassify> function defined in C<math.h> in the C language. | ||
| 702 | |||
| 703 | =head2 fpclassifyf | ||
| 704 | |||
| 705 | C<static method fpclassifyf : int ($x : float);> | ||
| 706 | |||
| 707 | Calls native L<fpclassify|https://linux.die.net/man/3/fpclassify> function defined in C<math.h> in the C language. | ||
| 708 | |||
| 709 | =head2 frexp | ||
| 710 | |||
| 711 | C<static method frexp : double ($x : double, $exp_ref : int*);> | ||
| 712 | |||
| 713 | Calls native L<frexp|https://linux.die.net/man/3/frexp> function defined in C<math.h> in the C language and returns its return value. | ||
| 714 | |||
| 715 | Exceptions: | ||
| 716 | |||
| 717 | The reference of the exponent $exp_ref must be defined. Otherwise an exception is thrown. | ||
| 718 | |||
| 719 | =head2 frexpf | ||
| 720 | |||
| 721 | C<static method frexpf : float ($x : float, $exp_ref : int*);> | ||
| 722 | |||
| 723 | Calls native L<frexpf|https://linux.die.net/man/3/frexpf> function defined in C<math.h> in the C language and returns its return value. | ||
| 724 | |||
| 725 | =head2 HUGE_VAL | ||
| 726 | |||
| 727 | C<static method HUGE_VAL : double ();> | ||
| 728 | |||
| 729 | Returns the value of C<HUGE_VAL> macro defined in C<math.h> in the C language and returns its return value. | ||
| 730 | |||
| 731 | =head2 HUGE_VALF | ||
| 732 | |||
| 733 | C<static method HUGE_VALF : float ();> | ||
| 734 | |||
| 735 | Returns the value of C<HUGE_VALF> macro defined in C<math.h> in the C language and returns its return value. | ||
| 736 | |||
| 737 | =head2 hypot | ||
| 738 | |||
| 739 | C<static method hypot : double ($x : double, $y : double);> | ||
| 740 | |||
| 741 | Calls native L<hypot|https://linux.die.net/man/3/hypot> function defined in C<math.h> in the C language and returns its return value. | ||
| 742 | |||
| 743 | =head2 hypotf | ||
| 744 | |||
| 745 | C<static method hypotf : float ($x : float, $y : float);> | ||
| 746 | |||
| 747 | Calls native L<hypotf|https://linux.die.net/man/3/hypotf> function defined in C<math.h> in the C language and returns its return value. | ||
| 748 | |||
| 749 | =head2 ilogb | ||
| 750 | |||
| 751 | C<static method ilogb : int ($x : double);> | ||
| 752 | |||
| 753 | Calls native L<ilogb|https://linux.die.net/man/3/ilogb> function defined in C<math.h> in the C language and returns its return value. | ||
| 754 | |||
| 755 | =head2 ilogbf | ||
| 756 | |||
| 757 | C<static method ilogbf : int ($x : float);> | ||
| 758 | |||
| 759 | Calls native L<ilogbf|https://linux.die.net/man/3/ilogbf> function defined in C<math.h> in the C language and returns its return value. | ||
| 760 | |||
| 761 | =head2 INFINITY | ||
| 762 | |||
| 763 | C<static method INFINITY : double ();> | ||
| 764 | |||
| 765 | Returns the value of C<INFINITY> macro defined in C<math.h> in the C language, and returns the return value as a dobule value. | ||
| 766 | |||
| 767 | =head2 INFINITYF | ||
| 768 | |||
| 769 | C<static method INFINITYF : float ();> | ||
| 770 | |||
| 771 | Returns the value of C<INFINITY> macro defined in C<math.h> in the C language, and the return value as a float value. | ||
| 772 | |||
| 773 | =head2 isfinite | ||
| 774 | |||
| 775 | C<static method isfinite : int ($x : double);> | ||
| 776 | |||
| 777 | Calls native L<isfinite|https://linux.die.net/man/3/isfinite> function defined in C<math.h> in the C language. | ||
| 778 | |||
| 779 | =head2 isfinitef | ||
| 780 | |||
| 781 | C<static method isfinitef : int ($x : float);> | ||
| 782 | |||
| 783 | Calls native L<isfinite|https://linux.die.net/man/3/isfinite> function defined in C<math.h> in the C language. | ||
| 784 | |||
| 785 | =head2 isgreater | ||
| 786 | |||
| 787 | C<static method isgreater : int ($x : double, $y : double);> | ||
| 788 | |||
| 789 | Calls native L<isgreater|https://linux.die.net/man/3/isgreater> function defined in C<math.h> in the C language. | ||
| 790 | |||
| 791 | =head2 isgreaterequal | ||
| 792 | |||
| 793 | C<static method isgreaterequal : int ($x : double, $y : double);> | ||
| 794 | |||
| 795 | Calls native L<isgreaterequal|https://linux.die.net/man/3/isgreaterequal> function defined in C<math.h> in the C language. | ||
| 796 | |||
| 797 | =head2 isgreaterequalf | ||
| 798 | |||
| 799 | C<static method isgreaterequalf : int ($x : float, $y : float);> | ||
| 800 | |||
| 801 | Calls native L<isgreaterequal|https://linux.die.net/man/3/isgreaterequal> function defined in C<math.h> in the C language. | ||
| 802 | |||
| 803 | =head2 isgreaterf | ||
| 804 | |||
| 805 | C<static method isgreaterf : int ($x : float, $y : float);> | ||
| 806 | |||
| 807 | Calls native L<isgreater|https://linux.die.net/man/3/isgreater> function defined in C<math.h> in the C language. | ||
| 808 | |||
| 809 | =head2 isinf | ||
| 810 | |||
| 811 | C<static method isinf : int ($x : double);> | ||
| 812 | |||
| 813 | Calls native L<isinf|https://linux.die.net/man/3/isinf> function defined in C<math.h> in the C language. | ||
| 814 | |||
| 815 | =head2 isinff | ||
| 816 | |||
| 817 | C<static method isinff : int($x : float);> | ||
| 818 | |||
| 819 | Calls native L<isinf|https://linux.die.net/man/3/isinf> function defined in C<math.h> in the C language. | ||
| 820 | |||
| 821 | =head2 isless | ||
| 822 | |||
| 823 | C<static method isless : int ($x : double, $y : double);> | ||
| 824 | |||
| 825 | Calls native L<isless|https://linux.die.net/man/3/isless> function defined in C<math.h> in the C language. | ||
| 826 | |||
| 827 | =head2 islessequal | ||
| 828 | |||
| 829 | C<static method islessequal : int ($x : double, $y : double);> | ||
| 830 | |||
| 831 | Calls native L<islessequal|https://linux.die.net/man/3/islessequal> function defined in C<math.h> in the C language. | ||
| 832 | |||
| 833 | =head2 islessequalf | ||
| 834 | |||
| 835 | C<static method islessequalf : int ($x : float, $y : float);> | ||
| 836 | |||
| 837 | Calls native L<islessequal|https://linux.die.net/man/3/islessequal> function defined in C<math.h> in the C language. | ||
| 838 | |||
| 839 | =head2 islessf | ||
| 840 | |||
| 841 | C<static method islessf : int ($x : float, $y : float);> | ||
| 842 | |||
| 843 | Calls native L<isless|https://linux.die.net/man/3/isless> function defined in C<math.h> in the C language. | ||
| 844 | |||
| 845 | =head2 islessgreater | ||
| 846 | |||
| 847 | C<static method islessgreater : int ($x : double, $y : double);> | ||
| 848 | |||
| 849 | Calls native L<islessgreater|https://linux.die.net/man/3/islessgreater> function defined in C<math.h> in the C language. | ||
| 850 | |||
| 851 | =head2 islessgreaterf | ||
| 852 | |||
| 853 | C<static method islessgreaterf : int ($x : float, $y : float);> | ||
| 854 | |||
| 855 | Calls native L<islessgreater|https://linux.die.net/man/3/islessgreater> function defined in C<math.h> in the C language. | ||
| 856 | |||
| 857 | =head2 isnan | ||
| 858 | |||
| 859 | C<static method isnan : int ($x : double);> | ||
| 860 | |||
| 861 | Calls native L<isnan|https://linux.die.net/man/3/isnan> function defined in C<math.h> in the C language. | ||
| 862 | |||
| 863 | =head2 isnanf | ||
| 864 | |||
| 865 | C<static method isnanf : int ($x : float);> | ||
| 866 | |||
| 867 | Calls native L<isnanf|https://linux.die.net/man/3/isnan> function defined in C<math.h> in the C language. | ||
| 868 | |||
| 869 | =head2 isunordered | ||
| 870 | |||
| 871 | C<static method isunordered : int ($x : double, $y : double);> | ||
| 872 | |||
| 873 | Calls native L<isunordered|https://linux.die.net/man/3/isunordered> function defined in C<math.h> in the C language. | ||
| 874 | |||
| 875 | =head2 isunorderedf | ||
| 876 | |||
| 877 | C<static method isunorderedf : int ($x : float, $y : float);> | ||
| 878 | |||
| 879 | Calls native L<isunordered|https://linux.die.net/man/3/isunordered> function defined in C<math.h> in the C language. | ||
| 880 | |||
| 881 | =head2 labs | ||
| 882 | |||
| 883 | C<static method labs : long ($x : long);> | ||
| 884 | |||
| 885 | Returns the abusolute value of $x. | ||
| 886 | |||
| 887 | =head2 ldexp | ||
| 888 | |||
| 889 | C<static method ldexp : double ($x : double, $exp : int);> | ||
| 890 | |||
| 891 | Calls native L<ldexp|https://linux.die.net/man/3/ldexp> function defined in C<math.h> in the C language and returns its return value. | ||
| 892 | |||
| 893 | =head2 ldexpf | ||
| 894 | |||
| 895 | C<static method ldexpf : float ($x : float, $exp : int);> | ||
| 896 | |||
| 897 | Calls native L<ldexpf|https://linux.die.net/man/3/ldexpf> function defined in C<math.h> in the C language and returns its return value. | ||
| 898 | |||
| 899 | =head2 lgamma | ||
| 900 | |||
| 901 | C<static method lgamma : double ($x : double);> | ||
| 902 | |||
| 903 | Calls native L<lgamma|https://linux.die.net/man/3/lgamma> function defined in C<math.h> in the C language and returns its return value. | ||
| 904 | |||
| 905 | =head2 lgammaf | ||
| 906 | |||
| 907 | C<static method lgammaf : float ($x : float);> | ||
| 908 | |||
| 909 | Calls native L<lgammaf|https://linux.die.net/man/3/lgammaf> function defined in C<math.h> in the C language and returns its return value. | ||
| 910 | |||
| 911 | =head2 log | ||
| 912 | |||
| 913 | C<static method log : double ($x : double);> | ||
| 914 | |||
| 915 | Calls native L<log|https://linux.die.net/man/3/log> function defined in C<math.h> in the C language and returns its return value. | ||
| 916 | |||
| 917 | =head2 log10 | ||
| 918 | |||
| 919 | C<static method log10 : double ($x : double);> | ||
| 920 | |||
| 921 | Calls native L<log10|https://linux.die.net/man/3/log10> function defined in C<math.h> in the C language and returns its return value. | ||
| 922 | |||
| 923 | =head2 log10f | ||
| 924 | |||
| 925 | C<static method log10f : float ($x : float);> | ||
| 926 | |||
| 927 | Calls native L<log10f|https://linux.die.net/man/3/log10f> function defined in C<math.h> in the C language and returns its return value. | ||
| 928 | |||
| 929 | =head2 log1p | ||
| 930 | |||
| 931 | C<static method log1p : double ($x : double);> | ||
| 932 | |||
| 933 | Calls native L<log1p|https://linux.die.net/man/3/log1p> function defined in C<math.h> in the C language and returns its return value. | ||
| 934 | |||
| 935 | =head2 log1pf | ||
| 936 | |||
| 937 | C<static method log1pf : float ($x : float);> | ||
| 938 | |||
| 939 | Calls native L<log1pf|https://linux.die.net/man/3/log1pf> function defined in C<math.h> in the C language and returns its return value. | ||
| 940 | |||
| 941 | =head2 log2 | ||
| 942 | |||
| 943 | C<static method log2 : double ($x : double);> | ||
| 944 | |||
| 945 | Calls native L<log2|https://linux.die.net/man/3/log2> function defined in C<math.h> in the C language and returns its return value. | ||
| 946 | |||
| 947 | =head2 log2f | ||
| 948 | |||
| 949 | C<static method log2f : float ($x : float);> | ||
| 950 | |||
| 951 | Calls native L<log2f|https://linux.die.net/man/3/log2f> function defined in C<math.h> in the C language and returns its return value. | ||
| 952 | |||
| 953 | =head2 logb | ||
| 954 | |||
| 955 | C<static method logb : double ($x : double);> | ||
| 956 | |||
| 957 | Calls native L<logb|https://linux.die.net/man/3/logb> function defined in C<math.h> in the C language and returns its return value. | ||
| 958 | |||
| 959 | =head2 logbf | ||
| 960 | |||
| 961 | C<static method logbf : float ($x : float);> | ||
| 962 | |||
| 963 | Calls native L<logbf|https://linux.die.net/man/3/logbf> function defined in C<math.h> in the C language and returns its return value. | ||
| 964 | |||
| 965 | =head2 logf | ||
| 966 | |||
| 967 | C<static method logf : float ($x : float);> | ||
| 968 | |||
| 969 | Calls native L<logf|https://linux.die.net/man/3/logf> function defined in C<math.h> in the C language and returns its return value. | ||
| 970 | |||
| 971 | =head2 lround | ||
| 972 | |||
| 973 | C<static method lround : long ($x : double);> | ||
| 974 | |||
| 975 | Calls native L<llround|https://linux.die.net/man/3/llround> function defined in C<math.h> in the C language and returns its return value. | ||
| 976 | |||
| 977 | =head2 lroundf | ||
| 978 | |||
| 979 | C<static method lroundf : long ($x : float);> | ||
| 980 | |||
| 981 | Calls native L<llroundf|https://linux.die.net/man/3/llroundf> function defined in C<math.h> in the C language and returns its return value. | ||
| 982 | |||
| 983 | =head2 modf | ||
| 984 | |||
| 985 | C<static method modf : double ($x : double, $intpart_ref : double*);> | ||
| 986 | |||
| 987 | Calls native L<modf|https://linux.die.net/man/3/modf> function defined in C<math.h> in the C language and returns its return value. | ||
| 988 | |||
| 989 | Exceptions: | ||
| 990 | |||
| 991 | The reference of the int part $intpart_ref must be defined. Otherwise an exception is thrown. | ||
| 992 | |||
| 993 | =head2 modff | ||
| 994 | |||
| 995 | C<static method modff : float ($x : float, $intpart_ref : float*);> | ||
| 996 | |||
| 997 | Calls native L<modff|https://linux.die.net/man/3/modff> function defined in C<math.h> in the C language and returns its return value. | ||
| 998 | |||
| 999 | Exceptions: | ||
| 1000 | |||
| 1001 | The reference of the int part $intpart_ref must be defined. Otherwise an exception is thrown. | ||
| 1002 | |||
| 1003 | =head2 NAN | ||
| 1004 | |||
| 1005 | C<static method NAN : double ();> | ||
| 1006 | |||
| 1007 | Returns the value of C<NAN> macro defined in C<math.h> in the C language. | ||
| 1008 | |||
| 1009 | =head2 nan | ||
| 1010 | |||
| 1011 | C<static method nan : double ($string : string);> | ||
| 1012 | |||
| 1013 | Calls native L<nan|https://linux.die.net/man/3/nan> function defined in C<math.h> in the C language and returns its return value. | ||
| 1014 | |||
| 1015 | Exceptions: | ||
| 1016 | |||
| 1017 | The $string must be defined. Otherwise an exception is thrown. | ||
| 1018 | |||
| 1019 | =head2 NANF | ||
| 1020 | |||
| 1021 | C<static method NANF : float ();> | ||
| 1022 | |||
| 1023 | Returns the value of C<NAN> macro defined in C<math.h> in the C language, and return the return value as a float type. | ||
| 1024 | |||
| 1025 | =head2 nanf | ||
| 1026 | |||
| 1027 | C<static method nanf : float ($string : string);> | ||
| 1028 | |||
| 1029 | Calls native L<nanf|https://linux.die.net/man/3/nanf> function defined in C<math.h> in the C language and returns its return value. | ||
| 1030 | |||
| 1031 | Exceptions: | ||
| 1032 | |||
| 1033 | The $string must be defined. Otherwise an exception is thrown. | ||
| 1034 | |||
| 1035 | =head2 nearbyint | ||
| 1036 | |||
| 1037 | C<static method nearbyint : double ($x : double);> | ||
| 1038 | |||
| 1039 | Calls native L<nearbyint|https://linux.die.net/man/3/nearbyint> function defined in C<math.h> in the C language and returns its return value. | ||
| 1040 | |||
| 1041 | =head2 nearbyintf | ||
| 1042 | |||
| 1043 | C<static method nearbyintf : float ($x : float);> | ||
| 1044 | |||
| 1045 | Calls native L<nearbyintf|https://linux.die.net/man/3/nearbyintf> function defined in C<math.h> in the C language and returns its return value. | ||
| 1046 | |||
| 1047 | =head2 nextafter | ||
| 1048 | |||
| 1049 | C<static method nextafter : double ($x : double, $y : double);> | ||
| 1050 | |||
| 1051 | Calls native L<nextafter|https://linux.die.net/man/3/nextafter> function defined in C<math.h> in the C language and returns its return value. | ||
| 1052 | |||
| 1053 | =head2 nextafterf | ||
| 1054 | |||
| 1055 | C<static method nextafterf : float ($x : float, $y : float);> | ||
| 1056 | |||
| 1057 | Calls native L<nextafterf|https://linux.die.net/man/3/nextafterf> function defined in C<math.h> in the C language and returns its return value. | ||
| 1058 | |||
| 1059 | =head2 nexttoward | ||
| 1060 | |||
| 1061 | C<static method nexttoward : double ($x : double, $y : double);> | ||
| 1062 | |||
| 1063 | Calls native L<nexttoward|https://linux.die.net/man/3/nexttoward> function defined in C<math.h> in the C language and returns its return value. | ||
| 1064 | |||
| 1065 | =head2 nexttowardf | ||
| 1066 | |||
| 1067 | C<static method nexttowardf : float ($x : float, $y : double);> | ||
| 1068 | |||
| 1069 | Calls native L<nexttowardf|https://linux.die.net/man/3/nexttowardf> function defined in C<math.h> in the C language and returns its return value. | ||
| 1070 | |||
| 1071 | =head2 PI | ||
| 1072 | |||
| 1073 | C<static method PI : double ();> | ||
| 1074 | |||
| 1075 | Returns pi. This value is C<0x1.921fb54442d18p+1>. | ||
| 1076 | |||
| 1077 | =head2 pow | ||
| 1078 | |||
| 1079 | C<static method pow : double ($x : double, $y : double);> | ||
| 1080 | |||
| 1081 | Calls native L<pow|https://linux.die.net/man/3/pow> function defined in C<math.h> in the C language and returns its return value. | ||
| 1082 | |||
| 1083 | =head2 powf | ||
| 1084 | |||
| 1085 | C<static method powf : float ($x : float, $y : float);> | ||
| 1086 | |||
| 1087 | Calls native L<powf|https://linux.die.net/man/3/powf> function defined in C<math.h> in the C language and returns its return value. | ||
| 1088 | |||
| 1089 | =head2 remainder | ||
| 1090 | |||
| 1091 | C<static method remainder : double ($x : double, $y : double);> | ||
| 1092 | |||
| 1093 | Calls native L<remainder|https://linux.die.net/man/3/remainder> function defined in C<math.h> in the C language and returns its return value. | ||
| 1094 | |||
| 1095 | =head2 remainderf | ||
| 1096 | |||
| 1097 | C<static method remainderf : float ($x : float, $y : float);> | ||
| 1098 | |||
| 1099 | Calls native L<remainderf|https://linux.die.net/man/3/remainderf> function defined in C<math.h> in the C language and returns its return value. | ||
| 1100 | |||
| 1101 | =head2 remquo | ||
| 1102 | |||
| 1103 | C<static method remquo : double ($x : double, $y : double, $quo_ref : int*);> | ||
| 1104 | |||
| 1105 | Calls native L<remquo|https://linux.die.net/man/3/remquo> function defined in C<math.h> in the C language and returns its return value. | ||
| 1106 | |||
| 1107 | Exceptions: | ||
| 1108 | |||
| 1109 | The reference of the quotient part $quo_ref must be defined. Otherwise an exception is thrown. | ||
| 1110 | |||
| 1111 | =head2 remquof | ||
| 1112 | |||
| 1113 | C<static method remquof : float ($x : float, $y : float, $quo_ref : int*);> | ||
| 1114 | |||
| 1115 | Calls native L<remquof|https://linux.die.net/man/3/remquof> function defined in C<math.h> in the C language and returns its return value. | ||
| 1116 | |||
| 1117 | Exceptions: | ||
| 1118 | |||
| 1119 | The reference of the quotient part $quo_ref must be defined. Otherwise an exception is thrown. | ||
| 1120 | |||
| 1121 | =head2 round | ||
| 1122 | |||
| 1123 | C<static method round : double ($x : double);> | ||
| 1124 | |||
| 1125 | Calls native L<round|https://linux.die.net/man/3/round> function defined in C<math.h> in the C language and returns its return value. | ||
| 1126 | |||
| 1127 | =head2 roundf | ||
| 1128 | |||
| 1129 | C<static method roundf : float ($x : float);> | ||
| 1130 | |||
| 1131 | Calls native L<roundf|https://linux.die.net/man/3/roundf> function defined in C<math.h> in the C language and returns its return value. | ||
| 1132 | |||
| 1133 | =head2 scalbln | ||
| 1134 | |||
| 1135 | C<static method scalbln : double ($x : double, $exp : long);> | ||
| 1136 | |||
| 1137 | Calls native L<scalbln|https://linux.die.net/man/3/scalbln> function defined in C<math.h> in the C language and returns its return value. | ||
| 1138 | |||
| 1139 | =head2 scalblnf | ||
| 1140 | |||
| 1141 | C<static method scalblnf : float ($x : float, $exp : long);> | ||
| 1142 | |||
| 1143 | Calls native L<scalblnf|https://linux.die.net/man/3/scalblnf> function defined in C<math.h> in the C language and returns its return value. | ||
| 1144 | |||
| 1145 | =head2 scalbn | ||
| 1146 | |||
| 1147 | C<static method scalbn : double ($x : double, $exp : int);> | ||
| 1148 | |||
| 1149 | Calls native L<scalbn|https://linux.die.net/man/3/scalbn> function defined in C<math.h> in the C language and returns its return value. | ||
| 1150 | |||
| 1151 | =head2 scalbnf | ||
| 1152 | |||
| 1153 | C<static method scalbnf : float ($x : float, $exp : int);> | ||
| 1154 | |||
| 1155 | Calls native L<scalbnf|https://linux.die.net/man/3/scalbnf> function defined in C<math.h> in the C language and returns its return value. | ||
| 1156 | |||
| 1157 | =head2 signbit | ||
| 1158 | |||
| 1159 | C<static method signbit : int ($x : double);> | ||
| 1160 | |||
| 1161 | Calls native L<signbit|https://linux.die.net/man/3/signbit> function defined in C<math.h> in the C language and returns its return value. | ||
| 1162 | |||
| 1163 | =head2 signbitf | ||
| 1164 | |||
| 1165 | C<static method signbitf : int ($x : float);> | ||
| 1166 | |||
| 1167 | Calls native L<signbit|https://linux.die.net/man/3/signbit> function defined in C<math.h> in the C language and returns its return value. | ||
| 1168 | |||
| 1169 | =head2 sin | ||
| 1170 | |||
| 1171 | C<static method sin : double ($x : double);> | ||
| 1172 | |||
| 1173 | Calls native L<sin|https://linux.die.net/man/3/sin> function defined in C<math.h> in the C language and returns its return value. | ||
| 1174 | |||
| 1175 | =head2 sinf | ||
| 1176 | |||
| 1177 | C<static method sinf : float ($x : float);> | ||
| 1178 | |||
| 1179 | Calls native L<sinf|https://linux.die.net/man/3/sinf> function defined in C<math.h> in the C language and returns its return value. | ||
| 1180 | |||
| 1181 | =head2 sinh | ||
| 1182 | |||
| 1183 | C<static method sinh : double ($x : double);> | ||
| 1184 | |||
| 1185 | Calls native L<sinh|https://linux.die.net/man/3/sinh> function defined in C<math.h> in the C language and returns its return value. | ||
| 1186 | |||
| 1187 | =head2 sinhf | ||
| 1188 | |||
| 1189 | C<static method sinhf : float ($x : float);> | ||
| 1190 | |||
| 1191 | Calls native L<sinhf|https://linux.die.net/man/3/sinhf> function defined in C<math.h> in the C language and returns its return value. | ||
| 1192 | |||
| 1193 | =head2 sqrt | ||
| 1194 | |||
| 1195 | C<static method sqrt : double ($x : double);> | ||
| 1196 | |||
| 1197 | Calls native L<sqrt|https://linux.die.net/man/3/sqrt> function defined in C<math.h> in the C language and returns its return value. | ||
| 1198 | |||
| 1199 | =head2 sqrtf | ||
| 1200 | |||
| 1201 | C<static method sqrtf : float ($x : float);> | ||
| 1202 | |||
| 1203 | Calls native L<sqrtf|https://linux.die.net/man/3/sqrtf> function defined in C<math.h> in the C language and returns its return value. | ||
| 1204 | |||
| 1205 | =head2 tan | ||
| 1206 | |||
| 1207 | C<static method tan : double ($x : double);> | ||
| 1208 | |||
| 1209 | Calls native L<tan|https://linux.die.net/man/3/tan> function defined in C<math.h> in the C language and returns its return value. | ||
| 1210 | |||
| 1211 | =head2 tanf | ||
| 1212 | |||
| 1213 | C<static method tanf : float ($x : float);> | ||
| 1214 | |||
| 1215 | Calls native L<tanf|https://linux.die.net/man/3/tanf> function defined in C<math.h> in the C language and returns its return value. | ||
| 1216 | |||
| 1217 | =head2 tanh | ||
| 1218 | |||
| 1219 | C<static method tanh : double ($x : double);> | ||
| 1220 | |||
| 1221 | Calls native L<tanh|https://linux.die.net/man/3/tanh> function defined in C<math.h> in the C language and returns its return value. | ||
| 1222 | |||
| 1223 | =head2 tanhf | ||
| 1224 | |||
| 1225 | C<static method tanhf : float ($x : float);> | ||
| 1226 | |||
| 1227 | Calls native L<tanhf|https://linux.die.net/man/3/tanhf> function defined in C<math.h> in the C language and returns its return value. | ||
| 1228 | |||
| 1229 | =head2 tgamma | ||
| 1230 | |||
| 1231 | C<static method tgamma : double ($x : double);> | ||
| 1232 | |||
| 1233 | Calls native L<tgamma|https://linux.die.net/man/3/tgamma> function defined in C<math.h> in the C language and returns its return value. | ||
| 1234 | |||
| 1235 | =head2 tgammaf | ||
| 1236 | |||
| 1237 | C<static method tgammaf : float ($x : float);> | ||
| 1238 | |||
| 1239 | Calls native L<tgammaf|https://linux.die.net/man/3/tgammaf> function defined in C<math.h> in the C language and returns its return value. | ||
| 1240 | |||
| 1241 | =head2 trunc | ||
| 1242 | |||
| 1243 | C<static method trunc : double ($x : double);> | ||
| 1244 | |||
| 1245 | Calls native L<trunc|https://linux.die.net/man/3/trunc> function defined in C<math.h> in the C language and returns its return value. | ||
| 1246 | |||
| 1247 | =head2 truncf | ||
| 1248 | |||
| 1249 | C<static method truncf : float ($x : float);> | ||
| 1250 | |||
| 1251 | Calls native L<truncf|https://linux.die.net/man/3/truncf> function defined in C<math.h> in the C language and returns its return value. | ||
| 1252 | |||
| 1253 | =head1 Copyright & License | ||
| 1254 | |||
| 1255 | Copyright (c) 2023 Yuki Kimoto | ||
| 1256 | |||
| 1257 | MIT License |