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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.776-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.776-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.776-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.776-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 104d238d5362b5cc3571a7a49c01572e1207f2aed4dd15adc1533306a654c0bf
MD5 ebca8e3e659ebaa04002e366b66c1870
BLAKE2b-256 bf6453bf94f213fd2a3f97f1151abda12e8d4489fc51f94ca61276d1378a7f8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.776-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.776-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 200586c68fd31e8b1c1e7a3d539303ee8e0d56d181221d3b3cb841637e41104b
MD5 791dfe5380fb5b29d5bfe05b71aa347d
BLAKE2b-256 784acf8a70201176cc9f5fb6f4038fd8d79fcc5a498b5e9e95785232e9b28f64

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.776-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.776-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6d539137dbc96e21c6b599061aabb0913784174801c30a7f5bbc93d3df5efe98
MD5 9381a4fd79f8e515982536f8805b9f65
BLAKE2b-256 fe7088bb72fc076166fbe56bee6b859208d8d6577d65651c4bfa3fbd2c08aeea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.776-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 433dd8e9797bb608dd14d8e52e0310625646cfea84ecac73d057e6f2642706fd
MD5 47b2cf3a1916899e5c097eea3f28d969
BLAKE2b-256 0d4adb7a6c711c95d2c6cc89afca5e92cc129f7379fdf634b095626130deb53f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.776-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4dcf510c8475103f255a7dfda1dbe7e3d175f61496bc2f1d6625916ceeaf10d7
MD5 3fa8b4ee29ac43bca03470b357b629b6
BLAKE2b-256 c42b1a0ea7b2f7499f721ab5145c511e1a24a38e675112c33e1f826fa1c890dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.776-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.776-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 927cb10a5dba9c05c141604780fde6b267515f95502fa1fc59c8165dc4f2cda3
MD5 3164a18d1674b98a4f824ee6fbb3105d
BLAKE2b-256 7d69040cbf8440921f8f3cf4b30242ac6d331e787acb41e0a236f4a06df089ff

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.776-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.776-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 63058a836262ec90001ccb4cd117cef7202a389e06603edbc8cdf1f2acbe6047
MD5 91830ab7735dd379b2815cd6db783e78
BLAKE2b-256 68f43f9400e70a542c0da0df0c8af7a9566845f2738b382b246a92a05b73319f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.776-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 710c4f6cbe4fc59676be8c5e4ee93b42780c370fce582e9fa4cce053446700e3
MD5 5574b6d778f8902dff1d57c6f7e080f0
BLAKE2b-256 08c0ac98bafbc60d8aa29db66e48903cd83261e573777fb5cae6a5bdc3cf5e04

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.776-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ce99a19827ad41eb318f1b4964a8036409f753128d99a4166d1a7e6714e390f9
MD5 16b8caa869f02a14a627787202cbd581
BLAKE2b-256 8c77bb8c6c0853617cb33fe3086b679a7bec8296dfbb8d1ad2a6177a7ae4c98d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.776-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.776-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d35b482080805d6a2fb446a3d3a5c45159cd35eae439bf1945ab7a4d1f98c339
MD5 791adadfc60f8736eaf0ff2101e7e5cf
BLAKE2b-256 8fb36d973b65dd3272fc2fa379e51bf7293818f90ca3abebe0d8683824ec6392

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.776-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.776-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a4592d276ad7430eb713d92173e75318954e502a988545313ab81c8024b17ec7
MD5 c4ab7b3df06ac5cff5426b771f907113
BLAKE2b-256 7d53290be98e257cfbe2d1d3fbd450349c2977866f60b413623715eff3794ccb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.776-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5acb25f893c5144695e6892431b935676ac57c4195eef04a69eda17231b91803
MD5 f7597a965f3492b6ec76b500df9ad934
BLAKE2b-256 a38bd7cdf4f0c73efd2b2dc8b4e364f53c4b8cc10eb3b2c3f314647d9e9feaaa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.776-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.776-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 647c43d156d9ef9eae64bffdf87a14d6d721162ce44f653e5603f51021343374
MD5 e448761426c9285b527bb4c91e524cb4
BLAKE2b-256 b6b7805605d76c5f2466f2d7cf532707bced3bc26cec3f655c90ebe7761fa0c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.776-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.776-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1223ba9aac54e0185a3d3c9f465fb136885418255d35ada1b4c25cd4dd7259d2
MD5 402c41965d8221445d66df2191576850
BLAKE2b-256 b660e8af9f4265fa02aa3e2066b73f7454f7c345fdf42117bc7bcd826cc34329

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.776-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.776-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 df32a6ae22e0afa3fb8e5aa15b858a37009e057ef5a2b26cc4bbb973e4f6eccf
MD5 cc5ff39f261cbe4b72e1307ef43ec633
BLAKE2b-256 884b7927d1c19aea323d747582ffd739bb5b44b82dfd26caab87f548e321a034

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.776-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5449934e35cc5906f580393c1180009aea26e8bdb8f39567817dd0654f795a84
MD5 b12f5dbf38803f014e61d990e4ceeb3a
BLAKE2b-256 c8e39f4edb3756de0e2228528368a90a6f2fa7aa88e08b8cda84b41c254d034f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.776-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.776-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7572e42850c7ef1b788cbdc23c7fed046622225eb05f9f26a94ebc35cfef5451
MD5 e94d1aa222b7ee68c9364b3e5c7efdea
BLAKE2b-256 f2c0764adcd6cfdaced6ddf5a08f7e885e736282e073850a261a3320bc685c1a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.776-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.776-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 052c7927e9351ce1c842aaa340371528cb0c2ce3d64b258e29152ead38ec16a3
MD5 1121572d88575070bcec49862f581720
BLAKE2b-256 de89f31070795558c3ecccb0d45e8bb811fb2f5c2dc865941aa2b542a4da2886

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.776-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.776-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 73c1a837bb26d306f0ce61c8e7589296eae6bebd73d705a8cfc3707a3a94e914
MD5 51aa7d5b4cfd8dfa1aca98129dc9ed85
BLAKE2b-256 fc9c5ee9573026c39d5d9de5077f48d7ddc75307051374d2eed9d832a8183df1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.776-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e14a0f65dc55aea9b0341a43871f49538a6c5c4dc0c0d0be970244b704d30934
MD5 6a536b0fe4fd3af10f4033633c95ad24
BLAKE2b-256 871ee8d74f8cabd0f8a56999c4cb5bdbc76819a2599cbbfdec631c7ffb326085

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