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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.9-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.2 kB view details)

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

simple_equ-1.3.9-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.3.9-cp311-cp311-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.3.9-cp310-cp310-win_amd64.whl (117.5 kB view details)

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.3.9-cp39-cp39-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.3.9-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.9-cp39-cp39-macosx_11_0_arm64.whl (119.7 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.9-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.9-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.9-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.9-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.2 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.3.9-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f995591f047b151d7159e53a790b60bbb4b8836119099689b9315309cc1e5abb
MD5 f9052892609e6153ab481ae275978470
BLAKE2b-256 45e65da3228f6289cca63de0018239de34cfe2a47ed15d1f9eb092bec60cae40

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.9-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.9-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1bbe515bd329492a3361ebe8877e58d27aa81646d7667fea1d0fd079226b72a3
MD5 197c7099342b8faa5bbc7598cd1e1ac1
BLAKE2b-256 55a618c26d6150428e39a56650119da6b3807dbdc89ce60e18dcc4ada971712f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.9-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.9-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7b64b252aeea85f61a22ad5c214f35e69cc8262a134ae2d9dbc9397fedef13d9
MD5 da508b3cb9ec349890545d375291d3d4
BLAKE2b-256 d0ae525801dceaed2de837d3f990c8d4a880dfa3ad9285406525f59c1dac4334

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.9-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 234accab7ec92e6cef32ff10123be7fa1a76b34e8529b9e1bde850703b478468
MD5 81fc3935f6f67deddf7d8635c8f65849
BLAKE2b-256 54d9b3eef2340e6646f4700613942fc68995e15a1e8db7398e88483c6ad88bb7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.9-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.3.9-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5a8f9aff48e2ffe47b5d6d6bbc2307e5523c4f5ac33f6ae82a480c5c2d81c159
MD5 a3c044f6f4939a823e7a88f115865efa
BLAKE2b-256 8b084a715d59109badd3be028f0ba949c86403a023845a69012e32dbcc69bc86

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.9-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.9-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 50fee3f2c02bf0e499b25f9e6cb7058791b5e83ce09846e652801bbda57a82e5
MD5 437d1d6496dcd9ab9552ce0a48b23b37
BLAKE2b-256 71f86a02a5a9e0eb0817b66c7a41a8dc55a2d1d296204d53c499bd5289b790b1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.9-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.9-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f8f0af6dbda8cb9410430e56e518f204a401d2e689f5face0d58e80b473dd423
MD5 3c603daea06dbb750de12ef0649028c6
BLAKE2b-256 cefcfdc8ea74d6eabbc806626626b3efbbbbfd66685c01ecd71082ad3843743c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.9-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eb03b93c9c1218e4f42368c5c96f968dd5eeca26cf0615119cccd9f883881577
MD5 067ed691803bee0db217944d2790f92b
BLAKE2b-256 cddaaf860a4a453f2a9e06ed0e380ec8a60ec98b914d565ad0679be1635bd369

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.9-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.5 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.3.9-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 338f601e8d59fe0e2e32a573a1b2750aeac84ecb8ad530e5ba3abaa04141a1d8
MD5 a0a1046f3e71107d458f8313000c4c38
BLAKE2b-256 7654bded2d6141ee78e4eed5e9847d088871ead5c56a4744d475c152f8e81dab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.9-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.9-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8526cfe8f05365b3cbe2baeae518f83ee1114bb7cac909c3409b996abd1f7ec5
MD5 20e5fb8e7bd8ae0199352acb9ef01b32
BLAKE2b-256 6bfa329c52214f72479e10739570472fd60e0799e8aeb64f6c155fc8a96d366b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.9-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.9-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9e666781e4908112ff53a056600959ff5e7db7e1e179fcb67e612880d2c480b2
MD5 6a6c2a1b7bdcb76bb039063a394b325a
BLAKE2b-256 825f7cce10b414365380165f84f2dc7832d0161f36993b8180ab142ac9246e4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.9-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ad62cb7ceb15cea4ede9067d6a92e2cd8376f8ef2dc55cff7284ee4b60d07635
MD5 f6af8ded9460af74a68ca2c18d12fafa
BLAKE2b-256 f8e2898cab0a56b5935e1f0326506f158de08bb713e89b493432d508412d7d6a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.9-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.9-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 162ccc59ee7a91b5f1ca4c64963b849ba03339212d68864a65ab21e868a67bf8
MD5 c0ed2234ded85b518f85489b37fd452e
BLAKE2b-256 f358fa513b5bfa886f8c2403444c0e87517fa456c21fb4425ac09b7088868a04

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.9-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.9-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d769ed0cd6d70247320acb3642bc7a2cfff3bfb97c3e286f6c7062a3ba166ae4
MD5 8e95d5fa2f32716b8bc4ba6a85d80f96
BLAKE2b-256 4bd1155ce3766d272944a1a47e152889be8df97b60c7bdc74c24cd85b86881b7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.9-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.9-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 51076fd19c96c25799838a24692955e9f63f5aa61f9d1fd65701e2b879b46751
MD5 22287735a402e9bdaa4e68e21cac595c
BLAKE2b-256 a8e99ae1e679e8a42d5b27597fba6752b06f7fdb4e75429b6393730e9155e79d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.9-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 554b786e980620141c7a800f58f6804322d8f7bafdcb2614fedf9a17556fbf6c
MD5 a515a9a26619730f54b50deefee51152
BLAKE2b-256 19177a86c7ab912f75b1fa330682952862c4b56aa26c90d36a51f90a84780f79

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.9-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.9-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b97cb074a0453c04692bda5c63b788fbc3a2eddbb8096268eaabe5da55e1c6dd
MD5 d26911a24c7ce54995770b0d89074547
BLAKE2b-256 d66f094457153069279d6fd09effd2f476745685a58135e0167d417666712dbf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.9-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.9-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ed98367f88e3588371afcbdaf8ca5c20ca9815d8d92e8139f8e8808bd31e7dc1
MD5 c255706b3f7ad482043984dd0446d65d
BLAKE2b-256 9c616febe808a64262f30135f35ec840c5d34e7cca8ac2e566008f78120c40f6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.9-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.9-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3f9fe15dbb0dde7e66904ce1ccaa65afb1b8c57c9d765771ebd85ce1187474b4
MD5 4b66de064bf771adffb461c79be41dba
BLAKE2b-256 3ec8949ca513a132e1e91272955e74f87334bb2419a0ee16382a265047a1ba50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.9-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f2ba5b774326a0e24afb5b85ecaf70c8e17f56a85dab1f02b15b5a3c47bba253
MD5 39a18bc7bdeac9b90a42bdbd6d848457
BLAKE2b-256 39955b7fa4273415e848b1666b22becdb2dbff098c3f0aa74c77e8f12890a1d6

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