Skip to main content

Math library

Project description

Video Lectures ============

    [<img src=https://github.com/StarlangSoftware/Math/blob/master/video.jpg width="50%">](https://youtu.be/GhcoaVi0SMs)
    
    For Developers
    ============
    You can also see [Python](https://github.com/starlangsoftware/Math-Py), [Java](https://github.com/starlangsoftware/Math), [C++](https://github.com/starlangsoftware/Math-CPP), [C](https://github.com/starlangsoftware/Math-C), [Swift](https://github.com/starlangsoftware/Math-Swift), [Js](https://github.com/starlangsoftware/Math-Js), [Php](https://github.com/starlangsoftware/Math-Php), or [C#](https://github.com/starlangsoftware/Math-CPP) repository.
    
    ## Requirements
    
    * [Python 3.7 or higher](#python)
    * [Git](#git)
    
    ### Python 
    
    To check if you have a compatible version of Python installed, use the following command:
    
        python -V
        
    You can find the latest version of Python [here](https://www.python.org/downloads/).
    
    ### Git
    
    Install the [latest version of Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git).
    
    ## Pip Install
    
    	pip3 install NlpToolkit-Math-Cy
    
    ## Download Code
    
    In order to work on code, create a fork from GitHub page. 
    Use Git for cloning the code to your local or below line for Ubuntu:
    
    	git clone <your-fork-git-link>
    
    A directory called Math will be created. Or you can use below link for exploring the code:
    
    	git clone https://github.com/starlangsoftware/Math-Cy.git
    
    ## Open project with Pycharm IDE
    
    Steps for opening the cloned project:
    
    * Start IDE
    * Select **File | Open** from main menu
    * Choose `Math-CY` file
    * Select open as project option
    * Couple of seconds, dependencies will be downloaded. 
    
    Detailed Description
    ============
    
    + [Vector](#vector)
    + [Matrix](#matrix)
    + [Distribution](#distribution)
    
    ## Vector
    
    Bir vektör yaratmak için:
    
    	Vector(self, values=None)
    
    Vektörler eklemek için
    
    	addVector(self, v: Vector)
    
    Çıkarmak için
    
    	subtract(self, v: Vector)
    	difference(self, v: Vector) -> Vector
    
    İç çarpım için
    
    	dotProduct(self, v: Vector) -> float
    	dotProductWithSelf(self) -> float
    
    Bir vektörle cosinüs benzerliğini hesaplamak için
    
    	double cosineSimilarity(Vector v)
    
    Bir vektörle eleman eleman çarpmak için
    
    	elementProduct(self, v: Vector) -> Vector
    
    ## Matrix
    
    3'e 4'lük bir matris yaratmak için
    
    	a = Matrix(3, 4)
    
    Elemanları rasgele değerler alan bir matris yaratmak için
    
    	Matrix(self, row, col, minValue=None, maxValue=None)
    
    Örneğin, 
    
    	a = Matrix(3, 4, 1, 5)
     
    3'e 4'lük elemanları 1 ve 5 arasında değerler alan bir matris yaratır.
    
    Matrisin i. satır, j. sütun elemanını getirmek için 
    
    	getValue(self, rowNo: int, colNo: int) -> float
    
    Örneğin,
    
    	a.getValue(3, 4)
    
    3. satır, 4. sütundaki değeri getirir.
    
    Matrisin i. satır, j. sütunundaki elemanı değiştirmek için
    
    	setValue(self, rowNo: int, colNo: int, value: float)
    
    Örneğin,
    
    	a.setValue(3, 4, 5)
    
    3. satır, 4.sütundaki elemanın değerini 5 yapar.
    
    Matrisleri toplamak için
    
    	add(self, m: Matrix)
    
    Çıkarmak için 
    
    	subtract(self, m: Matrix)
    
    Çarpmak için 
    
    	multiply(self, m: Matrix) -> Matrix
    
    Elaman eleman matrisleri çarpmak için
    
    	elementProduct(self, m: Matrix) -> Matrix
    
    Matrisin transpozunu almak için
    
    	transpose(self) -> Matrix
    
    Matrisin simetrik olup olmadığı belirlemek için
    
    	isSymmetric(self) -> bool
    
    Determinantını almak için
    
    	determinant(self) -> float
    
    Tersini almak için
    
    	inverse(self)
    
    Matrisin eigenvektör ve eigendeğerlerini bulmak için
    
    	characteristics(self) -> list
    
    Bu metodla bulunan eigenvektörler eigendeğerlerine göre büyükten küçüğe doğru 
    sıralı olarak döndürülür.
    
    ## Distribution
    
    Verilen bir değerin normal dağılımdaki olasılığını döndürmek için
    
    	zNormal(z: float) -> float
    
    Verilen bir olasılığın normal dağılımdaki değerini döndürmek için
    
    	zInverse(p: float) -> float
    
    Verilen bir değerin chi kare dağılımdaki olasılığını döndürmek için
    
    	chiSquare(x: float, freedom: int) -> float
    
    Verilen bir olasılığın chi kare dağılımdaki değerini döndürmek için
    
    	chiSquareInverse(p: float, freedom: int) -> float
    
    Verilen bir değerin F dağılımdaki olasılığını döndürmek için
    
    	fDistribution(F: float, freedom1: int, freedom2: int) -> float
    
    Verilen bir olasılığın F dağılımdaki değerini döndürmek için
    
    	fDistributionInverse(p: float, freedom1: int, freedom2: int) -> float
    
    Verilen bir değerin t dağılımdaki olasılığını döndürmek için
    
    	tDistribution(T: float, freedom: int) -> float
    
    Verilen bir olasılığın t dağılımdaki değerini döndürmek için
    
    	tDistributionInverse(p: float, freedom: int) -> float

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nlptoolkit_math_cy-1.0.19.tar.gz (657.1 kB view details)

Uploaded Source

File details

Details for the file nlptoolkit_math_cy-1.0.19.tar.gz.

File metadata

  • Download URL: nlptoolkit_math_cy-1.0.19.tar.gz
  • Upload date:
  • Size: 657.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.0

File hashes

Hashes for nlptoolkit_math_cy-1.0.19.tar.gz
Algorithm Hash digest
SHA256 a201c6f0c50ab1fc36dd55488d1f9ecbd2250ef9f480da2d24d7dd742b3170af
MD5 c1541614e28a674c1932dad7bf542a7f
BLAKE2b-256 128b05987b3f056f080028072f5d7429699cf0e8cd26cfabb4d782fde6185449

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page