Skip to main content

An open source library containing multiple known STEM equations in a functional form.

Project description

simple-equ

An open source library containing multiple known STEM equations in a functional form.

Installation

pip install simple-equ

(For versions 3.8 or newer)

Optional: Use a venv (virtual environment).

Usage

simple-equ is simple, yet practical. That is the problem it solves. Sure, someone with some knowledge in their field can implement this library's functionality. But, let's look at how that would realistically look like:

a = 3
b = 4
c = 4

"""
Here is an example of implementing a basic quadratic equation
"""
import math

delta = b**2 - 4 * a * c
solution1 = (-b + math.sqrt(delta)) / (2 * a)
solution2 = (-b - math.sqrt(delta)) / (2 * a)

"""
Here, just an import and a function call is needed!
"""

import simple_equ.math_general.algebra as sa

result = sa.basic_quadratic(a,b,c)
Looking to calculate the sin of an angle?
Well... here is the algorithm to do this, in pseudo-code

function sin_taylor(x, n_terms):
    result = 0
    sign = 1             # alternates between + and -

    for i from 0 to n_terms-1:
        term_exponent = 2*i + 1
        term_factorial = factorial(term_exponent)
        term = sign * (x ^ term_exponent) / term_factorial
        result = result + term
        sign = -sign     # flip the sign for next term

    return result

function factorial(k):
    if k == 0 or k == 1:
        return 1
    else:
        f = 1
        for j from 2 to k:
            f = f * j
        return f

