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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.96-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.96-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.96-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.96-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.96-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.96-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 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.96-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 def7944d8487634301066fdb2e2ff49a501690c0d3ed04402920ed2923abc53c
MD5 6d43d239974b122a5b0c393a25629a52
BLAKE2b-256 cf8b360f14c029c50c341b4046cb5f0410c1879cccd81efc94169e8546b0cbab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.96-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.96-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 abcf4b9852c8f510f5949e52050c40f82a7e428265013023f55e41ce97fdd067
MD5 392ab3323fe3b2fcb865552537d311e0
BLAKE2b-256 007dbc024e0fae4c564c53af37bd005006d55c6e0ef7b4095f2101c1ef1f2308

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.96-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.96-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bb08449b93cf4333e179b86e824355cb0e39f36cd6ed8613b77884f145092e1c
MD5 e3caee42e98febc44fcb15e21eda6b2f
BLAKE2b-256 7fb6e2a0e22317d259b76178eeb600cea5826d7d0f8ae78a0ccc277e3a784938

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.96-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c14d0ee07ad5d7ca440e3837cfb0b80f4f1a535d94cc4cea86005804a4971f35
MD5 41bca70f5eef2c4933d102ee10eb324d
BLAKE2b-256 b5d7b587744085dc283062e4515e1e7edaddcf87bb60ad587030680818071121

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.96-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 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.96-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5936ed07ee6d66f80206333bb59f29fd9ff3ca6d674a090b08311c53c50c1b21
MD5 cfa53aa4c2e0a2b882eac9f9a7eb048f
BLAKE2b-256 c182a34b85d965a7b99021a0cc26645d3d0f06991e0d11cb9a922903469c306d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.96-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.96-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 16743956a654363deebb9762399474f63c87a1561e95c5abff32fb4e6eed7338
MD5 50c8290e3e093c894c7357c1e9520c58
BLAKE2b-256 5f16f9b40b43ada01e4648d41bb1e81b79c1f8bb88d3ff1067476c596fb2a008

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.96-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.96-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3f00bd442f4c120bfbc6fd723b6e7b1d7c42ff1ca4223ac09a749801231bd175
MD5 7f7fe79ddc0c5696a5344634c29afb83
BLAKE2b-256 3e9ca05d713f6c82842b7bb42b8a9f54fe45a598949591a281a687635f47084e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.96-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a9556b9cc0e640916f420ecc6f7864eb5b24dd78ad47b63e4c3cd9f39aa2bc60
MD5 1fc44af461053110391f44233adace36
BLAKE2b-256 022c02944d7e4fba8b62004b89431ca62a78361f470cf55468d2a3193b663876

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.96-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.96-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 fc32872f4ee732c1149b27715eb2f882a2f2690b2bf0e4954469151fa73d6c1a
MD5 354152b4a1830c8141a15be0d523db33
BLAKE2b-256 6443c31b5fddfc59dfc9be540934b4c0cfa42918131c8b9516f31a4c17938967

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.96-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.96-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 bc5f0c7c44d08b5e91f663b46783b53ab810f2fac03cb4e2dcf2ab1e0545d622
MD5 25befb6d0069288de2e2bb7addd62868
BLAKE2b-256 885bab2d85645637fc25b8fe608e0c66452e3b4c6263e4ba320bd736bb025260

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.96-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.96-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a1ed015f299ae354c324d8ed5352396d78b6de9d1864a6a7d35522c8f95f60ae
MD5 e3be177c336c140946f4ea5de0719baa
BLAKE2b-256 db131d062888dc7cd49566e261abe292bb282981d8f79dc65e891aa9049c299a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.96-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9b188c169b37e772ac53f0cd84653b635f0e024380f9666b13b0fd66963371b6
MD5 a840d8b9ce0968753715ccea054025af
BLAKE2b-256 44f4117afa48d5a1f76de8dd095f61e1dfb5fe2c014debe7b33988af12083df2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.96-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.96-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7568cc4643d7bc371554bee27b6d1e45a74292c30f05ada4e92d015ae00e6b93
MD5 279fe77ca5435283ca9eada134546fae
BLAKE2b-256 b34ff03c2c63fd5bc58cd008305561ddc202721b2da7b6b073f396dddc554271

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.96-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.96-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1fd16e6e3efffb2986f7c8d882f4e6873febd1cf7890eafaa4daa5b3183bc4c0
MD5 0466f93deeee9a50b54237f607286bcc
BLAKE2b-256 8bced5c83eff9e2f3ecf35b65cc1611d8cf16f55730621a40809fda1bd7be5fa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.96-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.96-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 23e30bf42925cb9a5506b448c0cf3314879a54b12e6611b8507363255fcd2f71
MD5 74d48d4174159a0ad929d90e34f9cbf4
BLAKE2b-256 fad01338b935e8259dd256d66631a01ba415ec697f0b84bfa8198ae766029b40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.96-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5a13a169bac5e5f27a7d386812b26f2a7e36949cae99454cde91c7110f5eb3fe
MD5 873e193bb2331c0bb91255215fe4fb43
BLAKE2b-256 1f29ff95e6f3b06d56a358317220b5bafe19df55aa16147958d32e3efad372b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.96-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.96-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7825156052cdf95d2ef23f0f8221192e361c9e5e70f1c58c13436c5ce3d600bc
MD5 3aa1c5c48f7ac4b428accc94e824f017
BLAKE2b-256 94e0b1c77241981014c63afa57d1138398fdfb974fdd61bdce7879444cd63840

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.96-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.96-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 10e672d951bb10b3fd48ac9619a1dc75da29f3c81fc8f9310650eec161befdc7
MD5 e34007079297920bb3340ca468193ddb
BLAKE2b-256 fa2f216e9e4233d76a396df5d4114978f3737d6ed0367984fa938e7dd27115f3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.96-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.96-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 72cf939b85f77209b74cb4802197b108934cda788efc776edba0c415277c7166
MD5 5920cd89d55206abdd11bdc76dd278cc
BLAKE2b-256 4f57933079d61a6b42c34d8c0ce351798bcac288887392cea7b5a96c7cae4b76

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.96-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1999e9a95540accff8cbcea7f5b32c252a1e7c13ed06ea912ebf6c23d64911bc
MD5 a56ce3e9b36bc45901788249b752414d
BLAKE2b-256 7cd38b12570d7f800ed707c3cfbcd76ad124e247c619c176c402c5c4e4642ee5

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