math-ops-jane-batakariza
v1.0.0
Published
Simple math operations package with built-in API
Maintainers
Readme
��#� �M�a�t�h� �O�p�e�r�a�t�i�o�n�s� �P�a�c�k�a�g�e�
�
�
�
�A� �s�i�m�p�l�e�,� �r�e�l�i�a�b�l�e� �p�a�c�k�a�g�e� �f�o�r� �b�a�s�i�c� �m�a�t�h� �o�p�e�r�a�t�i�o�n�s� �w�i�t�h� �a� �b�u�i�l�t�-�i�n� �R�E�S�T� �A�P�I�.�
�
�
�
�#�#� �I�n�s�t�a�l�l�a�t�i�o�n�
�
����b�a�s�h�
�
�n�p�m� �i�n�s�t�a�l�l� �m�a�t�h�-�o�p�s�-�j�a�n�e�-�b�a�t�a�k�a�r�i�z�a�
�
����
�
�
�
�#�#� �U�s�a�g�e� �a�s� �P�a�c�k�a�g�e�
�
����j�a�v�a�s�c�r�i�p�t�
�
�c�o�n�s�t� �m�a�t�h� �=� �r�e�q�u�i�r�e�(�'�m�a�t�h�-�o�p�s�-�j�a�n�e�-�b�a�t�a�k�a�r�i�z�a�'�)�;�
�
�
�
�c�o�n�s�o�l�e�.�l�o�g�(�m�a�t�h�.�a�d�d�(�5�,� �3�)�)�;� � � � � � � � �/�/� �8�
�
�c�o�n�s�o�l�e�.�l�o�g�(�m�a�t�h�.�s�u�b�t�r�a�c�t�(�1�0�,� �4�)�)�;� � �/�/� �6�
�
�c�o�n�s�o�l�e�.�l�o�g�(�m�a�t�h�.�m�u�l�t�i�p�l�y�(�6�,� �7�)�)�;� � � �/�/� �4�2�
�
�c�o�n�s�o�l�e�.�l�o�g�(�m�a�t�h�.�d�i�v�i�d�e�(�2�0�,� �4�)�)�;� � � � �/�/� �5�
�
�c�o�n�s�o�l�e�.�l�o�g�(�m�a�t�h�.�p�o�w�e�r�(�2�,� �3�)�)�;� � � � � � �/�/� �8�
�
�c�o�n�s�o�l�e�.�l�o�g�(�m�a�t�h�.�s�q�u�a�r�e�R�o�o�t�(�1�6�)�)�;� � � �/�/� �4�
�
����
�
�
�
�#�#� �U�s�a�g�e� �a�s� �A�P�I�
�
�
�
�#�#�#� �S�t�a�r�t� �t�h�e� �s�e�r�v�e�r�:�
�
����b�a�s�h�
�
�n�p�m� �s�t�a�r�t�
�
����
�
�
�
�#�#�#� �E�n�d�p�o�i�n�t�s�:�
�
�
�
�-� ��G�E�T� �/�a�d�d�/�:�a�/�:�b�� �-� �A�d�d� �t�w�o� �n�u�m�b�e�r�s�
�
�-� ��G�E�T� �/�s�u�b�t�r�a�c�t�/�:�a�/�:�b�� �-� �S�u�b�t�r�a�c�t� �b� �f�r�o�m� �a�
�
�-� ��G�E�T� �/�m�u�l�t�i�p�l�y�/�:�a�/�:�b�� �-� �M�u�l�t�i�p�l�y� �t�w�o� �n�u�m�b�e�r�s�
�
�-� ��G�E�T� �/�d�i�v�i�d�e�/�:�a�/�:�b�� �-� �D�i�v�i�d�e� �a� �b�y� �b�
�
�-� ��G�E�T� �/�p�o�w�e�r�/�:�b�a�s�e�/�:�e�x�p�o�n�e�n�t�� �-� �C�a�l�c�u�l�a�t�e� �p�o�w�e�r�
�
�-� ��G�E�T� �/�s�q�r�t�/�:�n�u�m�b�e�r�� �-� �C�a�l�c�u�l�a�t�e� �s�q�u�a�r�e� �r�o�o�t�
�
�-� ��P�O�S�T� �/�c�a�l�c�u�l�a�t�e�� �-� �F�l�e�x�i�b�l�e� �c�a�l�c�u�l�a�t�i�o�n� �e�n�d�p�o�i�n�t�
�
�
�
�#�#�#� �E�x�a�m�p�l�e�s�:�
�
����b�a�s�h�
�
�#� �A�d�d�i�t�i�o�n�
�
�h�t�t�p�:�/�/�l�o�c�a�l�h�o�s�t�:�3�0�0�0�/�a�d�d�/�1�0�/�5�
�
�
�
�#� �M�u�l�t�i�p�l�i�c�a�t�i�o�n�
�
�h�t�t�p�:�/�/�l�o�c�a�l�h�o�s�t�:�3�0�0�0�/�m�u�l�t�i�p�l�y�/�7�/�8�
�
�
�
�#� �S�q�u�a�r�e� �r�o�o�t�
�
�h�t�t�p�:�/�/�l�o�c�a�l�h�o�s�t�:�3�0�0�0�/�s�q�r�t�/�2�5�
�
�
�
�#� �P�O�S�T� �r�e�q�u�e�s�t�
�
�c�u�r�l� �-�X� �P�O�S�T� �h�t�t�p�:�/�/�l�o�c�a�l�h�o�s�t�:�3�0�0�0�/�c�a�l�c�u�l�a�t�e� �\�
�
� � �-�H� �"�C�o�n�t�e�n�t�-�T�y�p�e�:� �a�p�p�l�i�c�a�t�i�o�n�/�j�s�o�n�"� �\�
�
� � �-�d� �'�{�"�o�p�e�r�a�t�i�o�n�"�:�"�a�d�d�"�,�"�a�"�:�1�0�,�"�b�"�:�5�}�'�
�
����
�
�
�
�#�#� �F�e�a�t�u�r�e�s�
�
�
�
�' �S�i�m�p�l�e� �a�n�d� �i�n�t�u�i�t�i�v�e� �A�P�I� � �
�
�' �I�n�p�u�t� �v�a�l�i�d�a�t�i�o�n� � �
�
�' �E�r�r�o�r� �h�a�n�d�l�i�n�g� � �
�
�' �W�o�r�k�s� �a�s� �p�a�c�k�a�g�e� �o�r� �A�P�I� � �
�
�' �C�o�m�p�r�e�h�e�n�s�i�v�e� �d�o�c�u�m�e�n�t�a�t�i�o�n� � �
�
�
�
�#�#� �L�i�c�e�n�s�e�
�
�
�
�M�I�T�
