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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.641-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.641-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.641-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.641-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 439688a4eb6d5913eb6193ca8176127bdc57f100564bfad8d27ac3d56ac525ff
MD5 6f1347f32ae02635a601a1f2d6360611
BLAKE2b-256 4161bb701d70d7e8244a2fc5bf1a995e4dd6aabf627635c149940db06b9b9e70

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.641-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.641-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5c8ee64b40393b1aadd11103e6820c4d9a7f96475d7dae7940989ff819eecb75
MD5 422c276daaab6540f1ecf16dacb58d04
BLAKE2b-256 86632fca1803ada497727bae11bed6fefd175f4be8aedb5393904e029038c6b8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.641-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.641-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d3ee0f8bb61344c3623d891b4526dcecbd0804b0e26dec26a61cd35b0235f330
MD5 f82b20b2f7d11859e9da7da839f5109e
BLAKE2b-256 bb8a97514c5ea7312f251a38b8f729c4d40467af33541a1164e66652a749e38f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.641-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 68068bef4a809fd50f6a3e5921fe602f14c4ed9aeded26c0f674c195987f25ae
MD5 09b4190a62aa16acb682753fd58a8fc8
BLAKE2b-256 2a64e3d3ea5418e5bb2f5f97de549ab1017175b56ba79efd8802334d1468e183

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.641-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2de81200870f0c2421009e5e6d20d146d6e29044c41f72f448ed9b164214bea2
MD5 fa46f35a1ab58baa4aa8982415910904
BLAKE2b-256 1099a511431293fb780c995bae424c90497fda03dbb87894b97333d9d44b8586

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.641-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.641-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 be8e8fad5de041bb09358e9976e93127d128e1445257ec511b8f52f5c90e57f1
MD5 0507325c5ef8a98fad9ddbf45e8656a2
BLAKE2b-256 34fb19b335d0446e9ba05ed4918a78e20e98f2fbee3ebef6036f4a4de2aaef25

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.641-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.641-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1f74b3d7d10c2a5c8e2f6a0befa976bb8c34434f5a78f7794ca30feac688d141
MD5 637d4ff71e884f7df681af1257b516fd
BLAKE2b-256 eacb63bde1893b8a685293550eb49da28186974781d041e9df02d41e2bcfa37b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.641-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d61ed2864ff5cb2c3c2f07b283edf87cd1318407b3f47e97284def9ceca3d50c
MD5 b1038f5b1603909918e79898807b681c
BLAKE2b-256 cb7e4faf7b7e04b161747e6788670d308c182d21ce7c4c58972bf5a62e738758

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.641-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b345859234969c4ee3e9ad743b9b63c2af849a76dc579915d9b25310405b561c
MD5 93c3b50870ccd64c436b03c609c8763c
BLAKE2b-256 d62c0d5f517b26554bbcd7c34c8cf49f87ad172564eefbb75502f19b387ee07d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.641-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.641-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 19c33df9a76df0807bac68bd50cf3a6574721ee3fec8c026f80fae6386d0ad63
MD5 5d526ecb436cc64f172eb81347e7ce3e
BLAKE2b-256 9737087fd3c16341aa95344c499c173d54abe8aa82dea46368a3ae062d1be513

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.641-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.641-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5318b3e2e866cd66769b65e36409c89d68b0f0a970020256d9d90bac39151bba
MD5 236c59611be4b60d45704f504151f293
BLAKE2b-256 c0d0ecc2838f412a1e9a2e132b829667a48894d29867be37becb42fb6e23bd53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.641-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c1ab283edd1ac9b7cd27f5b15c12eaf7febbd2fc79c6cc5fa69873b092b33cd2
MD5 6ea96ac8e1aa859ab848935076779642
BLAKE2b-256 e4a91f94af77a469169c7717bf20b003c4d9e58f55fd2942f73f3f763aa3c9f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.641-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.641-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4a8c6ff0af63302b9cdfe62ee1def07177089401f825fb90acae3abaf6a4af74
MD5 1341b7f5c7b2e0648482ecc0626d2685
BLAKE2b-256 abce92dc9760caa551df18ecedcc1b881eb4e36792d3f84400962d60cf85bea0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.641-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.641-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1736101581490b81fa0aae0696462d22b6b4f95e9a307994036484481e8f37e7
MD5 879af60eec44d18604063c911a7a18c2
BLAKE2b-256 d187fe1132ab57a6b8b6b2650fa3930b3c04948942ba234189a7afc36c7df7ad

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.641-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.641-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0dccb12aa3ce5978bc07b6d1b0047e880219703ceb3840782de07b484bce8a47
MD5 75a1aba38170d69d5aff1b3c3a0a272f
BLAKE2b-256 72e0b44c4a5c9ef372cec10dc4f1c7973745503b224ee6cf0bb1e10431383dce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.641-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 80fd5d7a95670b8a49afb670b0d81109b5f2541470e59158f1e44c7c8b74a75d
MD5 da41f8a00a5a703be904d5ec14bc1fe5
BLAKE2b-256 7da96223bd71c9a0e40c5acd451c82990091dd45e87b63000c27296ef856b393

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.641-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.641-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 423d6da190deb738ea866ee3e43f964ce3b7dfaa8309128285b64754c79ac94b
MD5 9cba08a9e5980fd790fcc25adc22b845
BLAKE2b-256 ad4f34a8bcb764d9e4dc9c6eaa99893583e02caf5d5edf6709aba2bbbc134d05

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.641-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.641-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 3060c12012d82426278bf99e110e04622358586ef6a432d25e52e4e9ac9dc808
MD5 f0a0cbfdf38286900ec37c0c1d58220f
BLAKE2b-256 abdb0378008df9ce5d3273f10bb5a59cc5ee8e286fd2c1b75d1fd91ab72c6560

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.641-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.641-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5ac44a872f7df8f71ae376d3cdc65dc2888e75889378333446fbebbed2fb8abd
MD5 84b86ad58438ad4e6c58a36bcbe92ac2
BLAKE2b-256 cc87c12fb88e75bd3420ecc9eb376fea14cfcc0a80196d7ead912489d5f5ee68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.641-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b73af965f67459321203ff412d8d1e9d9a469b0e2f96cdadb5e206b3448362a5
MD5 5cb253e54f16b52bb771b60ac40a6f75
BLAKE2b-256 9ea72f1facc02a28ac1377bd461571202d221340e19797445d8c5dc6e70db788

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