"""

import simple_equ.math_general.geometry as sg
sin30 = sg.sin(30) # In case you didn't notice, this is the same thing in simple_equ
"""
Normally, we would put a linear regression here. But it is pretty monstrous.
Worry not though. This is how to do it with simple-equ:
"""

import simple_equ.economics.statistics as se

se.linear_regression([3, 4, 6],[4, 6, 7])

You just import the field of your liking, and then boom!

Structure

The library is structured into fields. These fields have their own folder, aka modules. However, a field can have multiple subsets. These subsets are usually present in the form of python files. For example: algebra.py and geometry.py, are examples of subfields of the general math field called math_general.

To import something in a practical sense in simple_equ, the structure looks like this:

import simple_equ.field.subfield as ...

Practical examples include: import simple_equ.math_general.geometry as sg import simple_equ.economics.statistics as se

Contributing

Contributions are always welcome!

The project encourages a community-driven approach. Everyone can contribute. Be sure to be kind and respectful. Do not assume that something is known to the contributor you are talking to just because you know it and do not be rude or even make comments about their skill. This behaviour is not welcome here.

See contributing.md for ways to get started.

Features

  • Community driven and open
  • Functions from different fields
  • Reusable
  • Highly accurate
  • Simple yet practical

Do not forget to star the repo if you like it! It means a lot! Thank you for reading this document and getting involved with our community :)

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

simple_equ-1.3.228-cp312-cp312-win_amd64.whl (117.3 kB view details)

Uploaded CPython 3.12Windows x86-64

simple_equ-1.3.228-cp312-cp312-win32.whl (114.4 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.3.228-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.228-cp312-cp312-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.3.228-cp311-cp311-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.3.228-cp311-cp311-win32.whl (115.6 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.3.228-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.228-cp311-cp311-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.3.228-cp310-cp310-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.228-cp310-cp310-win32.whl (115.9 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.3.228-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.228-cp310-cp310-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.3.228-cp39-cp39-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.228-cp39-cp39-win32.whl (116.0 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.3.228-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (298.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.228-cp39-cp39-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.3.228-cp38-cp38-win_amd64.whl (118.2 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.3.228-cp38-cp38-win32.whl (116.6 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.3.228-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.0 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.228-cp38-cp38-macosx_11_0_arm64.whl (120.2 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.3.228-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.228-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b77587a6ae45f3e42b9384ba21070674ab795cc489bae0254ea074f0b2b0fefa
MD5 3d268379266a5a08286ce396a7f89b9c
BLAKE2b-256 5578b2fce44252b6174cd64b94595952de01609324396f9d0126088f0032cf62

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.228-cp312-cp312-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.228-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.4 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.228-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a64602c3443e36ea44e9971f48a084f749230e82b74fad315ee605e05998936d
MD5 df1bedbf74a774077d0ca29bc77499ab
BLAKE2b-256 9d15954dfd0cbbbc171f39f7b3255679a6e0260b026205f9d7267472d20d5de5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.228-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.228-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 76a9ea14c0e63e1a43b73e33d9e3c91cc629dad9b54c22b43d129ab1370cfa5f
MD5 aa609db8197f54957eaf1f61bc897c97
BLAKE2b-256 9379d59951b80c734fd291d2387d608a7fe70c558f2ead6f107146c0359f62b4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.228-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.228-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d73649e35dbdb59f1d3a9f5bc2909a998b20093710a553e0494c7a048435e83a
MD5 d6898bd364a30bcf979f298e49019a5a
BLAKE2b-256 24d29027013bab2a3dbcea91035cf625d0a7157e93822d00fc3feb6a394bbcee

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.228-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.228-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6615e9063ff242afa773209348d9fefe165f58c9217c87b82acd995e27978ceb
MD5 6901f2693fe29df91c047eb51a3e3072
BLAKE2b-256 501a1c65efc0351ac04857b0b8d3476d0a230d34f9964c658eff9c026bcdb399

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.228-cp311-cp311-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.228-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.6 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.228-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 71957e572498834a08c1ea88c5f30fb10376047270dc517c91819cffbbe2d8ba
MD5 c567b91353f532e10595818ed9e99086
BLAKE2b-256 01655a399d884fc4473e321bd7fa157d984b9fda0b745a819692371ce8ab5735

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.228-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.228-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bf508d52286213de4609febbc6ceb1f13c106ad85996e17304b5fa6a6c639d29
MD5 95ece98d7865f2b5b2134e507170f605
BLAKE2b-256 4a3219e5d271671359eb89495a53e8d6704fda909151788ab36f674e1b7b7392

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.228-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.228-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e191e061055bdc53e7918f254671716aff21dff40a0e09b8ffa935c4d4062c74
MD5 2cd315a140b4787d0b1d5882638c6432
BLAKE2b-256 218f60d44211b12c3f3594d9870eb13d55e4162b35507ae8145a19324340d131

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.228-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.228-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d6049edae0289d5a812ea6d0002f1bb4b79a619bf2038febe74d1b200155442d
MD5 7cc4b6936899fb84bc1347679d240d49
BLAKE2b-256 026fbfccd30a9d096ba949cc5c5c4d6689260c788dc72ff4f84b724845c92243

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.228-cp310-cp310-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.228-cp310-cp310-win32.whl
  • Upload date:
  • Size: 115.9 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.228-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 feb50508037e4d9f2a9ebb7ebc37d7951b011e5b82dcd18d618928c47a6de92a
MD5 6723b3f9698f0a203387758aefb32d38
BLAKE2b-256 4e614529129d7af2fe25184b870d1b85220439e434d807f9da1eb15d17f145fa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.228-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.228-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ce5011cd259752668397946f02027a595e812b0aabf7b6497059193312f6b463
MD5 1082cc06ab0b13038c6679cf5cfb21af
BLAKE2b-256 0ac301ce2733c8c501401ac32f66867a9107aa5852cbb8afb0e817d5b5b3248a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.228-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.228-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bb8516835fde079b1cfa4226f4c7fa2f46f8ccd7f7115792ce0da767a3eec7f7
MD5 6197bc02c0a01d17d27893b21c1c1ff0
BLAKE2b-256 c509e407a888d73733bc295b4d71a11a269ab285001b59c92e8c1bd29dc7683a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.228-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.228-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.228-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c6a385f9e8819df582620d507e9c14eff9dd3e45e846c6801b744339b066f6ef
MD5 1da6e39f8f0e3895673c63617d7034c7
BLAKE2b-256 1d9e4b72a17826a034ad8338657fb184c78760bc5e5f3e27877516083e49cbd2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.228-cp39-cp39-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.228-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.0 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.228-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d027e8cfa1e232e0c365190332078a064cc5e223d43a8238b08e87fc95980a87
MD5 8b6250b2593a0f133946409a518f62b7
BLAKE2b-256 df996dde1f4fba3da98b532d75351e5a0c1b19c5c13f43e55c9d767feb6a4c9a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.228-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.228-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d016658f7176874e17f09d9192fc1aaa8eed7e301545dc41bd30357d0bba79fd
MD5 e0bc72c92daf3f9307ad76e5dee44044
BLAKE2b-256 e4b3ccbbe33912fea1e2d1b92e5990eea4ec22c68f7300b2058db058677f3ade

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.228-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.228-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 47408ad415d94cf16454d9631f4f1385cf63ce4adc1f788821de01204fb1d0d3
MD5 7e25899fb094f76acfb3b47fa92a6fb6
BLAKE2b-256 5fcfb0ecd9921d4b32f4cdd44c0b3546191f43d3da51d68d4ccfa25066014c3a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.228-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.228-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.2 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.228-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 51a7164ed02571a041e8456dec6981cca16d8e2154ea985dfbbf423954bf4e8b
MD5 03960558267852d685071c981a54673b
BLAKE2b-256 693248f1604c26030375b475ca8f2afb0149c9a3658b383139fad2f4025dc339

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.228-cp38-cp38-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.228-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.6 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.228-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5f53a51fcc8957cf4ec4964724f74905a13ff4e50260b7d5ce7da6d18d77467d
MD5 e45dcc593be3807841dff36ab43017b6
BLAKE2b-256 1cd224a6728071c079ac91ed6844068a273e0dd07599850e6a16f49a240876b9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.228-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.228-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bdec44b107c685d9e3c85385e1fc0ee79083f1ac1921a68b0ad3b076db542e27
MD5 8657820a53989642687ba0995c5ed6e5
BLAKE2b-256 4e376066c504b18515f0fcea72acbbb214f53928448fa2102c07ce7ddd499a09

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.228-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.228-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1cad995ed1a279176c7296acd2bdd9dbf16fd6dc3ebf1f3dc9890f08af3e3100
MD5 595ffb6a137605d0790dd4b55e8deb51
BLAKE2b-256 316f51b2ebc5f986bc1dccd1303ec4f74b4ef4e807d1b7b61d1cfdd1701d2412

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