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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.807-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.807-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.807-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.807-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9c25a3655d08819cb2b9ccee70a6eaa5b037460268c4b313450844c55ba1eca3
MD5 05f6885b02c3ef470afd60a02e4483d8
BLAKE2b-256 0cb527f1a2d5e556eb950764d05bb8499be4b7fcd62c16354960288cb0408df4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.807-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.807-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e31f373b8601452e16b32c0c9d66c1d03497edecaeaf0a9bedd751012ae3bc02
MD5 b14cbd2023af3d54a29f422183c4ec46
BLAKE2b-256 295f8cde504b7064784f22a283c0dd621de244a09cda810107c337f0f7b61b7b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.807-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.807-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c4b955ade7b1a11842de15534fdcd546b3735b6bd5e8fb23c7862d2583a9e082
MD5 d0537cd10a8f306a0df0803e68fc3aca
BLAKE2b-256 4c0abcc6156ffa8a6ba67d10652ef7e014543dab5fae2b434ffe198387fba0a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.807-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6e77a3c3bd1c52e301727c4c6b4586a8514c8fbb254e76b2c34d029e6e2bbb76
MD5 d13ba85896eeaf5fcdb440de399e54b3
BLAKE2b-256 699c45d14f6e919b2e9e73f40f2770ccb09b45620441b2dabac3718e0759bb3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.807-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 02ca836143edc97dcc95ab00d9f49d3525b1fe0979204d9d5d3255a444d8e4df
MD5 348d745b903c813273d6cc0b0545d34d
BLAKE2b-256 dc916d41b22004cf281c38b17dd92c0b49ee02b28ed0db5467f0fc275470936c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.807-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.807-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 177b50b4e9e3ba3438597efd299c68e6cfd2feb168b2837910739d293b5a844a
MD5 688e3aa33a359b703dacd9bb9b4becf5
BLAKE2b-256 a8d29c55ea088bbfa1cee116c03b4323fb3cf1b0b7879e8549ab7feffa37b91a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.807-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.807-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 162ec46fb2a5b31d7995b123fa3d15732befebc0958f060021197985765135d8
MD5 04d241743aed2bcd6e2ae4515b6c4173
BLAKE2b-256 94c633dbf40e74145c6019a099bff9afe771b2ec6eb09f3fb9504b2a63a33c87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.807-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7fe42a72f13417edb6c2d6fd21cf5973f31161b164a09571c63baf876e66d9f9
MD5 3b2e364f3987c25ed857d587694d86ab
BLAKE2b-256 be16467abea80a7379aa07301aa3829cc5d37720edc59f12fac859ee1d7f131f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.807-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c5666d2ae5a967f39e06a9c10564ba0e4842013537824fe6f2522b3428de607e
MD5 713261808dfa1fde7cfcdbbe9923cbe4
BLAKE2b-256 1e363b0ee0e85083d33092e7623af2ad5dae11c1060af087eee8fe820cd8a2e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.807-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.807-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e6b03da33d3dc9d15bd539566f2472148f8151fdd2ab7d68ed5d57235c4f1037
MD5 def9a43baa0c1590b9cdf824855b9e3c
BLAKE2b-256 970486215de71ecd8604d0985803aedac7bf95bc3093e051f254b5a5f86ee6ba

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.807-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.807-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b50d0bd67806a29242ae2d2560259db5069db2bb2f17c5eef6ab30befe58909c
MD5 2b83c1d1e1ce41adb572ff0d1150de0a
BLAKE2b-256 e3d99f31346017e63f640f8d5f3b3f363761c59e81b3940e70b588e0313d70e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.807-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7aaa90d9f695d54ce56320242738df9624601192931ddd68170680095f5b147c
MD5 e0352f062f3138b78372edf962a029ae
BLAKE2b-256 3e2ecc12a07290ba71851ce3f0663f01eabbd2ec772e18f229a7448a92cd324f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.807-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.807-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a1eaf0d0ac8d922a6548afa4e42896bdd9a41f853c28dd03291de3cfcec536ee
MD5 80c2b8742041363a5aa5e7964f2076d2
BLAKE2b-256 836875dfaacafffba1faba83e1eb5ecbb0958a64f83898ba2e1d00163eea4958

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.807-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.807-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ace6dcf3f5aa61bedcdb5436290be2638c6ea1f2966b37867fcaaaabf9f92285
MD5 3945ce76f568f26c2c3af2b96cd25a8c
BLAKE2b-256 cb4912775e8a962a8436538d9d658f857fc1d997759d19938a2802236bdf5656

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.807-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.807-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ea4fe89dcffa0a2164178539ab794d77b901aea09c542fc299843d0706ab8905
MD5 22e5c30f375eb59860a9c80c5509544d
BLAKE2b-256 1a6daec8fdb68a6793f5d88e96c8533f203780d39ed6d35952fba9c7cf917a9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.807-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 18d2ebbface3c4d9dadc41316e7d806fb38f3b13757dbfa513d5121923bf849b
MD5 942d9bf70be923f60ffa3d29a70f75b1
BLAKE2b-256 7ee1d9ca8ac6c6f29204f330bd03fdf659de8fe333caa4b83c1974a976f08537

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.807-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.807-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2e87aca5c84f560dc1b7ed8035a1910e21c61249c59e4bba5cd2e6aaadbe2cbc
MD5 107303cdfa399c507de056406c70d126
BLAKE2b-256 0efd5422211236c87a99c88316e1badbc17a60bfc6db2b69183a997f6ba1b530

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.807-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.807-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a253aaad6a7be11d24a025e3156113082969718eedb06b4e04fc4f10bb516903
MD5 b5610fbff0f391a362a1a9083e782469
BLAKE2b-256 c1b1bd8300aaef4ee6f9da8f2bab5ba6f2b5d2cc1e6068fac8b3111647cb6474

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.807-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.807-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9962bd4296036043ed6dbe91aa75024f5f5e35fd2d3956cdead3ca9f6e1e25c8
MD5 9433c38323d99878ed57dc7aa1678ecf
BLAKE2b-256 f07fcaa2ea2b9d0f6b28d7599db0b4a7cbf631ab59c8304bb144781fbe140533

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.807-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0b2a636fbddaf461ef58a91fc0b5703cb9b2a6bf969bb4b99039c091f38142c0
MD5 7722fe1b44ac2fff29825c76e443c3f7
BLAKE2b-256 bf6973ec8e1d15e528ca6f2bade6ed3fa84b2bafdf01c94a8777d98d48c3dd7a

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