
.. DO NOT EDIT.
.. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY.
.. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE:
.. "auto_examples\plot_diagram.py"
.. LINE NUMBERS ARE GIVEN BELOW.

.. only:: html

    .. note::
        :class: sphx-glr-download-link-note

        Click :ref:`here <sphx_glr_download_auto_examples_plot_diagram.py>`
        to download the full example code

.. rst-class:: sphx-glr-example-title

.. _sphx_glr_auto_examples_plot_diagram.py:


Diagrams generating example
===========================

.. GENERATED FROM PYTHON SOURCE LINES 7-9

Diagram generating using Prime factors
---------------------------------------

.. GENERATED FROM PYTHON SOURCE LINES 9-16

.. code-block:: default


    from Factorization import *

    factorisation=Factorization()
    factorisation.draw_factor(70,"prime_factors",True,True)






.. rst-class:: sphx-glr-script-out

 Out:

 .. code-block:: none


    True

.. image::
   images/70.png
   :width: 400
   :align: center

.. GENERATED FROM PYTHON SOURCE LINES 17-19

Diagram generating using Pollard Rho
-------------------------------------

.. GENERATED FROM PYTHON SOURCE LINES 19-24

.. code-block:: default


    from Factorization import *

    factorisation=Factorization()
    factorisation.draw_factor(70,"pollardrho",True,True)


.. image::
   images/70r.png
   :width: 400
   :align: center

.. rst-class:: sphx-glr-script-out

 Out:

 .. code-block:: none


    True




.. rst-class:: sphx-glr-timing

   **Total running time of the script:** ( 0 minutes  12.167 seconds)


.. _sphx_glr_download_auto_examples_plot_diagram.py:


.. only :: html

 .. container:: sphx-glr-footer
    :class: sphx-glr-footer-example



  .. container:: sphx-glr-download sphx-glr-download-python

     :download:`Download Python source code: plot_diagram.py <plot_diagram.py>`



  .. container:: sphx-glr-download sphx-glr-download-jupyter

     :download:`Download Jupyter notebook: plot_diagram.ipynb <plot_diagram.ipynb>`


.. only:: html

 .. rst-class:: sphx-glr-signature

    `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.github.io>`_
