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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.29-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.29-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.29-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.29-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.29-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 53bb319f2a95ba8c1b52e8286eac1fe5cbb52386ed0c7b24cf5b6e790111ca33
MD5 34dba5781cfa6cd1ad1884cdad9a1f0b
BLAKE2b-256 a546b8b10f60f54035fd52bc2d134f90ea40b63974da8283097cea3c93077ccd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.29-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.29-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 83bbd1d19e24e9e915e5c4e5d193cc1fcaec47c445c02e1462ccb571d1d01af0
MD5 96b8a8a22b748f55abf6ba5784ee551a
BLAKE2b-256 eed1f3e64f32add33b94ee519dd95f74bfd9cb09e898f8cc034094e615a157f8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.29-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.29-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0919380245b1c3972d324b32dc7486e7d40f595169a2b0081768514d20aca2f9
MD5 e3574ce4f19a5d1ad74eb425aae058fa
BLAKE2b-256 3f2c26b68150690261a2c52b0e7115e4f1087cc20bbd222db70bfffac3e955d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.29-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 546cf13cfa87a0ec2d2777515f5170ce7f7b90c8966a6053f85090e22cea0006
MD5 dba0a31831246dae3b6da7a1c4ae51c9
BLAKE2b-256 f6c4abb8380fb7f0d5b35251e14f64b5159bcb727009c63263ec31efda8734bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.29-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.29-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 90c9c7565d672fcd2deefa64e711ca76c1b5e25a770ba5b0ec4962a3cb61312d
MD5 4b32a9f7f4946b96a4e2be6424b35fb9
BLAKE2b-256 e6b95b09cc971ad9f7ce65656f39e839b151fb7c101ec10b932cfcb16a83a452

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.29-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.29-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4dc542038ede3d19dc4b38742fe815dcfd8cf357d6b74ceaf287b87e6d7afcf9
MD5 4114b134803f8e595fdb15cee765ab52
BLAKE2b-256 d8554518484bb3605ee7d9a6128b6db5091f8769b18631e6aafaa8cab5319f86

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.29-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.29-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a481ad75b8ed1d66cddc242e244e2f0ec4f0c1926ea2b650d657c99becafd462
MD5 1cdd3116278fb3556cce90632e1888e7
BLAKE2b-256 952e3864e20bd865489c9c8ebc9c422ac4333f64e1f7b0dbe21b9bac14f7716e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.29-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 46e04b4e0edea6039ea8f0216a12493537c2a3f286b8d8cc7576d22d37a0c940
MD5 66ff65729f600107516dbde14b92d210
BLAKE2b-256 454d271e41adf7305439f6ed6fe9e3716d2928269099fd8426517bf043260ba4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.29-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.29-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 fcfd1f85c42b257c5bf4af6991bd50463d9bb07e68200d1ac6af06201073b644
MD5 07a0748a017931c213a30b6e21be2b58
BLAKE2b-256 453bdd66568abdf384e35bfaa7c4cf59bd9929df88bf914debd17fc024047df2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.29-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.29-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9cb0db41930b89b098fb51883e5fc0c7283627d60008f60d38b9e2e51910788d
MD5 6cabe88355e598e45c9d511e7ef7b36c
BLAKE2b-256 cc8963cf19d9d2c5634f82098c2453d5cc747088e3c86cf92eb9a05179f7a690

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.29-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.29-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0c1dc7ac062541f4a9a397943b93987b1bbcaedb172c33a9d1c2f8cd75b6c4ee
MD5 f8c2216ea3ce18d0d0525d145bd80e3e
BLAKE2b-256 88b6416df3394b99943be0ec29423b4f94919e88628461c1551d0e849afa745d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.29-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dab447b2a2375079cca8bf2d296b220cc9d2f695d49fb3d9af1b01799aa8cf66
MD5 9c226ac2a329f4077ae0158ab8d08150
BLAKE2b-256 4d74e22ad7b23c26cb17ae92e89355a5c7c29c8b69a01ad4a9be095305880b53

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.29-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.29-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 838996da65843bc55ddc243000a78f758bc4e04c6acd7cb24dec66cfdc65f910
MD5 2cbde69d2f9dd96809d622961932ef1a
BLAKE2b-256 5aee46ed48340b1d795b98a64f1696efb0031a2aaa9f248a71ab232227b4976b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.29-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.29-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c7ecacadce83291596f096ad4a671d69e09fdca50e29ae0035d78fb97a4c9d1b
MD5 0ef2fd3904fe255b5962ab54356ec046
BLAKE2b-256 0c6d5ea73a16e8e95263f0aaf9cc2dc290760f3cf352bd5d04b844430bf26294

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.29-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.29-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 898fd3fdb87a2dadc418aa6459c7988c858fda38bd747ee099eedcbe6f6a2ea5
MD5 781aa093ca6a7962eba3fc9951372828
BLAKE2b-256 463efa595dfc3607f4793e2127193adfef992ff9b84bd76ebdebb40ad797af37

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.29-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bf81629460d5d303927740b53b23fdbee1a54926575a260bfa0226feaf871477
MD5 8cf508a314a853e94e19e0e7244d5969
BLAKE2b-256 3b531c05fc5d4f0adf36848e5eca105a759b21b070bf81aa4b1dffa50ce12c87

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.29-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.29-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b823050a95fa3da109218fdcdaa6e5fedc6502dcf436049d7b490de58ce6d9b3
MD5 b0136d4c8218d565d0f22072bdc47787
BLAKE2b-256 7874384a4ceff00adc0f0799ed276bb63f2c407ecf1ee85e61e1864591090ae8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.29-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.29-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5a273aaf3c8ad7667aadec56ad547309491ebc3acc704d5664004dc83d51ff35
MD5 601fd4631cff6650d9cb0f2ff6c34039
BLAKE2b-256 cb4014af80879c25b469dbbd8380fda307409648f8bfb0ef080b10a1cf5e44f7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.29-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.29-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b9f59d22b26fcdbdbfb9aada8c236979fc702a2227a26d060d979a9de71e2d7a
MD5 2eb97ee87fc68b5dc54d39e1c8cb6ccd
BLAKE2b-256 634d3d368e093d956346fc8bf775f6edd78062994da830336274d7007804a6ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.29-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a838e911486acc124d11e099b0d33feec44c12a8e56c1b876bc26f7f764d74f6
MD5 3c40d73fa46103d34723b94d5eb6c201
BLAKE2b-256 92435d4bb99541a1266c3e1cf06ca57dfc1cdf66d6817739f1ff60e99a7441ca

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