一些数学公式的实现 kaopur/maths

此类库封装了一些PHP没有直接提供,但是比较常用的方法,有排列、组合、质数等一系列操作。

安装方法:

composer require kaopur/maths
在国内,使用composer一般需要“科学上网法”,否则安装会异常缓慢,甚至安装失败。


如果你不知道什么是composer,请查看composer的官方网站:https://getcomposer.org

如果你打开上面的网站非常慢,甚至打不开,可以查看非官方中文网站:http://www.phpcomposer.com

或者进入此网站下载源码:https://github.com/kaopur/maths

当然,也欢迎你来和我一起完善此数学类库,一起为开源贡献一份微薄之力。

下面是部分方法的使用示例:

$value = \Kaopur\Maths::c(3,2);
var_dump($value);

$value = \Kaopur\Maths::combination($array, 2);
var_dump($value);

$value = \Kaopur\Maths::p(3,2);
var_dump($value);

$value = \Kaopur\Maths::permutation($array, 2);
var_dump($value);

$value = \Kaopur\Maths::primeNumber(100);
var_dump($value);

$value = \Kaopur\Maths::isPrimeNumber(4);
var_dump($value);



评论:

kidtokidboise
2019-01-18 16:04
<a href="http://www.atolyekarinca.com/nike-roshe-run-i-gr%C3%BCn-blau-scarpeb">nike roshe run i gr眉n blau</a> <a href="http://www.dfarrie.com/nike-air-max-2019-green-uk-shoeso">nike air max 2019 green uk</a> <a href="http://www.mwsuperstore.com/nike-air-max-2014-fl%C3%A5den-bl%C3%A5-kurpesb">nike air max 2014 fl氓den bl氓</a> <a href="http://www.shanamorgan.com/nike-air-safari-black-white-zapatost">nike air safari black white</a> <a href="http://www.crisgarrett.com/converse-femme-all-star-blanche-shoesz">converse femme all star blanche</a> <a href="http://www.rejuvmedia.com/kobe-6-tout-star-for-vente-list-schuhec">kobe 6 tout star for vente list</a>
kidtokidboise http://www.kidtokidboise.com/
beverlywater
2019-01-04 01:27
<a href="http://www.dreamybelize.net/air-jordan-future-low-schwarz-queen-kurpesa">air jordan future low schwarz queen</a> <a href="http://www.drspa.net/nike-hyperdunk-2014-verde-negro-chaussuresb">nike hyperdunk 2014 verde negro</a> <a href="http://www.dumaworks.net/herre-asics-gel-kinsei-4-lyser%C3%B8d-bl%C3%A5-obuvd">herre asics gel kinsei 4 lyser酶d bl氓</a> <a href="http://www.dylanhassinger.net/nike-hyperdunk-2014-low-p%C3%BArpura-gris-chaussuresa">nike hyperdunk 2014 low p煤rpura gris</a> <a href="http://www.emergexplanning.net/nike-jordan-cp3-vi-ae-noir-butya">nike jordan cp3 vi ae noir</a> <a href="http://www.emtecsolution.net/nike-free-run-5-junior-sort-scarpef">nike free run 5 junior sort</a>
beverlywater http://www.beverlywater.net/
fabloomsilk
2019-01-02 02:22
<a href="http://www.eworklife.com/nike-womens-elandon-roberts-limited-white-road-jersey-new-england-patriots-nfl-52-vapor-untouchable-nflr">nike womens elandon roberts limited white road jersey new england patriots nfl 52 vapor untouchable</a> <a href="http://www.fullcountkbo.com/nike-dunk-free-basketball-skoa">nike dunk free basketball</a> <a href="http://www.shackofstones.com/zx-flux-junior-black-converse-sneakere">zx flux junior black converse</a> <a href="http://www.tamworthbacon.com/mujeres-nike-free-flyknit-4.0-p%C3%BArpura-kurpesa">mujeres nike free flyknit 4.0 p煤rpura</a> <a href="http://www.dvmengineers.com/all-red-nike-cortez-for-sale-sneakerb">all red nike cortez for sale</a> <a href="http://www.questoffine.com/white-red-mens-nike-air-force-1-high-shoes-shoesg">white red mens nike air force 1 high shoes</a>
fabloomsilk http://www.fabloomsilk.com/
tustinvillage
2018-12-31 06:54
<a href="http://www.lumalender.com/nike-air-jordan-5-wei%C3%9F-blau-chaussurese">nike air jordan 5 wei脽 blau</a> <a href="http://www.millertiregi.com/nike-air-rejuven8-mule-3-blanco-verde-butya">nike air rejuven8 mule 3 blanco verde</a> <a href="http://www.bkgutters.com/adidas-eqt-b%C3%B8rn-sko-gr%C3%B8n-gr%C3%A5-schuheg">adidas eqt b酶rn sko gr酶n gr氓</a> <a href="http://www.celebritywm.com/ralph-lauren-long-sleeve-polo-shirt-kids-poloz">ralph lauren long sleeve polo shirt kids</a> <a href="http://www.chachiscoffee.com/nike-kyrie-2-alle-schwarz-chaussuresa">nike kyrie 2 alle schwarz</a> <a href="http://www.flypiip.com/supra-tk-society-p%C3%BArpura-schuhed">supra tk society p煤rpura</a>
tustinvillage http://www.tustinvillage.com/
eyecovet
2018-12-28 06:09
<a href="http://www.gccqueens.com/nike-zoom-pegasus-33-dam%C3%A4nner-silber-grau-butya">nike zoom pegasus 33 dam盲nner silber grau</a> <a href="http://www.diumsolution.com/nike-free-flyknit-4.0-paris-edition-for-salg-obuvb">nike free flyknit 4.0 paris edition for salg</a> <a href="http://www.daybel.com/nike-air-max-thea-dam%C3%A4nner-grau-silber-scarpec">nike air max thea dam盲nner grau silber</a> <a href="http://www.marybethyates.com/vibram-fivefingers-flow-amarillo-negro-schuhef">vibram fivefingers flow amarillo negro</a> <a href="http://www.jaskcsun.com/air-jordan-12-schwarz-varsity-rot-wei%C3%9F-metalleic-silber-scarpeb">air jordan 12 schwarz varsity rot wei脽 metalleic silber</a> <a href="http://www.maromina.com/herre-air-jordan-retro-12-basketballe-sko-quality-schuhee">herre air jordan retro 12 basketballe sko quality</a>
[url=http://www.eyecovet.com/]eyecovet[/url]
whitegayshop
2018-12-27 19:39
<a href="http://www.goodbuysindia.com/nike-tanjun-junior-trainers-negro-rosado-schuheg">nike tanjun junior trainers negro rosado</a> <a href="http://www.marijuanapeer.com/nike-flyknit-trainer-electric-gelb-dot-scarpeg">nike flyknit trainer electric gelb dot</a> <a href="http://www.monolitcenter.com/nike-mercurial-vapor-ix-s%C3%B8lv-gr%C3%B8n-kurpesf">nike mercurial vapor ix s酶lv gr酶n</a> <a href="http://www.podcastboyz.com/nike-solarsoft-mule-gituttio-argento-schuheg">nike solarsoft mule gituttio argento</a> <a href="http://www.tentplezier.com/nike-air-max-90-infrarosso-ultra-schuheb">nike air max 90 infrarosso ultra</a> <a href="http://www.uacurryclub.com/nike-air-max-90-triple-svart-online-chaussuresd">nike air max 90 triple svart online</a>
whitegayshop http://www.whitegayshop.com/

发表评论:

Powered by emlog 冀ICP备13011830号-1