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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.281-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.281-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.281-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.281-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e51b1fcc7bf2ad38da675bc47ecd4203e5a14210c83ad05bc4986ed985815c67
MD5 0ed91fcd39447571ec94129de27f94a7
BLAKE2b-256 156e5787c53c550f0232b1e782803312060d2d9a9e8967ee0501139a7ba872ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.281-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.281-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5300aec2c6e9e1c2c264dd18e19f7c257e2ec1e3c658a9faaf763d21c8859f64
MD5 fc4f0616569b5eec9f25bd98ed805141
BLAKE2b-256 150bd82ef8b4848bc15b54edfbf9798d2f1750f0a5f1b135540326da95aa989b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.281-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.281-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 da137aab4bdd0ed33e4399f5c6626afe117131f84be5dc04411f686c2085fc58
MD5 b16dc28e4655c47102c7bfabd79c903d
BLAKE2b-256 c9151c7d2a6b0cb39c28f02dd615e7178649dd38ebd8ec69e2caf2a35d53b023

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.281-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 023d73bea3ed4bd12c1aa7be82bfea85a222f2fa7376fa956b778bd4bb908ef5
MD5 4e92979c6a28aac771fca7e24caa6bfd
BLAKE2b-256 508da5f34b46bf60b56cb60db312eca9e968a13db71a0e38d0c631ddae796653

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.281-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 05b42fe9818d24b4efd5b93b53af8959bc99c7acd3296074d47ca49fcc134e5c
MD5 adcd1b0bd614dcee52a954de5c178d57
BLAKE2b-256 ac02b8d71a0e38d0effc8c381390091c2e9ec6eafb897a8a9672724c12e75125

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.281-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.281-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 413ebbbbe8f9f0886856ad7f5dfa0b3aec1dc4ede1a2176150347ca311963bae
MD5 e8db3fdec4ca37eb740c9588aeb63125
BLAKE2b-256 c3169a60efc44ac88fa0af225336da70c8158c18c458f11f7ef106437287341c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.281-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.281-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0e748421aeba082c94f45cc6d1c514d5b00eb7ec4ed5c8c79ca6616120c87509
MD5 795e911125c320a36b3eb6bf1c430d6f
BLAKE2b-256 5347e1e0efe4bb04febbe59e6641c4f6c29e017e41424e7ba536585b0638e135

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.281-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dbbecc4ffee357893e0e31930d8443de49d47ad69e04e0ce8fee50aa0276e947
MD5 96209960118bc4cb1a036b02cf0ec644
BLAKE2b-256 5e40e80126208fe09ea78836c45e6626d1955dddb04796c2a221bcdb16355142

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.281-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 fbe9fd3bb35365140d4375dbc114e62622c2cd173727d1a30c7658412dbb952a
MD5 595b9b62f72880002800f156b4a67e27
BLAKE2b-256 a77271575ecdf352d1f809f5ff80b263c48c81e074e245932774053c66c11d99

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.281-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.281-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8996ccb4792fc59e79390c7abe6164b0cf3fbc356f73c2a34c6ac249430dfaf4
MD5 14e283221e000129cdb77ddb6514f8db
BLAKE2b-256 f328e8c8e5a91a41fa5b0603a4100ea1e2e59002f5e145d771e3956d74ccef27

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.281-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.281-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 37ecb79add06206e5badea54167ba4ebe8c0f6014edc95d79bfb292ef4de3655
MD5 02963367a55fc2b9c5b55dc7eefdb13a
BLAKE2b-256 73aa3a2c3e091ab0e655a0187895d29bbf9d6d6944c0b7965e91d9e714a54f4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.281-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 790f09a3c059a9553dbec92f702dbc8c885a6fa0c05337e077a22f56d59b0cf6
MD5 8e74a4a073cac36232ff0ee2cb201263
BLAKE2b-256 eceb1c54708dab6d9bb21644daaac84a0c3480a31e6446c0f9868da9f4bcc110

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.281-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.281-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 905360ebea41e7b4d56786ed8b5c8987511cf330a8a5b90cdd96a6196ad89b96
MD5 06701bc62ff9f05a307859d89a69eddc
BLAKE2b-256 39a56b9db98fb20975d9f00e755c2cff06e73770fa3017e68c6cd55821650b76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.281-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.281-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 14c0a84a29b54e40df34b9f7181da620aae973c8e7278e66680c178271199f0e
MD5 f0aefc0ed29d297b13327f1d68992afc
BLAKE2b-256 1be031b359c78c8c6a185e00cf3aa84b48033a6f8e58477bddbc5e384aeb08a6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.281-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.281-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fff816f3912c06fcbf2d273f5ab18803412ff255900ccebc10b2a49470b1d4e4
MD5 93d79cf360e5bee17f090779e6e01407
BLAKE2b-256 212e148471e895b9a07f5eb8c82b9d1f6edb9bba77ea9bc4b4ea950f6e529403

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.281-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1f87ee03e361ba72c7d78c6de2d7f2fd64f870d910b04664345f88c21f550d10
MD5 d3c26256546b38af7b8b7c807c5123ab
BLAKE2b-256 6a152ad324b88e1c9f3ec48f251e5ed1c515356c42e58fec79e730bddad34025

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.281-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.281-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4b779a2c84e4baa65c964c4f1984b326819e9a5b7f97147a511fedcd8475a038
MD5 74c48b850c1b71782996614e21cbb524
BLAKE2b-256 59fcc4c3669af5d880143ed5238af647139b365a3965639ea1a87134460a5ab0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.281-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.281-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5dde5ea9a93dc2e9d731976698982707be8096bdd8645d3b19afbfd4ea2a62d2
MD5 373a76b0dc30bdff8c48fa6705424305
BLAKE2b-256 f1443f117ab243619103ca908899bb61d914d356b1d107c24df703a3dcccac6d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.281-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.281-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0b6560e6829554f1d634849cacade1df8fb62e4f85709b01bada89b199cba257
MD5 71c95ef0714b8b37aee2d0825ce8f6e4
BLAKE2b-256 a3b00ed38ccd68740156ccfe2f3cdce012717cb9ace4722e77623e7c4faaef34

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.281-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1a325f5a68a8fef0a64efc0178b3cdc82151d4dd6992a1f76db657f5547aa8b2
MD5 f6c37f5a0a1bf1ece6c1fc33b9983770
BLAKE2b-256 4b1f88a6b9afcbcf9ec659cebc7d7d9e051d5f61a38ff43d74943fab003429b9

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