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.71-cp312-cp312-win_amd64.whl (117.3 kB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.71-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.71-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

simple_equ-1.3.71-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.71-cp311-cp311-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

simple_equ-1.3.71-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.71-cp310-cp310-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.3.71-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.71-cp39-cp39-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.71-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.71-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.71-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.71-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.71-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 99313a8b7af2aa09f89c2635fb2f8f48bac3c5c89fe16558218dd71e95c6e700
MD5 c63a4aaad2747508effce5ac941e48b6
BLAKE2b-256 48b0ade2a75b4326603bf1008ccc3e0f267ddd5c1aa3627295e84e1a971c7c3c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.71-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.71-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 fd65da21701e5d38cec89286b395daa8c84437e636f942e1a46771ae578d9986
MD5 ba317437d07d35001db21eebdade9aa6
BLAKE2b-256 9b0d7467be23f97d1ceccbc338fa5c75c1611200e4ead432de96cd9cf95cffa7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.71-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.71-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 689c33cfbdcb2d2b0025f0f21546c041fd75033e8f1c3b28af9d887309b07a65
MD5 11e7f4d6613638a7e683fea9c1edc1a6
BLAKE2b-256 c756e5f0dbb4087e5dc0a8943ff43eace91f70ef9a4284462d3abc67b6f3ca8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.71-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 908f709ae4a627649f90f46f152ca0559cf55cd85fbe52cb3860652abd496118
MD5 f89c5207a600f060f98e5884dfe1246e
BLAKE2b-256 49fd07ca155254fbdcc9ce53d21c14812b5acfea2248ef9d4fd0a83b04fa8776

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.71-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.71-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8b1c6a7ce60a4b3ddfcbb66059fb86e3b9eb7383eb2bd4928bdbae0b657ee8a0
MD5 9e94e754213c2880f79a086c440e0de2
BLAKE2b-256 ac68e82e97a3816c9ff4cae878aa2b86f64ef7df903985f874a7ccc3c435cb13

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.71-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.71-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 332b1bbbc7a56a32f84409e71d86fe024bf24c5d4b256eb94b503d5e3dde04e6
MD5 2c080414fd071b40d151fd45b29ca788
BLAKE2b-256 71723a6e97d47b88bb8214fcfc5fb246a0b9ec69f48b49e61bb268aec01ddf3b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.71-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.71-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8f5140de577bbe41be389032e1447d713b4ee726741d660f528bea11eaf82767
MD5 f616e162bf1cb2c302a8eeef27e8ae17
BLAKE2b-256 980d647b2b127f0f95a4d78caeb97d108040fd8f5912b775e633d10501fde4b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.71-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ca96d14dcea7e86938806270f74d7595b19054824f1b1932a654204a573c9a85
MD5 190c625681254f240198ebffa94f53fc
BLAKE2b-256 40f444d1258ee78ad8a04a0861f787f48d2288b10ad133795cb6e1c7e58e01db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.71-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.71-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5631ed12732f2b9a8bef8fd8d9be87b1d777844a65494393f0ddf420d4a09680
MD5 1f936f751cb82f14021ee8abe148a633
BLAKE2b-256 163729a49653c72f9e525333784991ae9f1d8b12da0741b9a5ec91f436ed561a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.71-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.71-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ba24a538613027c46490ea7c427bc8eb5de15f9590e55b16fe861835190983ab
MD5 22be473ac38132fed3cafc11ec72dd2c
BLAKE2b-256 99de99afbc4c119e3448cfa9501d040e5d1a38ddb3cd2d45f720a248d2ae1f99

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.71-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.71-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ecd73b790abc626f01d16b0b51dd631c4e4d9d9bbb70d3ac397c384c9d038ba1
MD5 385666118aa6b512a1b665d891fb1b4d
BLAKE2b-256 aafba139dcce71b89e20a8f37cd95aff57ab1e4260ce30c5b5ba6e5aac3c6df7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.71-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 43c4139aebf0ade5992d513bf9fbc86ea257e0d4ee2ba5e8e26292255ec74774
MD5 b6457a9034f1d10bed6c623292c6b685
BLAKE2b-256 ea39482a2c681e537f27cab9ff2aa8f52ee5a8490ca3d9ae5ab1e6cedf263f32

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.71-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.71-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 eaff425ab8157c7306e4d93999cea08f48390463d163bd9035f4ca8dcc499b67
MD5 e9f36a36a84897873e85e55061f7d2ce
BLAKE2b-256 7c6be7bb6730ee9b8e598fc25570e78eb4147d927a65b4bebbcd446120c18af7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.71-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.71-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e70df8028844fd3b97581ca452cd1ffac439a31e0a5940cefa04bc65508b5fb0
MD5 c8b2edf98ac67cb76b5c1629e8cf96e3
BLAKE2b-256 2b2b0748c87882acf29bf69679ec3e4e8de83d4099da5652a80459c8df2a41fe

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.71-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.71-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 396ce6cee5809839ab1afc0495ad6d218af4d993ef70c383c8c53d54f0615099
MD5 e2d6e15c73bfc257f0e600a56bd94156
BLAKE2b-256 26d42231bf00a0f180f76f3b6c59a9b7bd6c5c3484969dc587299256c680c3d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.71-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 75d9cc09aff6969b72a0d0970f412eed5a069d9acfcbe38aa58e7175039cd69c
MD5 c12c58f99f7623d34644be3bdd5ca43c
BLAKE2b-256 2dd3d7089b8a10db71a588ee92b6e7fb7f5d3db04983f88a20799f69bf487984

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.71-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.71-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 149be5790959f0d240f69ea0966b0c759fe2997710c5a7427e7099db00c121be
MD5 12e9fc2de6e87355ea744a690466ea05
BLAKE2b-256 c1e02ec682a9fec4b7a8bf34fdb3cb041868fb41e8b4f9fb41cf474b52dba977

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.71-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.71-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ceddb55d9d7a843d14ef864754ee8a2b1cdca52b27a3798c969ea18d419d9fae
MD5 3051a4c45b59b8794ec6fa6be4edc223
BLAKE2b-256 d7df60ba151fe7494af0673f23d17fd8be37957cf4d054d0172e0063dfa6cbe9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.71-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.71-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3d75e395acac3a6152d38d56729cb2a9d890a24bae2deec746a90053787f238b
MD5 9cdf893adb8edeb7573dc14f0d137ae9
BLAKE2b-256 bde054a75412442baa5270e5d2692086db9f811888cce74f37111f03a41029c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.71-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e4df1f3ca399e78258444d8259836deb50c1801d1a73d6ed8170b6389f6449fa
MD5 3ddb91ea9176f6ab2d9e26bab603c9c6
BLAKE2b-256 52d165400a30723235e94279e23196a6dbf824f7e0bd863ae2634b30093cecff

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