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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.5.9-cp312-cp312-win32.whl (119.6 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.5.9-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (373.1 kB view details)

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

simple_equ-1.5.9-cp312-cp312-macosx_11_0_arm64.whl (125.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.5.9-cp311-cp311-win_amd64.whl (123.3 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.5.9-cp311-cp311-win32.whl (121.0 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.5.9-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (333.6 kB view details)

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

simple_equ-1.5.9-cp311-cp311-macosx_11_0_arm64.whl (125.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.5.9-cp310-cp310-win_amd64.whl (123.2 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.5.9-cp310-cp310-win32.whl (121.3 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.5.9-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (322.9 kB view details)

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

simple_equ-1.5.9-cp310-cp310-macosx_11_0_arm64.whl (125.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.5.9-cp39-cp39-win_amd64.whl (123.4 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.5.9-cp39-cp39-win32.whl (121.4 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.5.9-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (321.2 kB view details)

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

simple_equ-1.5.9-cp39-cp39-macosx_11_0_arm64.whl (125.7 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.5.9-cp38-cp38-win_amd64.whl (123.8 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.5.9-cp38-cp38-win32.whl (121.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.5.9-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (304.5 kB view details)

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

simple_equ-1.5.9-cp38-cp38-macosx_11_0_arm64.whl (126.1 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: simple_equ-1.5.9-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 122.7 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.5.9-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 057be7794625b3146ffa9c3964b763ca9e35ba84714dc8a257456c08b5e30237
MD5 5661e955e96d92eb8c6e5c08ac2a7d57
BLAKE2b-256 9fbf924918b8a5016740231575c8fc8c69cc11b1b6b307af4e97ca7a9d41899c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.9-cp312-cp312-win32.whl
  • Upload date:
  • Size: 119.6 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.5.9-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 88e598d4be054ff54c2988074dd7f33c97c89bc4a1308832aae221c9351e51cc
MD5 6380422253bb6d91ec499b8dcce4203d
BLAKE2b-256 0a484fae128982cc8c7e746d4a4fcf9223d2dfb928a52947cdc2f932cfb6d749

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.9-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.5.9-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0f40676491366ccf93f259f909399424efb14c8da6e34481d5a3177e09f11cf5
MD5 b37e82c8ced4493f74d067eb8a642cea
BLAKE2b-256 2087decd43c216d9d1b267e2a39ebbf2f2350ea1d62bdec2e75952cc88a95911

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.9-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b50b7d83722330f0d08459b20e3ed8289b4c565b8502ce78209b450b1c5f0ba4
MD5 f186dfc57211235ae2acd6ba1e9130e5
BLAKE2b-256 5b76737da08b41524d944f348cb917db380cf10194f7c70ae9935ea41b2d1af2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.9-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 123.3 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.5.9-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0b1297f3dbd4cbee4d449baaea0b5211160a440049373976c562586f30a5981d
MD5 98d921e14ffbaceb78c91a56e298662f
BLAKE2b-256 2743d2911a2ec74e7dc960339fa4200d3f14253e5570170a878a64e563175856

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.9-cp311-cp311-win32.whl
  • Upload date:
  • Size: 121.0 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.5.9-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 446f060e973a34fca766ade54b7469888568ccd0244aadf034c2fa7b9c149a3d
MD5 18d7ac3f532ade6ddeb98b82d506ff30
BLAKE2b-256 1b567125f0c7b189deb479863ab78346741f125e67be35a2f95aa23b236d363f

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.9-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.5.9-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6d60d58e9d4a7cffcb9e94831e2d2fe8cdd54420d060188be7f9ce420d22a773
MD5 df3dec51a6280a098243e175b541e3ea
BLAKE2b-256 e083f21639805a7271b1e18b27b4e6b5c9b94fbb59f203eedce156477ce9651e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.9-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7b73c37cbc3c4e8c36b7ab0bc9864bcecb760ca5daa791524a285b84aee16a19
MD5 d3a388b4bd588c9997ae79008ff3752f
BLAKE2b-256 41b9ea8824ebaa58a04f24fd5c03c7a9a49c70277eceb7f557c0ce16d062d99e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.9-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 123.2 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.5.9-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a1c86e0dd8a1d74bf49a3633beb50b27b1e3d04e05c0b5087d5853e9c9987398
MD5 a8ceb35739c57c2e9ac1753e9e36d24a
BLAKE2b-256 2c339ad3e3f855ca51750bcf7510358fa9506398df4af5f67b80a2e1dafa66eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.9-cp310-cp310-win32.whl
  • Upload date:
  • Size: 121.3 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.5.9-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a9f91188f564c8d6cc25be0ec189775a8bb7d71d808782d4f80eeb7a4d1f6eea
MD5 940096cf8c6bc624e1496f3de6b41c1e
BLAKE2b-256 1d8bb6719c250ad1a887a3526a0df10bfc96385f0759ecc04be487c099a3cb89

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.9-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.5.9-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 df879c133831fbf1791ece96b925217d3b7f4695ff38cf544a17a584feb86977
MD5 59eeccf11f229b563ea1b309032ec5ed
BLAKE2b-256 6739108f8a03d1b626968f57f8f770640b273e37aaad51cffa498a3a2d1db7ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.9-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e203fbb48fa17504c28e310e816db745883c2bc5d01773a0c14ce221147b91ef
MD5 5ce88263c21c7044fd34bb7df86a2a93
BLAKE2b-256 d768a05af2cf054f60cfe79b18948b7d4972f4e2f39644fdee5e45bdfcb4e2bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.9-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 123.4 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.5.9-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 018d03a66a4debfa240cbb9e7ec3fb18178722299a6a1a3978a98837fc07620f
MD5 18fc396f053527f45f7d3559053bbabc
BLAKE2b-256 a4726fb1bb3936a1a7c7719278c7be1541f619d387cbda9adfd09ce673d8217b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.9-cp39-cp39-win32.whl
  • Upload date:
  • Size: 121.4 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.5.9-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 837bde29e382135fe326f99e86f7b9b746d18529c2dfb7b80f5773dc38e3d6fe
MD5 aae592374be2ccc40aece9fe74c853a0
BLAKE2b-256 887e5ce3cc161240fb02e406156466050d322073304348f623d094ec93e7aa09

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.9-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.5.9-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9035fa51802ac103a3eeb0fd2be83949c1ff3b1be46e8e4f7138b8d58d6726b4
MD5 32be1df8c407c96a1890d81c30d3093d
BLAKE2b-256 8b45977b7fb7773333ad4390979246e9dc5d4e1aea101631cb3ef659372579b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.9-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 712bd618ccd0f41a190045598a1bc29a45f5e69f238178ac8171c8736e1c63f9
MD5 d057c2340a2f9c2aa742214fdabd6b3a
BLAKE2b-256 40fe9b0b9b01bf602bbf7e4c8992d1bbb604bd0efd178aea146a0ad37ef3dcb8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.9-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 123.8 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.5.9-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 42164ce07f53811be73ac4e56b681ed23420ff972b420f14d095a9c76c5722da
MD5 bd2046c220aa25654b427f79f03786c7
BLAKE2b-256 ba63ab6cfbafb1a844a0362fcab892b858e2d86d60df9ea25b23002deb763dbf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.9-cp38-cp38-win32.whl
  • Upload date:
  • Size: 121.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.5.9-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 70b26336d4acf3c8f5da6e62ae435773509a1f9e168a6f78270d14eeae874010
MD5 b85b8ef1c0265cfd42f69227242d1965
BLAKE2b-256 7351ec41f018db9dafd28d97a94dbf789d42f6415699c7e8503402bedd438630

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.9-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.5.9-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4e54c0da41bf85621b7881865c5483354d671fe096cf290b195bf90348690ecc
MD5 5d1786380c1ccee86291ee6ae142aea4
BLAKE2b-256 62ee307fe9d969914cec9f2b0c84b69ff16d690e2d2a75af1a8503ae0a9e1bc2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.9-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dd81e887ef569b4fc081080ad5677a70f02727533902d73b6aa3a7c1c149be32
MD5 27a09af403680812df795d7b566b13d8
BLAKE2b-256 1e02f9d1d3404f8c13ce66c8474b477e04107a74db71c8f82c76d0c51b3e69bc

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