extinctsion / easyPythonpi

A python library for the beginners. The program includes simple calulations. Genuine PRs will be merged without delays
https://pypi.org/project/easyPythonpi/
14 stars 36 forks source link

updated functions #9

Closed Jugalcody closed 2 years ago

Jugalcody commented 2 years ago

Added all possible functions of linked list and matrix..

linked list - 1) create_node(data)----to create a node 2) node_link(a,b)-----to create a link between two given node a and b 3) count_node(head)------- to count the number of nodes link with the given header node 4) display_node(head)------to display linked list whose header node is passed as a parameter

Matrix functions -
1) matrix_add(array1,array2)--------to add two matrix 2) matrix_sub(array1,array2)--------to subtract two matrix 3) matrix_mul(matrix1,matrix2)----------to multiply two matrix 4) matrix_shape(matrix1)---------to get the shape of a matrix 5) matrix_transpose(matrix1)-----------to get the transpose of a given matrix

extinctsion commented 2 years ago

Good. The methods added were helpful