@aiwanna-team/nodejs-lib
v0.1.1
Published
一个简单的Node.js数学工具库
Maintainers
Readme
��#� �>��� �@�a�i�w�a�n�n�a�-�t�e�a�m�/�n�o�d�e�j�s�-�l�i�b�
�
��NN�{US�vN�o�d�e�.�j�s�pef[�]wQ�^��c�O�W@x�v�{/gЏ�{�R��0
�
�#�#� �(' �yr'
�
�-� �=�"� �*�*��{USf(u*�*� �-� ��c�O�v�vA�P�I��c�S
�-� �=��� �*�*�T�y�p�e�S�c�r�i�p�t�/ec*�*� �-� ��[te�v{|�W�[IN
�-� ��& �*�*�ؚ'���� �-� �{�ϑ�~�eY萝OV�
�-� �>��� ����[teKmՋ�� �-� �hQb��vUSCQKmՋ���v
�-� �=��� �����~�ech�� �-� ��[te�vA�P�I��ech�TO(u:y�O
�
�#�#� �=���� ��[ň
�
�#�#�#� �O(u �n�p�m�
�
����b�a�s�h�
�n�p�m� �i�n�s�t�a�l�l� �@�a�i�w�a�n�n�a�-�t�e�a�m�/�n�o�d�e�j�s�-�l�i�b�
����
�
�#�#�#� �O(u �y�a�r�n�
�
����b�a�s�h�
�y�a�r�n� �a�d�d� �@�a�i�w�a�n�n�a�-�t�e�a�m�/�n�o�d�e�j�s�-�l�i�b�
����
�
�#�#�#� �O(u �p�n�p�m�
�
����b�a�s�h�
�p�n�p�m� �a�d�d� �@�a�i�w�a�n�n�a�-�t�e�a�m�/�n�o�d�e�j�s�-�l�i�b�
����
�
�#�#� �=��� �O(u�e�l
�
�#�#�#� �E�S�!jWW�[eQ
�
����j�a�v�a�s�c�r�i�p�t�
�i�m�p�o�r�t� �{� �a�d�d� �}� �f�r�o�m� �'�@�a�i�w�a�n�n�a�-�t�e�a�m�/�n�o�d�e�j�s�-�l�i�b�'�;�
�
�/�/� ����{$N*NpeW[�v�T
�c�o�n�s�t� �r�e�s�u�l�t� �=� �a�d�d�(�5�,� �3�)�;�
�c�o�n�s�o�l�e�.�l�o�g�(�r�e�s�u�l�t�)�;� �/�/� ����Q:� �8�
����
�
�#�#�#� �؞���[eQ
�
����j�a�v�a�s�c�r�i�p�t�
�i�m�p�o�r�t� �a�d�d� �f�r�o�m� �'�@�a�i�w�a�n�n�a�-�t�e�a�m�/�n�o�d�e�j�s�-�l�i�b�'�;�
�
�c�o�n�s�t� �r�e�s�u�l�t� �=� �a�d�d�(�1�0�,� �2�0�)�;�
�c�o�n�s�o�l�e�.�l�o�g�(�r�e�s�u�l�t�)�;� �/�/� ����Q:� �3�0�
����
�
�#�#�#� �C�o�m�m�o�n�J�S��[eQ
�
����j�a�v�a�s�c�r�i�p�t�
�c�o�n�s�t� �{� �a�d�d� �}� �=� �r�e�q�u�i�r�e�(�'�@�a�i�w�a�n�n�a�-�t�e�a�m�/�n�o�d�e�j�s�-�l�i�b�'�)�;�
�
�c�o�n�s�t� �r�e�s�u�l�t� �=� �a�d�d�(�1�.�5�,� �2�.�5�)�;�
�c�o�n�s�o�l�e�.�l�o�g�(�r�e�s�u�l�t�)�;� �/�/� ����Q:� �4�
����
�
�#�#� �=��� �A�P�I��ech
�
�#�#�#� �a�d�d�(�a�,� �b�)�
�
����{$NNpeW[�v�T0
�
����Spe:���
�-� ��a�� �(�n�u�m�b�e�r�)�:� �,{�NNpeW[
�-� ��b�� �(�n�u�m�b�e�r�)�:� �,{�NNpeW[
�
���ԏ�V<P:���
�-� �(�n�u�m�b�e�r�)�:� �$NNpeW[�v�T
�
����b�Q_8^:���
�-� �S_�N�N�Spe
N/fpeW[{|�W�e��b�Q��:� �"��Spe�_{�/fpeW[{|�W"�
�
���:y�O:��*�
�
����j�a�v�a�s�c�r�i�p�t�
�i�m�p�o�r�t� �{� �a�d�d� �}� �f�r�o�m� �'�@�a�i�w�a�n�n�a�-�t�e�a�m�/�n�o�d�e�j�s�-�l�i�b�'�;�
�
�/�/� �ckpe�v�R
�c�o�n�s�o�l�e�.�l�o�g�(�a�d�d�(�2�,� �3�)�)�;� �/�/� �5�
�
�/�/� ��pe�v�R � �
�c�o�n�s�o�l�e�.�l�o�g�(�a�d�d�(�-�1�,� �-�2�)�)�;� �/�/� �-�3�
�
�/�/� �ck�pe�v�R
�c�o�n�s�o�l�e�.�l�o�g�(�a�d�d�(�-�5�,� �1�0�)�)�;� �/�/� �5�
�
�/�/� �\pe�v�R
�c�o�n�s�o�l�e�.�l�o�g�(�a�d�d�(�1�.�5�,� �2�.�5�)�)�;� �/�/� �4�
�
�/�/� �S+T���vЏ�{
�c�o�n�s�o�l�e�.�l�o�g�(�a�d�d�(�0�,� �5�)�)�;� �/�/� �5�
�
�/�/� ���Yt
�t�r�y� �{�
� � �a�d�d�(�'�1�'�,� �2�)�;� �/�/� ��b�Q��
�}� �c�a�t�c�h� �(�e�r�r�o�r�)� �{�
� � �c�o�n�s�o�l�e�.�e�r�r�o�r�(�e�r�r�o�r�.�m�e�s�s�a�g�e�)�;� �/�/� �"��Spe�_{�/fpeW[{|�W"�
�}�
����
�
�#�#� �=� ��_�S
�
�#�#�#� �,g0W�_�S
�
����b�a�s�h�
�#� �KQ��y��v
�g�i�t� �c�l�o�n�e� �<�r�e�p�o�s�i�t�o�r�y�-�u�r�l�>�
�c�d� �n�o�d�e�j�s�-�l�i�b�
�
�#� ��[ň�OV�
�n�p�m� �i�n�s�t�a�l�l�
�
�#� ��_�S!j_ �(��v,T�e�N�S�f)�
�n�p�m� �r�u�n� �d�e�v�
�
�#� �{|�W�h�g
�n�p�m� �r�u�n� �t�y�p�e�-�c�h�e�c�k�
�
�#� ��g�^y��v
�n�p�m� �r�u�n� �b�u�i�l�d�
�
�#� �ЏL�KmՋ
�n�p�m� �t�e�s�t�
�
�#� ��v,T!j_NЏL�KmՋ
�n�p�m� �r�u�n� �t�e�s�t�:�w�a�t�c�h�
�
�#� �ЏL�KmՋU�I�Lub�
�n�p�m� �r�u�n� �t�e�s�t�:�u�i�
����
�
�#�#�#� �y��v�~�g
�
����
�n�o�d�e�j�s�-�l�i�b�/�
�%�%�% �s�r�c�/�
�% � � �%�%�% �i�n�d�e�x�.�t�s� � � � � � � � � � �#� �;NeQ�S�e�N
�%�%�% �t�e�s�t�s�/�
�% � � �%�%�% �a�d�d�.�t�e�s�t�.�t�s� � � � � � � �#� �KmՋ�e�N
�%�%�% �d�i�s�t�/� � � � � � � � � � � � � � � � � �#� ��g�^���Q�vU_
�%�%�% �v�i�t�e�.�c�o�n�f�i�g�.�t�s� � � � � � � �#� �V�i�t�e�M�n
�%�%�% �v�i�t�e�s�t�.�c�o�n�f�i�g�.�t�s� � � � � �#� �V�i�t�e�s�t�KmՋM�n
�%�%�% �t�s�c�o�n�f�i�g�.�j�s�o�n� � � � � � � � �#� �T�y�p�e�S�c�r�i�p�t�M�n
�%�%�% �p�a�c�k�a�g�e�.�j�s�o�n� � � � � � � � � �#� �y��vM�n
����
�
�#�#�#� �KmՋ
�
�y��vO(u �[�V�i�t�e�s�t�]�(�h�t�t�p�s�:�/�/�v�i�t�e�s�t�.�d�e�v�/�)� �\O:NKmՋFh�g0
�
����b�a�s�h�
�#� �ЏL�@b gKmՋ
�n�p�m� �t�e�s�t�
�
�#� ��v,T!j_
�n�p�m� �r�u�n� �t�e�s�t�:�w�a�t�c�h�
�
�#� �ub���v�s�bJT
�n�p�m� �r�u�n� �t�e�s�t�:�c�o�v�e�r�a�g�e�
����
�
�#�#� �=��� ����S��
�
�I�S�C�
�
�#�#� �>�� �!�.s
�
�"kΏ�c�N �I�s�s�u�e� ��T �P�u�l�l� �R�e�q�u�e�s�t��
�
�#�#� �=��� �T��|b�N
�
��Y g�b�^������Ǐ�NN�e_T��|b�N�
�
�-� �=��� �[��c�N �I�s�s�u�e�]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�a�i�w�a�n�n�a�-�t�e�a�m�/�n�o�d�e�j�s�-�l�i�b�/�i�s�s�u�e�s�)�
�-� �=�� �[��bJT �B�u�g�]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�a�i�w�a�n�n�a�-�t�e�a�m�/�n�o�d�e�j�s�-�l�i�b�/�i�s�s�u�e�s�)�
�
