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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.843-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.843-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.843-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.843-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 576956eb9a8d1469dac9b8b02cc5babe59e9a7fc55c7d996082d80cffcf5d20f
MD5 a0adfbfab293cb5de2ef80b94a8009b2
BLAKE2b-256 b20785fe7b67c8f4da5a7b140128fec9b5abeaf0a4dbe0de2ab90921ff8dff39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.843-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.843-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2c7f1a1781caafaaa7f8ebb2f5de1e0b159448c5a5ed29cf71e53afb04efcc3f
MD5 b803b3f7ea66358eebfc003673c76da3
BLAKE2b-256 b18f3d6988e5e0bc36af582bfb49faee387934d233effa31c4e1445a818fba4b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.843-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.843-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6b23ea07d448072d2ee305acaa50a2a57e4b27eab38f273bfdb81ffb2910ee17
MD5 e1f381e3fa1f37c7b368aaa1798abf6b
BLAKE2b-256 564a3fdd4f1dcc130daae99c6d34ed24914991f3b1dffc38fac68cbad4702a82

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.843-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4e1bd34f56e80b237d65439ccde2e46c628dfbe883cb28942d89476a2de946c7
MD5 c0136a55befc6ffdb8259c72aa173abd
BLAKE2b-256 090cae108da0dcc86203a332a97ba6ec781a58b9846df40f7685178a129c4d28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.843-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 53d11e9e0e4dc42f49735c75f88b7da0c1c717da061459c8506026d44386025c
MD5 e1c62523932af52a4f4ff141ada3c0f3
BLAKE2b-256 4ad5913b9ee803e8677fa7440dfbc7be74c5b8b49d017537b7e2d125689faa09

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.843-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.843-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8f2c2840cff8b93a76ec0288a6edcb0019d667c3dd1b2b68e040a67f9e701658
MD5 603006ecbbf0b7979f9633edb145ebe4
BLAKE2b-256 3292d0f4458d5b29581df0dfbee488b27b4a692ff417b4d201a7b325383d5339

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.843-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.843-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b32a9c76f3300733161109f2805832cedecdcf2312407584f9968fa9fd6c9bc3
MD5 0d5b05e073262b923caac4318a09065b
BLAKE2b-256 43ec444ae8b2f5212005bac1582a83b1995ce50b4c0374ffb517455c329d94c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.843-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 367298de50254119cf29d6d5195b5d54b0d336c013be6bc215433de25a41fc88
MD5 3838e3a428b4791dfa251153f5bb20df
BLAKE2b-256 469a3c8fa76c3bd86b3be85f8b0e6c1688ed7dd986ceaa1407e7f27a1cf7b702

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.843-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6e1d9284dd4cf6f482d3e397f28b5cb1e460fa2348404b7088350bf686a61994
MD5 3912e7a4b909fb6b8c97b56dfb3d3342
BLAKE2b-256 fe059ca236d4c60beda654257928bd69cc8e2cf70bc7c94b3851b3a63e5b9d38

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.843-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.843-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ea7b8f9a70dcd49847603eefa841980410d614b6aec46daef2550c2a8c672b95
MD5 dea2b2a20a066171c4001b9fd8814540
BLAKE2b-256 7547bd00768373102ca21e0194f7da27ef9c609942a1b62687c013d1cda6083e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.843-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.843-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7300b820d4fd51c94ba0aa04f66da36622310ac853af7156e6e762010353ee55
MD5 390a3ac16779bd2ba7bac97c90b7d463
BLAKE2b-256 b5ad8f41a859281e38e6b23cfa16dbd08ba04ee97657f8cdafa0900f6e6972da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.843-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a9952e97f12fbedd4caecf743d5475285e5cb9a0a745d21578d77e7434d2ab1b
MD5 0279da74b71871f7f7389ac360c0e44e
BLAKE2b-256 d7468766ddcbde0252d3fe4786e898df29f9c3bd66b81753d7420d621f34ba6a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.843-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.843-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 01433dff5cd3e29a2d9aa4d38a09c10e73bd9edb2e51f403ea068439364d9640
MD5 8fde93d7492b29078bb293089753dbe5
BLAKE2b-256 d5e7ec39d455f758be15800f580d80d4c8b84d18c59fa5906aebbd737975b3e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.843-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.843-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d149cc2141897c3b3a1485b178f503e956c806a8493f63f3c956b9da69c85ad0
MD5 ed14d866c719cf0fc1af0650e920ca98
BLAKE2b-256 91572698c02ff9901067fed623b9b1e2c3ec89959817cd66a93a427105692176

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.843-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.843-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 37e788c5aa8a1fafd4538d713346bb642852003a113d95ef1170bf2d1d6c57bd
MD5 bc6334efcd572b714196e11804b35048
BLAKE2b-256 e933957d86c0b31eb71979f5567bcc8a400e2dbc022a6b9c0e8713bfb15c1e99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.843-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3c20c3acf5ab5baae3a8db23df98ae936909e28f7b740f5e5fc7b46e04cbbc73
MD5 41a89b969c9b60e73119640ba54fbc1f
BLAKE2b-256 a12d11d9395d366ee8f7ec1e55027edbd01b159751191fee4c1cf31444f181d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.843-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.843-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 25f7fc4feeb50ef636ca3c1446866ee6017802b243816ea23431b4ebd7362eef
MD5 9ba96af6a67491fa4c00f46194da24f2
BLAKE2b-256 8077f561f0fa4806de245ae139117cf05a8636daacdfd9a97d04d4b88762d2d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.843-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.843-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8789c1135443bf506c23a57d3dbe6dbf61e3e14fbb566bb0f42e343a5fa03646
MD5 af8cee2f0feea86de434f8a2b8d4a7bd
BLAKE2b-256 777d4bf11a3ac95173f1c05395b1d8c7d0eb6051de3baf0dd43055e51d312112

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.843-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.843-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3c03eab63ebc480a2f3564170fc8a8350a54e97b546d90df4b1dc772f0e941e6
MD5 0483675603c6eabf048f227c71bbbd70
BLAKE2b-256 89ef8e20eb7863dffb220d14f544c124e0d70934ab0b2e880d63be8783d38b8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.843-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2fc447c515667c367c9fddeaf2689b24f64b5e18a76384ca54f372c711f3b136
MD5 409f6c369b2b54cd7ef97855d36dcb16
BLAKE2b-256 c468651a00d137d6a7ba0d5f62970e75fa07f0d5bb1b366b7f2ff43721585d01

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