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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.631-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.631-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.631-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.631-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.631-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e5442cb12954fc47db1cdc0e89c519db8dc261b9c5bf9a53157473ea0ad06f73
MD5 9fb52c6ce7b1614ccc167de8e39a5409
BLAKE2b-256 3106771291cca344268066d9cdb550cd4039771e612ad614cf0a5a37dae83ae2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.631-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.631-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 26458167244400d7809ff6454fa9a9a6618e87a1a07e329c6491599dab93895f
MD5 28ef147e2a6d21fffdd60cc0455fb2e8
BLAKE2b-256 66dfad14efbf0bda801056ab588720fc79a07f06d0b7f309e84693b5530f0dc9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.631-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.631-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9c7fb698676f87cdf6beb55137b99ed43d2ee0714c3688fad5cd555488d484ed
MD5 41fd5c8f53d82f1cb91447c46a2104ff
BLAKE2b-256 295c3faceecc85a6bca6e5ddf594b70eeb3df62edefdfb4bb998e202ece6544e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.631-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c9f8cd51ae0a6b95d51c4dfd80b5dc4d223a63314a9b00199d7261f71e00a2b2
MD5 731d7f673b4b65cea051238c176a97e9
BLAKE2b-256 1837116dcd22a7fe59adf872b15cc5caf1097105f5d7f6a2cb1e79c9ff15aef7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.631-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8452fcaf0932b49c38bf15744431f5e5952d330a5eeb0ef2ba9abd48517d8951
MD5 7e993f8d5098272ac958df8985ae4375
BLAKE2b-256 4de64cd646c81408e2a30a82f6dc9439fb86a1b1bc76ddb951ceeb3b5914ac4c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.631-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.631-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 71fec58e377c27e64c233f2d51c4c3dfa889ad69997a49f6b505224d25649e75
MD5 5a0a3edabb3cd851e8ef2d9dea493ed6
BLAKE2b-256 bc3e78a18808d44d7d72c423fea1339ac33a8fa9169285ba1f7caa8da77c0a13

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.631-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.631-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0d14f6926832eddecfa97361d0e6917f4f0b1c02d5ae582b06904be17dec60c9
MD5 a87b43306e47ed54bbaf0306d17dbbe6
BLAKE2b-256 3397f816b18f887b367fea2b854667ad7dc5d36a11f71ecde6153feaafea7590

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.631-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8c27a761a1c9aa19c84c7d3cd9605d1831930e41aa545a90d7e20ae630f9238f
MD5 7677988d5bc213003fe201e259e32abe
BLAKE2b-256 4670cc6371a0b844545ccc03fe04e92e91f60404b1a958d1d028658142b29a68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.631-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 00bc18c6825be38b1c8dba1fc81f8be0b27f30916e62c427846d081d2a997af8
MD5 9ae20070eb510801994761ba905a809c
BLAKE2b-256 d014d6ae95c526cb522d69db0e626e51e376158ca0307cd36e1a3d3341ae90e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.631-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.631-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b328b0185891ff13e39c12edc257be69bd028e23dc41cbbd863ba8f563ba79be
MD5 7a82b0d479a979ec447050ec21824ccc
BLAKE2b-256 0511400d4336034b8b463bbce6dbaa5bb57f5cbba71e5a03cd550fae065d9e11

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.631-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.631-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0c75095476520cc134122d45a631dd144e880d58a29b8f314b966d7421e6d081
MD5 1eead2ecc4377eca1e3ba7c2ffbe8511
BLAKE2b-256 0e04746e53f0ce81c9e45de80068e9e00b32d3463e44a5a7981fe8b09e680fef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.631-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 74c74a62adb673690f5cb92d08a9707811cea2fa8bc7ceb45c397b4646a4d276
MD5 a557a351aec30603e67b9c1d693fd347
BLAKE2b-256 75a25719d961c73c70732e6e2f0f82acd859202a50e4530ed08f670579985557

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.631-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.631-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6fae38dfb6f428209972961b5a90cfdd1c2c147e0cb6d88b88a5dc574ab37a16
MD5 81ad24dcc8384053b976acb6c048f22e
BLAKE2b-256 49ad99bf5b540ad2b62e8db2d3a3276cf0421dcd8ff4e7ede8e73caaed8e9aa0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.631-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.631-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a1d1b3df3b2df85dbd3216a86557d214b8914c4c2b4863d8b089effb01566d0d
MD5 b0e69f372458a02ca0ad1bb6002a4099
BLAKE2b-256 620b9c5c363bec04ef7548812b6e0555af5ace70922f594566b6f329e1d54faf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.631-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.631-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c5c2e162238ef32a90b5331509317be5110e91bb53f5f4ca972c4527a4646f7b
MD5 0ec9fb2841ce0cb88c05dcf841243849
BLAKE2b-256 4068e0fc4269b57d8a5f9e4fcc6909e183ff182b09ba2b5175f2daf747e2dd73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.631-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aa06109b16461ee344d176e273e3f8eb348a2f467b2ecb54a4f8d1a05bf09255
MD5 27971a3e4aaab65084b9fd48f0bb7950
BLAKE2b-256 06392a354c4ba3b005f42ec95ea8822e9d37052d6d2fc22a7a63af8d2389ad59

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.631-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.631-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 674ace42ebab03c72bda488d8b825236b5dac8cc1a78e2858ec6297ef272689f
MD5 568d97a74f1a298d2b1d3c6eac6c6b3c
BLAKE2b-256 47d40334f06f73ab6bfd72983b81c5eabf394957e1de2dda1bc5a30afbd85c45

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.631-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.631-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f1419200035a07b3a84aec98e7db3797522e4eb2d3aaff06124cf0a0324f77f2
MD5 309c2cdbc1f3e6690e22fcd8133359d1
BLAKE2b-256 0b5918eba3082d1582518aed8c7e50e31e7d5e2cff3e5b915a4505c7a13e363b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.631-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.631-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b9d2b6cf9916ab99d47bd405397255b388a8607567519e2b8ac712a100d54c98
MD5 16917fda2ec9d779998aea743e42c098
BLAKE2b-256 e14f062ed8c795a980a5afb2aed20b96a90a061b717ee335630e626cbe59287a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.631-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 089b3bcf4e332d0c56d0d6502c9cc32d628dce260bb7d8568175145b01d1e579
MD5 afa93d09c1798496646a3b0f94f2c4a1
BLAKE2b-256 d2318bf618d2c3e602b1d453b48ef3aa22a764845f53dd17fb177d84c71cc4f1

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