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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.2.54-cp312-cp312-win32.whl (110.0 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.2.54-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (313.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.54-cp312-cp312-macosx_11_0_arm64.whl (114.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.2.54-cp311-cp311-win_amd64.whl (112.8 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.2.54-cp311-cp311-win32.whl (110.7 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.2.54-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (277.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.54-cp311-cp311-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.2.54-cp310-cp310-win_amd64.whl (112.6 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.2.54-cp310-cp310-win32.whl (111.0 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.2.54-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (269.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.54-cp310-cp310-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.2.54-cp39-cp39-win_amd64.whl (112.8 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.2.54-cp39-cp39-win32.whl (111.0 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.2.54-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (268.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.54-cp39-cp39-macosx_11_0_arm64.whl (114.4 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.2.54-cp38-cp38-win_amd64.whl (113.3 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.2.54-cp38-cp38-win32.whl (111.5 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.2.54-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (258.4 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.54-cp38-cp38-macosx_11_0_arm64.whl (114.9 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.2.54-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.2.54-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 112.6 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.2.54-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 96fc009822afc36bfbb77f553b1a2f6f194c7cd29e99eeba8417f955b3782104
MD5 488508bc17f47c6e0c2e95d0c4a7754f
BLAKE2b-256 b548c363540fe3f2db0606c1377c4fa601455e6578b590b36209afa30a45a87a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.54-cp312-cp312-win32.whl
  • Upload date:
  • Size: 110.0 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.2.54-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 daf067f68824069c2908d6ba16bbf481d8298b9f2b376bc819eb812544119137
MD5 9f39113d3b6d0bb638f0700300054c7f
BLAKE2b-256 558368a29ae03b8740c5babd7285d84fd6750ed8ab58eef4e3b61503174ea8f6

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.54-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.2.54-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6ef78d9f25169062fae2c6c6a6bcab902ee909b428d874f93ff1ebb207929412
MD5 90a4a214ef0f9879a831288c6e2547d2
BLAKE2b-256 356a6309605a0d05ffb77a850c1100151d1f7a6269ad5f22fdae178b0c41989b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.54-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8c42e4b97e603b13fd4017217c652b27091d17d948c458b0f0cc193f8d34cc46
MD5 d1a5991c80731f4a11c60d89ee05cfc9
BLAKE2b-256 fb27c8f33393a780bd2f3aa55bc153d2c5cf4d6abe5aee86d15f61c892a44048

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.54-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 112.8 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.2.54-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 db9c7acd7c4e930cb4cef114a72ab6027827f31fae7c70a79d162b973da6e3b8
MD5 aa198e071f1b07383bef3c4e033042d5
BLAKE2b-256 1acbea564afbdfd0581cbead3099a7f76fd162112cfcfff3880f90a00c276d4b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.54-cp311-cp311-win32.whl
  • Upload date:
  • Size: 110.7 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.2.54-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1327871511408bad139ae5b60edebf122ad96c03a9e78a20346f6f8efcd298ec
MD5 658ccc447331558a5686ef05f22b1595
BLAKE2b-256 de4a63897ca2171ebe3b33863c8b51db8f310a865123ac847c09fc3aec305cb1

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.54-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.2.54-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c6054166c05ed58d3009f59997201436d6e522a97bc0b9bff9350d36ab124d7a
MD5 60196b52d4b3e1febba09ffc3ffd05e7
BLAKE2b-256 1db0f18483332cfe37418196bf5f723cf7bfc64f83b3a53ac2dab89db2661d9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.54-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e63a85f0c082ef1ea3a818d87276879a453447c24e3bf9d2bfb6480a0bd7d548
MD5 adba922131c94fecc19326eb56f34bef
BLAKE2b-256 a5373600808275ce84b22654a86269719c441b7ebfb0350467686f7f518f0197

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.54-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 112.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.2.54-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 16ef01c0df4ea35f671d16f7707b6d1f96168e72caa47fdd3887b280910475aa
MD5 2e18b4db3a4078cfc795809499ebfb40
BLAKE2b-256 381c9cc499eb42161065017c92a26002da18171e43ceb3e378ea1e8cdd13eb55

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.54-cp310-cp310-win32.whl
  • Upload date:
  • Size: 111.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.2.54-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4d917f062e6d0d839d4018facda10c9a9c58b0f67025cb1eaf810fb0c67a7ce0
MD5 c053a0f1fe7d483dcc1b33cc49d98fef
BLAKE2b-256 17c00ffd90e5f390d168857689ddb9b7530529af71d39e188a07df5572e31790

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.54-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.2.54-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1b068a12fbd4a2ec4bf08f49df638316e5c0d0ada5166c01613d1aa791e60b65
MD5 b1cd1d55b5d48ad53f099c81d874d4eb
BLAKE2b-256 b9b2950b7a81d9094cc749e6a2de29182aa417640cf2aa6e67b3ee7fadac71c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.54-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 59596bced26b4d920589da8d48dd4f7c1c0e80b81c84225a3b25bf481475dcb3
MD5 09ce2727279ed61c343ad1be4a854b2d
BLAKE2b-256 579342442934eabce6cf53b87da8166f5725f6f52d0e27415c1dd12ca3b5b51e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.54-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.8 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.2.54-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 bbe3062b8bdca3608dc5eb0f6f55e78b9ea1517fc8f1971e359dbf76baa0c1dc
MD5 c73b8802192e6d162b9635c5fafdfbb3
BLAKE2b-256 128d811c4f540ea870c6c47aae504ab4e5117572e58ea2ec5ea0c6bef2bd404a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.54-cp39-cp39-win32.whl
  • Upload date:
  • Size: 111.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.2.54-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e583a9b6f6aaf751956005d0acc70b207e342f2e3e04b238b7ee65b7fd0e126a
MD5 d3dcb9f916fd65e9952777435799bad6
BLAKE2b-256 e3b640c163716a10b5f198210ee048ed6debd405fa84fa837093a142486fb0b4

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.54-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.2.54-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4edcb21b906bb612197a60f417e5cf978321b58339dff31b5dc6c6044c65a70c
MD5 c20cee854863bbbf286c8bf1ec09578a
BLAKE2b-256 9e6c9446876b60875f22a9e23a9936e33814b6dccbed916128f29cefd59db598

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.54-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 74ee7d51c31b79e649f1106c2d51327f08ac95cf2cae025341449e1e42db5b37
MD5 ae4326d3d9642768d293c3e7c9685058
BLAKE2b-256 e11cd44b3875091cc6e26d885339d536d02aba6f87105345049fd916afda3887

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.54-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 113.3 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.2.54-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 45cceff192ebc34d271df4fe1ef568bd5fa9c9a80a52a41a40a703dcf8e2f304
MD5 5301f47acec9b3cede1d49b4068b808d
BLAKE2b-256 6745fe12ac08f5e147e29353b4556d6e6c635339dc910348bea5085f089c414d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.54-cp38-cp38-win32.whl
  • Upload date:
  • Size: 111.5 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.2.54-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c8a822282c1499bf63792d64f4fbcc1fc90bded37f447870602b181ac475c00f
MD5 7556dcf6613d4680c27eae0f5236b35f
BLAKE2b-256 4d59ea9bb3c017849ab467c65bb3be455c4b7c35734a4ccbf06f1a4cfb770c91

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.54-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.2.54-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 51ecffdd75c8b53e40da7ad7877c519004b091d36490b20189656cf1701be2c6
MD5 d3665499eb55a725e09551dbf123493d
BLAKE2b-256 e3311ede013db45fb5efef1507a393a860d5e7336bbdeaadd161970210682bee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.54-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 695c0a8fbd65df0ac0ba19d8998bd204c9ccc9313ba921736eb3edfd30122bf2
MD5 d82fbf388d5cce9c4a1b4eed19a83b96
BLAKE2b-256 15251d24d4ce1c7cf75c3ca2698bcf9d5498e627de2d13d1d763411994a0db70

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