semvec/pypi-packages huggingface dataset:
MPComplex 1.1
This package contains implementation of the library "MPComplex". MPComplex is a data type supporting complex numbers which allow comparison and sorting operations.
License: MIT

# MPComplex

MPComplex is a data type which support complex numbers which allow comparison and sorting operations. This library 
extends 'mpc' in 'mpmath' library (https://pypi.org/project/mpmath/) by allowing comparisons and sorting.

## MPComplex Operations

The operations supported by MPComplex are addition, subtraction, multiplication, division, power, comparisons, and 
sorting.

## Addition

Input: MPComplex(4, 2) + MPComplex(5, 3)
Output: MPComplex(9, 5)

## Subtraction

Input: MPComplex(7, 9) - MPComplex(3, 3)
Output: MPComplex(4, 6)

## Multiplication

Input: MPComplex(5, 4) * MPComplex(4, 6)
Output: MPComplex(-4, 46)

## Division

Input: MPComplex(5, 4) / MPComplex(4, 6)
Output: MPComplex(0.846153846153846, -0.269230769230769)

## Integer Division

Input: MPComplex(5, 4) // MPComplex(4, 6)
Output: MPComplex(0, 0)

## Power

Input: MPComplex(4, 2) ** 5
Output: MPComplex(-1216, 1312)

## Comparisons in General

MPComplex objects are compared to each other in the following order:

1. real part value
2. imaginary part value

For example, to check whether MPComplex object a is greater than MPComplex object b or not, the program 
does the following steps:

1. Checks if the real part of a is greater than the real part of b or not. If yes, 'True' is returned.
2. If the real part of a is equal to the real part of b, go to step 3. Else, go to step 4.
3. Return true if the imaginary part of a is greater than the imaginary part of b. Else, return 'False'.
4. Return 'False' immediately.

The similar process applies to the operations 'less than', 'less than or equal to', and 'greater than or equal to'
as well.

For checking equality of two complex numbers, equality applies if the real and imaginary parts of both numbers are
equal.

### Greater Than

Input: MPComplex(5, 4) > MPComplex(4, 6)
Output: True

### Greater Than or Equal To

Input: MPComplex(5, 4) >= MPComplex(4, 6)
Output: True

### Less Than

Input: MPComplex(5, 4) < MPComplex(4, 6)
Output: False

### Less Than or Equal To

Input: MPComplex(5, 4) <= MPComplex(4, 6)
Output: False

### Equal To

Input: MPComplex(4, 2) == MPComplex(4, 1)
Output: False

### Not Equal To

Input: MPComplex(4, 2) != MPComplex(4, 1)
Output: True

## Sorting

If a list of MPComplex objects is called with sort() method, the list will be sorted in ascending order.

Input: [MPComplex(4, 2), MPComplex(4, 1), MPComplex(5, 3), MPComplex(2, 7)].sort()
Output: [MPComplex(2, 7), MPComplex(4, 1), MPComplex(4, 2), MPComplex(5, 3)]
binary-parser 0.0.4
convert integers to binary and vice-a-versa
License: MIT
Keywords: binary to numbers

=============
binary_parser
=============
A python module where a number can be converted to its binary string and binary string to number.
**Note: binary string which will be recieved and provided will be in string format for early releases.**

``binary_parser``
**is a simple python library where users can convert an integer to its binary string and vice versa.**

Installation
============
::

    pip install binary-parser

number-parser requires Python 3.6+.


Usage
=====
The library provides the following common use cases.

Converting a binary string to an integer
----------------------------------------

>>> import binary_parser
>>> binary_parser.parse_to_num('1011')
'11'
>>> binary_parser.parse_to_num('000')
'0'
>>> binary_parser.parse_to_num('01')
'1'

Converting an integer to its binary format
------------------------------------------
Arguments passed can be a string or an integer type.

>>> import binary_parser
>>> binary_parser.parse_to_binary('7')
'111'
>>> binary_parser.parse_to_binary(1)
'1'
>>> binary_parser.parse_to_binary('0')
'0'

Checking if given string is binary or integer
---------------------------------------------

>>> import binary_parser
>>> binary_parser.which_parser('1010')
'Input 1010 could be either binary or a number'
"binary string: 1010 number: 10"
>>> binary_parser.which_parser(12)
'Input 12 is a number'
"number: 12"
>>> binary_parser.which_parser('00101')
'Input 00101 could be either binary or a number'
"binary string: 00101 number: 101"
>>> binary_parser.which_parser(b'10011')
'Input b'10011' is a binary string'
"binary string: b'10011'"


Change Log
==========

0.0.1 (07/02/2022)
------------------
- First Release

0.0.2 (08/02/2022)
------------------

0.0.3 (08/02/2022)
------------------

0.0.4 (26/02/2022)
------------------
- bytes usage and readme changes
Topsis-Mahek-101903567 1.0.1
TOPSIS method for Multiple-Criteria Decision Making (MCDM).
License: MIT
Keywords: TOPSIS

## Topsis-Mahek-101903567

--Calculate TOPSIS Score and rank them.

## Installation

```sh
>> pip install Topsis-Mahek-101903567==1.0.1
```

## How to use it?

```sh
>> TOPSIS data.csv "1,1,1,2,2" "+,+,-,+,+" result.csv
```

## Input File (data.csv)

- Input file must contain 3 or more columns.
- First column is the object/variable name (e.g. M1, M2, M3, M4, M5, M6, M7, M8).
- From 2nd to last columns must contain numeric values only.

## Output File (result.csv)

Result file contains all the columns of input file and 2 additional columns having Topsis Score and Rank.

## Check the following-

- Number of weights, number of impacts and number of columns (from 2nd to last columns) must be same.
- Impacts must be either +ve or -ve.
- Impacts and weights must be separated by ',' (comma).

## License

2022 Mahek Khowala
This repository is licensed under the MIT license. See LICENSE for details.
arith-tools 1.2.0
Use all the simple arithmetic calculations such as fibonacci series, armstrong number etc.
License: MIT
Keywords: python,arithmetic,tools,arith-tools,arithmetic operations,Math,python3,pip,pip3,fibonacci,armstrong,boiled-egg,terrace,unique,amicable

# Arith Tools
Arith tools package for  basic arithmetic operations.

<i>In the arithmetic of love, one plus one equals everything, and two minus one equals nothing.</i>

Goals of the project: 
- Arith Tools is an arithmetic module which can be used to solve a very complicated arithmetic operations very easily.
- Arith Tools handles everything from the start of thinking of a very algorithm to it's end by just using this module.
- BLTAO, Bring Life To Arithmetic operations. Think of something more creative rather than wasting time in writing simpler code.

<br><br>

## How to install ?
<i>NOTE: It is recommended to set up a [virtual environment](https://pypi.org/project/virtualenv/).</i>

In order to install this module, you need to follow the command given below.
```bash
python -m pip install arith-tools
```

## Supported IDE

### VSCode

- Install [Python extension](https://marketplace.visualstudio.com/items?itemName=ms-python.python)
- Install [Pylance extension](https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance)
- Set `Pylance` as your Python Language Server
- Install `arith-tools` in your environment: `python -m pip install arith-tools`

Both type checking and auto-complete should work for thy service. No explicit type annotations required, write your code as usual.
<br><br>

### PyCharm
- Install `arith-tools` in your environment: `python -m pip install arith-tools`

Both type checking and auto-complete should work for thy service. No explicit type annotations required, write your code as usual. Auto-complete can be slow on big projects or if you have a lot of installed arith-tools submodules.
<br><br>

### IDLE
- Follow the same procedure as before.

<br><br>

## How to use the module ?
```bash
import arithtools
#To reverse a given number.
num=int(input("Enter a number: "))
print(arithtools.reverse(num))
```
## What are expected from Arith Tools ?

- Fibonacci Series.
- Reverse a given number.
- Convert a number to word.
- Check for Automorphic number.
- Check for Peterson Number.
- Check for sunny number.
- Check for Tech number.
- Check for Fascinating Number.
- Check for Keith or repfigit Number.
- Check for Neon Number.
- Check for Spy Number .
- Check for amicable number.
- Check for Terrace Number.......... and many more.
(Check out the Project to find more.)

<br>

### NOTE: Run ```help(arithtools)``` in interactive window or terminal to get more info. 

<br><br>

## Versioning
`arith-tools` version follows [PEP 440](https://www.python.org/dev/peps/pep-0440/) format.


<br><br>

## Support and Contributing.

Developers are free to contribute to this open source projects and report bugs at any time in the `arith-tools` repository.