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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.876-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.876-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.876-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.876-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 541ec404447a873a923ace0750c387391cf1fae6945a5e8b197f8cce5985b732
MD5 9586a2182d5b2302dc61ded817290dd0
BLAKE2b-256 34544a614b0922c10af66372dba58a076a02720b1254dc87bdd2a40d7762bdb4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.876-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.876-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a64e23ee6a4f725847e272f30b535239eb337ce6e3dab2236029e3dd5b147e68
MD5 3fb4a718eb426cd7d16b018c6e444e61
BLAKE2b-256 c3807f37413cd7a2d463744313d8430949868fc43af7f07401d6f3c597d28511

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.876-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.876-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e07b5e4238f0714cb3c38a94e86db4b10ae90ccf669bc6fd1cfdc54a9bdfa30d
MD5 4789f534b6d9a12c04c4e02c43543918
BLAKE2b-256 e659b723fad73be04e547e527d58a24ee084528e3bd38b488ec5bd74a6dec9f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.876-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5ae47b33f492f8cc04d369abe2a8712dd554b6a921933f94953ebfd87431a230
MD5 55e06f6d4f1d38af2dacb45ca445c69c
BLAKE2b-256 990a5865f87ffd576addbb095e913ae058e535a53f7c0313be83517c33c8813a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.876-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 143820dd967a46b3d881ff794d8e18bf2dee9aa68c627fa71b99578c81bf724b
MD5 0be48f6f431d95392d4d5be2709a9cca
BLAKE2b-256 3cc3c210bc34e7ec5ae5c6beb2cfcaaa199645e6fcf1c8e3c4ffb9256957b1b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.876-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.876-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 220e14cce8bea1704926ede00d18286d9f0cec852aaf4008e57eb0ef916ed3df
MD5 1b117f5dfa6b56d5fe0f844e3753fff8
BLAKE2b-256 5f88ba8018a78896665c69e0f88a89ab344f1865784d38f8c7ef057058d57dba

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.876-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.876-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 14f4f102b79614193d91e90db282036889ca74e817fe24839a493616bc8db936
MD5 a83e599cc2ee54de50cdbd2173aa0a2d
BLAKE2b-256 6d9cba793b385475087508b2191bef2cd92da2f769109ba9b586efd1d87c711e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.876-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 16840893d9f71b3be8506d5f1f7960c4b74244c44fdd3e1e844ece47fcf23532
MD5 477aceec2e7e1d00488fbbacdb1e320a
BLAKE2b-256 17371da1050742d8de9b12a15b8143314fd5ec3d33341bab96c3e5f114c21a8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.876-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 00a60c31d80a89f41a3ef7f13532a24d2cf1dbf0c1a82b7b13016d1f2f63f2ca
MD5 b2dd8eed0eef669fe5b3092793c766d7
BLAKE2b-256 370f24043a7824f1192b8b9748abfe7e3c2ba77768ea3d71c7f2de2817b26a2a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.876-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.876-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2c422f2ca8611586b2497e9da7fe0be259a086e8b6405ef61a49d62c8f11a265
MD5 3773cd3923c0a0193ecd0cd606735840
BLAKE2b-256 11e73d75bfb3e8868c333d097de975fdd32af8cce56b30f3b01d8e4efefa74e9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.876-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.876-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d00fee971c7be72d3c4f3498e426d2678999f215ad21471c8db5f7e675840fd0
MD5 eeb2c49437cde0bef9e5b301bbc9d874
BLAKE2b-256 0c92c11dcd58e445bc19750c8b7d46fd6c3bd9d5183c0b26b8bdbc0787a9db0f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.876-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 50aad529021adbaec4db60f4c891beadbc55ffa083474c365249366f4c075378
MD5 570db073fddff5cccdb424e75a97df7c
BLAKE2b-256 a977c38e77e9f3fccb5a7de0aaf21832eedc34f491e4804b5038e2fc34193495

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.876-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.876-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cb720a0fb84299bde17013c4e44ba44a69bfd99fc9c4841d9ccc9c382eb96678
MD5 952958b418340a6f5e710e22e6bccd31
BLAKE2b-256 394d341685b19feca8c8d770e75652aa406355657880172411ebc497e32081b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.876-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.876-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 dba0a70b88f29f9d5428dfaccecf5bbcb51b850a4f81b96d8d662145b1407459
MD5 d21de9c87b6f1f40ea48c6bcdb581dd5
BLAKE2b-256 e4022ec40f8d5734f05c3dfc1580414a75c6d7f7276429f7b5e35fee6efa360f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.876-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.876-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8dfe3423f4412543270f7058d6182038a56e4b79f61065528511cdaf81e5aec3
MD5 57427424ddcc48fc2d5bb9d6cd2b59b7
BLAKE2b-256 b6e462ebca9030ce19107cbc0530c94ca0983e64278b156e61fafaf64c697359

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.876-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e7e2a24359cb38cf8e7071690745e3a1614548bc7acbab65f1a01f9b5fa78ffc
MD5 6ea645d9d82c486ef9a04da5b41034e9
BLAKE2b-256 e518c1263bc540fd4af375e6310255e18fa99a5b8f369a4331876d846135e77b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.876-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.876-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 87c7a8b90cc65c699a3c0e9df083a9828ac834af4201a6c6570c56f80c65dcf6
MD5 dd78839710c8579469d15efb7dff2b25
BLAKE2b-256 b5c1ec2330e6790a1a57a2e73d3e1ef965a554c2d97ad9f3dcef660dad665b54

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.876-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.876-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 84766d167ec8b077830c6a047c0be80ef9311c80dafbf923bb55691430956489
MD5 2defb6b2d92c3372be92e8024c7210a6
BLAKE2b-256 b952465eead69544f9968b63ac4ee67b295db23f0a20a423ea090fa2e4766ef3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.876-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.876-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b82699509ce541d81269d9885589b68256f10a8647648bafaad9b4218d77f506
MD5 ced129bda331a64e363280f4c19c4797
BLAKE2b-256 0d15bb4a326defff51be503c3212dcdceb7daccddfcdd8213568edd4eb073a1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.876-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6c4a2abd03bd5910f2daf9b7c2f8d064e138e7e461ca77e0229efd0a70bae3cf
MD5 cbcc0452fec9da6a61439439c366d4ee
BLAKE2b-256 51e5e2c8225d5d9f6204ad6e424adeac7349c046491887b7caad2361c59b642d

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