math/rubygem-cmath: Add rubygem-cmath 1.0.0

CMath provides trigonometric and transcendental functions for complex numbers.

CMath is a library that provides trigonometric and transcendental functions for
complex numbers. The functions in this module accept integers, floating-point
numbers or complex numbers as arguments.

Note that the selection of functions is similar, but not identical, to that in
module math. The reason for having two modules is that some users aren't
interested in complex numbers, and perhaps don't even know what they are. They
would rather have Math.sqrt(-1) raise an exception than return a complex number.
This commit is contained in:
Po-Chuan Hsieh 2024-11-03 21:20:48 +08:00
parent f452d7b439
commit c35a178b34
No known key found for this signature in database
GPG key ID: 9A4BD10F002DD04B
4 changed files with 30 additions and 0 deletions

View file

@ -1140,6 +1140,7 @@
SUBDIR += rubiks
SUBDIR += rubygem-algebra
SUBDIR += rubygem-bigdecimal
SUBDIR += rubygem-cmath
SUBDIR += rubygem-enumerable-statistics
SUBDIR += rubygem-expression_parser
SUBDIR += rubygem-fftw3

View file

@ -0,0 +1,16 @@
PORTNAME= cmath
PORTVERSION= 1.0.0
CATEGORIES= math rubygems
MASTER_SITES= RG
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Provide trigonometric and transcendental functions for complex number
WWW= https://github.com/ruby/cmath
LICENSE= BSD2CLAUSE
USES= gem
NO_ARCH= yes
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1730540892
SHA256 (rubygem/cmath-1.0.0.gem) = 152d2b90edb33765d7fa0f7c9f650d9a6661382804add8ee6e4bce0b7d377ff6
SIZE (rubygem/cmath-1.0.0.gem) = 6656

View file

@ -0,0 +1,10 @@
CMath provides trigonometric and transcendental functions for complex numbers.
CMath is a library that provides trigonometric and transcendental functions for
complex numbers. The functions in this module accept integers, floating-point
numbers or complex numbers as arguments.
Note that the selection of functions is similar, but not identical, to that in
module math. The reason for having two modules is that some users aren't
interested in complex numbers, and perhaps don't even know what they are. They
would rather have Math.sqrt(-1) raise an exception than return a complex number.