Skip to content

Commit

Permalink
issue #46 update documentation math
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyleite committed Feb 22, 2022
1 parent a8d21cd commit 6aeac9d
Showing 1 changed file with 0 additions and 67 deletions.
67 changes: 0 additions & 67 deletions doc/source/math.rst
Original file line number Diff line number Diff line change
Expand Up @@ -176,70 +176,3 @@ In the same way as ``bh_charcalc``, however, work here with hexdigit.
$ bh_hex2bin FF + 1
0x100
bh_pow
------

This is a very simple operation in bash, but a little better "no bad".

.. note::

Usage

``bh_pow`` [number] [pow]


.. code-block:: bash
$ bh_pow 2 10
1024
$ bh_pow 9999 0
1
bh_shl
------

Push bits to the left by a number.

.. note::

Usage

``bh_shl`` [number] [displaces]
number : number to displaces
displaces : left shift

.. code-block:: bash
$ bh_shl 2 1
4
$ bh_shl 50 2
200
bh_shr
------

Push bits to the rigth by a number.

.. note::

Usage

``bh_shr`` [number] [displaces]
number : number to displaces
displaces : right shift.

.. code-block:: bash
$ bh_shr 4 1
4
$ bh_shr 50 2
12
bh_xor
------

Calculates the exclusive OR between two numbers, you can use hexdigit.

0 comments on commit 6aeac9d

Please sign in to comment.