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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.554-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.554-cp312-cp312-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.554-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.554-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.554-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.554-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1ccc4d55029b9c7cb0a6fffff5a38cfdaaef28bc2f2bdbc71641d6c7b12d3f02
MD5 a3e800cfc20e3613f829548a58536b6f
BLAKE2b-256 da0b971366f8d601b37ad305684ea6e2941b866eaf656c0405f2d7b444953712

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.554-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.554-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 24056edd5fece10a9d96e18bbcdc0a60b426a3dab2b79207524b72cbc116adb6
MD5 0c81e5c57651747ca884611d5ab521e3
BLAKE2b-256 c6f2be674a35e519f0ab34ba5ff7622aefca25ee9239eed0c8830a4473ed4588

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.554-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.554-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7e35ecabadfc4dc609b1a9d8d21a49036902049fb21d6ba061ffede78b0aec3a
MD5 96fea53485c1bd32ac11bf711858370d
BLAKE2b-256 a0d0fe8dd7e513be1b8b74f721c642fabe08865565aff1b0c846212d9777fa33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.554-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aef8798341893cb434597cbc15042e24c64921c7a1edd83b3e7d4edb413caa76
MD5 dfd40e118885cc49d830a75f1d49da88
BLAKE2b-256 4af27cd5bac9de758d0ba91b245629f8036ba1803c19efcc5e2830740536c36e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.554-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2a85248b9a6fc5fd6d9a8edd226cfe8fe81fd1075565b4a40a521c046e420340
MD5 457354cdc676e9ba745d921b9c1b4c04
BLAKE2b-256 4c94c159ef48a71505d0b0abd79e2bca1cf6fbcefaceb5affa7050ec82bb5502

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.554-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.554-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4b3da9567f3294f6f3991e85f85d3722b47450e4c1be43a245881be5b9896cbf
MD5 7054052bf36cc1121d38648a5a70926d
BLAKE2b-256 83c0abd2544e4e2f4d443281c9c007cdcd0b326519dbc20cf90305b2716e22da

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.554-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.554-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3690661e447bc4cce5cc83a78e76ee68ba0d4122102c1710a60d3eb6d06863e4
MD5 92585a369fda11e522f6d77eb04594d3
BLAKE2b-256 08cbabf97d57a7174b74a4072ab71dd78e7019177c34828a388dca834b023312

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.554-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 53d818bf7895c352659424ed34ebfb156fecbbe2a4bc5fb1c53a49b9d137f78f
MD5 c62e961299bbd2a98fca97f8e1d65045
BLAKE2b-256 5838663e4e8637a6dc644e59fdd0eb5d69eb3fad958ed95b3c8e2ec8facace28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.554-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7b5c487fa09eb0811a28469af9eb9f69397faec2e842f65b17b5bf626f243b71
MD5 14358cd84a0e4680513b8d05f2f4314e
BLAKE2b-256 6118610ba5e1a38264ff7d09d2e469def49ef3c9eeaa8cac57f649eae6842b1a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.554-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.554-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 51fbdf62dec06bf41e9f8ad4e3660b7a182e9e4f131024675b782f17089b4ce6
MD5 63e320df64d9840b53b96247dddf9a73
BLAKE2b-256 55e026222064959a5b584ee6d2ffd6d3233330dd9c22b44105129cb52afac541

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.554-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.554-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4da3cfc123a08d98526e4f4f3357f1c3e204f6876320508db3321eec6ba978da
MD5 5364df5fc2b3ea5b1c4b43dbb45208de
BLAKE2b-256 f3095ff3ef0c6b441e80e00d75fd0e0c2a5a8311ffc19c0ea69617b032ed093f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.554-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 42760fc3a62b00e4ac1d28ff0e55026abca186c573dd1962ed9ee4d29b6c17b0
MD5 2159bc6b76e600847c827fedc35cbda1
BLAKE2b-256 d6d951bd21c09f242149336cdc9e66e2e81998d575256c186de3a8611d842dbc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.554-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.554-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e9f6ff6b6113848607f10209edf352aafcd12233afb9c8beeae20bb11910b05d
MD5 7c91454d019dcbc987aef12065b69611
BLAKE2b-256 84fe2699df45d4ad5ab038d497b66bdaa6e32bc86559536a430ef30df0040040

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.554-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.554-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 73e732ef3afed93df2b0f5502694789d5e47796d1e8e2a719b03510eadfd8542
MD5 2bef4cc8ea7e9ca093d364974dee0234
BLAKE2b-256 588831e55fd7b1b1660d38f1be333cc691da324de34c7cb9910188fbf922e793

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.554-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.554-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e66424d0fc349a53fce0a43e3be67e38db0dd4ecec19d5ea1dc10f2210dc538b
MD5 6577c35c29dd113d07cae1e302cba107
BLAKE2b-256 4f79bbd72dcd9010df0fa1dec25c407a738a03a852d5dcb94272630137f102ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.554-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1c505b0bfc249e3a842871eb5fbe48f545e2b7b725ff85a786a070bcb0139de9
MD5 6cf4e40ddab73e25a46d7a02933817d5
BLAKE2b-256 1cfc68174af57a0530f1ad140e3699fc52f4afa681d8c997808a2a1ac5902477

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.554-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.554-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1b85c12b148480fa4937e4c6de8064b1cc09c66e617245094427ed9a47c23ed6
MD5 3eea0702ab1eeba767272e06fd5a2c94
BLAKE2b-256 bfaaac32ad5a3d1545ff75c9ab6c25ccbdfa5670b1f722666414658818673475

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.554-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.554-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5a720d476874e2ca2f8fbeec853f55b7893d411011d5864db9c83681a991cefc
MD5 88f28c918bf0ec1b53abb9831f33c41a
BLAKE2b-256 eae7ca9738f346473821430203f051f5e259c3da201bf402f26abdaacb142e76

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.554-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.554-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f98e492ae491cbaceb740d871f3d3dad7a7ed3d5aa97c4a4914fafa432683ffc
MD5 7d2969425447334bd283d4176f92dab5
BLAKE2b-256 318e3e906d95cfb9f1161ce3b3af8e68924b2967dec1468d5a889b8ed5530fb3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.554-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 866966c594f1236549f0ac99f68f873b339adceb1acf78b9de50021720247e9f
MD5 c8a9ab9bb8fc045f3385777f295b0922
BLAKE2b-256 eaca8e539445d16e76c05b119804f488c5ea91d717615015c1c92775c9f852cd

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