rockiger/fintils

金融计算工具。在 betagainst.fun 中使用。

1.0.0 2022-05-26 06:57 UTC

This package is auto-updated.

Last update: 2024-09-08 15:08:44 UTC


README

MathPHP 中不存在但用于金融计算的实用工具。

安装

此项目使用 composer。

$ composer require rockiger/fintils

用法

生成随机密码。

<?php

use Rockiger\Fintils;

// Calculate the return of the given prices:
//[0, 0.1, 0.0454545454545454, -0.0869565217391305, -0.0476190476190477]
$returns = Fintils::Rs([100, 110, 115, 105, 100])