Using list to save complex.
Project description
introduction
This package(list_cmath 0.1)can save complex number by lists.
Tips: Lists may like this:[0.125,0.625] is equivalent to 0.125+0.625i and python complex (0.125+0.625j).
it will be call "complex list" after this tip.
functions
cAdd(a,b)
introduction:
cAdd(a,b) returns the sum of two complex numbers.
argument:
list(a): A complex list.
list(b): Another complex list.
output
list(<re>): A complex list.
Notes:
<re>means a representation.
cMult(u,v)
introduction:
cMult(u,v) returns the product of two complex numbers.
argument:
list(u): A complex list.
list(v): Another complex list.
output
list(<re>): A complex list.
cPow(x,n)
introduction:
cPow(x,n) returns the n-th power of complex number x.
argument:
list(x): A complex list.
int(n): Power of x.
output
list(t): A complex list.
listToComplex(z)
introduction:
listToComplex(z) returns a python buit-in complex that equal to the input complex list.
argument:
list(x): A complex list.
output
list(<re>): A complex equal to x.
complexToList(z)
introduction:
complexToList(z) returns a complex list that equal to the input python buit-in complex.
argument:
complex(x): A complex.
output
list(<re>): A complex list equal to x.
listsToComplexes(lists)
introduction:
listsToComplexes(lists) returns a list of complex.
argument:
list(lists): A list of list complex.
Notes: example of "list of list complex":
[[0.125,0.75], [0.625,0.25], [1.525,25.5]]
output
list(complexes): A list of complex,ietms in it are all equal to items in lists.
complexesToLists(complexes)
introduction:
complexesToLists(complexes) returns a list of list complex.
argument:
list(complexes): A list of complex.
output
list(lists): A list of list complex,ietms in it are all equal to items in complexes.
lcSum(clist)
introduction:
lSum(clist) returns the sum of one-list of complex numbers.
argument:
list(clist): A list of list complex.
output
list(<re>): A list complex.
lcMult(clist)
introduction:
lcMult(clist) returns the product of one-list of complex numbers.
argument:
list(clist): A list of list complex.
output
list(s): A list complex.
lmagnitude(clist)
introduction:
lmagnitude(clist) returns the absolute value of one-list of complex number.
argument:
list(clist): A list of list complex.
output
list(r): A list complex.
mandelbrot.mandelbrot(z,num) mandelbrot.mandelbrot_p(z,num,n) mandelbrot.mandelbrot_e(z,num,a)
introduction:
These funcions retuun the process num times and return the number of diverging times.
argument:
list(z): A list of list complex.
int(num): A list of list complex.
int(n): A list of list complex.
string(a): A re.
output
int(count): The number of diverging times.
others
This is the first version of 'list_complex' package,so it may be some bugs.
Plese visit README.html in the package to get colorful options.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file list_cmath-0.2.tar.gz.
File metadata
- Download URL: list_cmath-0.2.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b1a8a416537979a0d33a108d9faf20896e588ca2e6bf6810405d6c78b61413e
|
|
| MD5 |
e82b9837868e0f8dce668d4f75f26fd2
|
|
| BLAKE2b-256 |
0e0c9c33e330f8805fdd9877f47cfefefbd0b711d84f22cc3e520120920ae8e6
|
File details
Details for the file list_cmath-0.2-py3-none-any.whl.
File metadata
- Download URL: list_cmath-0.2-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1250644938897b78fc4877699feff56fd16b0c91f8a6f5cc26343f1f335d1025
|
|
| MD5 |
06e4fa5de8c6993587830ab628b44bd3
|
|
| BLAKE2b-256 |
02e7f3dc5a1576a4d37960451ebb11bb4e53f727edd6564b6f033f454a8d02ff
|