josecelano/php-complex
Composer 安装命令:
composer require josecelano/php-complex
包简介
PHP Complex class implemented with arbitrary-precision decimal arithmetic
README 文档
README
I'm working on a PHP Fractal kata:
In order to get be able to zoom in the final Mandelbrot Set image as much as I want I need arbitrary precision for some complex number operations. In this package I'have implemented only the operations needed.
This is the arbitrary precision package being used:
Prerequisites
- PHP 7.4
Installation
docker build -t php-complex .
docker run -it --rm \
-v "$PWD":/usr/src/app \
-w /usr/src/app \
-u $(id -u ${USER}):$(id -g ${USER}) \
php-complex \
composer install
Running the tests
docker run -it --rm \
-v "$PWD":/usr/src/app \
-w /usr/src/app \
-u $(id -u ${USER}):$(id -g ${USER}) \
php-complex
Acknowledgments
TODO
- Allow to define precision for each complex instance
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2020-02-29