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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.31-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.31-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.6 kB view details)

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

simple_equ-1.4.31-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.31-cp311-cp311-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.31-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.31-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

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

simple_equ-1.4.31-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.31-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.31-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.31-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

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

simple_equ-1.4.31-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.31-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.31-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.31-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

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

simple_equ-1.4.31-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.31-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.31-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.31-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

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

simple_equ-1.4.31-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: simple_equ-1.4.31-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.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.4.31-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 44338f93cdcdf7831beda19cb1f72503c73644520fc50595fb3a4035ccfdb8e5
MD5 3cc50b24be3d6b2d4a3ff2fd81ed360a
BLAKE2b-256 1a86f25f967526f08db068d5291327ef2698e1757e75df1d9cc69bf7590a6efe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.31-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.31-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ce6ea11f4fcd0b50b1f43cd6deef0bade12677833652f6b1bccf634be59e7c3e
MD5 82a4f852815ec2ec21fec5e2ad23c2be
BLAKE2b-256 718b4325f2033acf2afbc2c5b41f3491e7c5ec59b2d67f07a80fc64b8e202896

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.31-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.4.31-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1d8f25e9cb147f001da078f3cff0f0695c464ec246244b0f6c0ea5fcf9306663
MD5 ab57eaaa33a6e49c8c9bb5ca70930973
BLAKE2b-256 17c5cbd327325ca3f5aa14e57dfca9ec8835372071f939d9d245b85279ed0617

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.31-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6f0d553249fbcb65b661a1195b80040bccdaf1e11c5ffeb9d8a7934b73080684
MD5 a1fe3ffb501c0fccc44cc0ef47ec15e7
BLAKE2b-256 3993809bbfed89fcdee686f57cc2bec99fb58d39e857a65ed4925f9f2aadbd30

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.31-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.31-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c8f8f21bc598fe5ea8ea81718bacd3b81aa2149c4cc6b5af556cf9a371deddb3
MD5 58f68c54262f949f1392fff13f59e9c8
BLAKE2b-256 2f5d454a07dd61fd8dfada9a7ed4d93eda6ef8ca3b43a11f6d3d1e2eff58e4d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.31-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.31-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7e54b4da6736de6a2e2f1c4f9e5cc2a08cdf04992c74756b7d8b6b1ccb517d42
MD5 5f8f88ea25d76f44243cd579e379d024
BLAKE2b-256 45a2142c3a7b904bf294b66250d8006957523e779b77dd5116baf360b04e5d23

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.31-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.4.31-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 31e1add9565ce2e1db22ce6a1f8e792f9be385e82bdee7600499292ff80c2b2a
MD5 673541fc846d6cad8d453588b8128d0e
BLAKE2b-256 765dc88845661712a46522bd1034b9a6389b7207c9044ef1fa91d5f50fd7cbfb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.31-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0655550897532e2518a7a6242650e660526af7a984e76d1e93dca6adc1be71d5
MD5 7e50469d346468ca6955ea2ba4883d0e
BLAKE2b-256 d071374b2a8892be5a1a29f41cc7f175c6d6fe11120c1cac3059e6c677d8c04e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.31-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 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.4.31-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a988b51a93b1902332400bc20ec9a8dc50cda9211735638727da9d3cb206ae85
MD5 406632cb1ca4a593b12c284373a2d6b3
BLAKE2b-256 9d24c3465cb3b9f811befdaa03f0747f74711c513a86adf9a8867f1f1182d6f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.31-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.31-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d0d933daf1eddb3e02a459bfcadb6cdf1217f82994d5e93d6ea10318f347de07
MD5 e2d00b42116692882052605af58c756d
BLAKE2b-256 da9db4235e9f2cfb8ed2e0d6f75b282cbe0c29f4b5b40a7ae6290a3f88edcb92

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.31-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.4.31-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e3a3b5b581c278a43c888ad12282e4b69b37d605ce1eb709082192b60d15a27e
MD5 baf814fdc5c9d47c9a0722d503f86191
BLAKE2b-256 2588c4102cafa27a6fe69b737c3497482b503cb6a4e9d49fcec2850cd7fd8a44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.31-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7b507aba3b36ead2904b75aeae6f1b47020d20aad7f2f336ebb36dad2238209b
MD5 9c702824c2342d2a692e1e1f887de137
BLAKE2b-256 5f1123597b956244590776dce1d35ed0c24685eac584073b39cf4c61e8105539

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.31-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.31-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 235d58a4a22eab169ee49b5d84235ca680c3dfb427ed91caf80c504f9b516c7e
MD5 95d42fbfb4326c52692a615022343016
BLAKE2b-256 d66254e0a10fdea082ed161c96a232fc5d47bde8e4a552d2b9eb000dce275e51

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.31-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.31-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d72d329d481777c1e09c8b75aec52223994e1b01f0a1105dab446afcc12d6a1c
MD5 cd7dd8f9c1ca2c1792687e034398e7b5
BLAKE2b-256 94307b2fc7587feb084f777ed8f818d9f52c7d6635fcc922afaf1ee014069833

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.31-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.4.31-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bf73f0398531561e57db28f5322a982335b849a2510b10870201a888a536eb1f
MD5 1631943c378234695b3cb06425e4b963
BLAKE2b-256 2486b528fde4aea42af42686e7095277e85323397660c7c26828575df60aac34

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.31-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 adc458391fa349462e0d9f0b9af31d3142a2d47677d023b582bc38ccfb68c732
MD5 a54da5ce734031ae86ea8569d45a3f77
BLAKE2b-256 d4ac801c749158c36532de28645836ca2235f93b64565a29dc60915e6e06bfcc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.31-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.31-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 583f1ded9d77f8e8bb7cf7c9e76365665c6e09b19ea8ad21556fede4cdee49f3
MD5 0eec8f8fc70c3fcee50c7eb198b018a3
BLAKE2b-256 a5b00dd2695b5111b3286d2916dde3e80afbeac4051bfc7532eeacb15a7bc6cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.31-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.31-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5b16207dffa87d4dce6565856201f63f361ff6c2ce64c8ca177c7360f6f82225
MD5 782cec78feb7ba22b4feb2b172465a9b
BLAKE2b-256 c6f179e657d6baa4bd9e74c036e987375092df04517d5e90a140a78016c13e51

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.31-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.4.31-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7b760fab620bf2800ad19d97709d978d7f7a1bef56d5b3c232bcb1b9e953ec91
MD5 9838b3beddf5c017a663d4d344867772
BLAKE2b-256 8fc3144d72c7acb2e63ccba5b378285231a9125b8a677742bc7ef57cc3377ebf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.31-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e09f9ab064a051f2f472410ebbc10a569bc60f49e2db0c0509fca05cb6270c7e
MD5 7e763ca822fae6b565500dbf4434e705
BLAKE2b-256 cc4329b6297f87c433794f785a77fa5ef7a6ffee2f83c3d5a18a657dbcf00bfe

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