更多>
最新下载
24小时阅读排行榜
- 1 C#怎么进行类型转换 C# int.Parse与Convert.ToInt32区别方法
- 2 mysql如何设置默认值_mysql alter table default值操作
- 3 c# Server-Sent Events (SSE) 和 SignalR 在实时推送中的选择
- 4 Python 并发程序中的资源清理问题
- 5 MySQL type=ALL / index / ref / eq_ref / range 的实际含义对比
- 6 javascript拖放功能如何实现_原生drag和drop api怎样使用【教程】
- 7 Golang中频繁创建对象如何优化_Golang对象复用与内存优化
- 8 PHP 中 mktime() 函数参数类型错误的修复指南
- 9 PHP 中 mktime() 函数因参数类型严格校验导致的致命错误详解
- 10 PHP中mktime()函数调用错误的修复方法
- 11 如何在动态生成表单时,通过表单外部按钮(如导航栏按钮)触发提交?
- 12 WordPress 中 admin_notices 通知显示位置异常的解决方案
- 13 WordPress 后台通知(admin_notices)显示错位的解决方案
- 14 Pyomo教程:如何在优化模型中为每个请求动态定义时间窗口并施加能量约束
- 15 如何在 Go 中对结构体切片进行降序排序
更多>
最新教程
-
- Node.js 教程
- 16399 2025-08-28
-
- CSS3 教程
- 1547174 2025-08-27
-
- Rust 教程
- 23498 2025-08-27
-
- Vue 教程
- 25920 2025-08-22
-
- PostgreSQL 教程
- 22419 2025-08-21
-
- Git 教程
- 9355 2025-08-21
下载首页 / 类库下载 / 其它类库
<?php
require_once(__DIR__ . '/../vendor/autoload.php');
// Let's consider some really basic examples.
echo '<pre>';
// Adding up elements in an array. But wait! First we need an array...
// Let's get a random sample of 50 values, in the range 0, 100.
$random = NumbersPHP\Statistic::randomSample(0, 100, 50);
echo 'Random = {' . implode(', ', $random) . "}\n";
// Add them up...
$sum = NumbersPHP\Basic::sum($random);
echo 'Sum of Random = ' . $sum . "\n";
// We can do some other cool stuff as well. Like find the GCD between
// two integers.
$gcd = NumbersPHP\Basic::gcd(100, 10);
echo 'GCD amongst 100 and 10 = ' . $gcd;
echo '</pre>';如果你需要处理很多条数字数据,那么你一定能用得到本库。
本站所有资源都是由网友投搞发布,或转载各大下载站,请自行检测软件的完整性!本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!如有侵权请联系我们删除下架,联系方式:admin@php.cn
