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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.601-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.601-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.601-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.601-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 26b1ca9049aa52e28c03847411d3f2131218340abdfbbd427a0d6f672361fde2
MD5 20ec01254e61d13b3edf3f7dafd7a015
BLAKE2b-256 4fd977f23d4d714a945823b69a39050b079cd7a4615ae558c897f71d728e3f10

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.601-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.601-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 04fb004cbf5081071a836b2f985812549957d6585097c913a6891b06cb98bd5d
MD5 bcd336330e35cbf010ea20a974c30a9e
BLAKE2b-256 dda0543cda0093d2bd55b99f1b230d4e07129e5701be9f52675205ddce2144d5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.601-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.601-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2da2412ca87d7db28c13d9b846d4f30a83a80b0725f9b78aa076297b3fa7ea98
MD5 9f8eaaf99fa60c0aff7bc222ab18fe4d
BLAKE2b-256 e58ca34d07e45f7f65e15ccce2a4470eb7d4daf1e2e784e4e44846c8ba402cb9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.601-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eac8f76304205a1a711928dae2ce079dbf4619a213356d656f7b063c4f3eadd9
MD5 612d3f95f6552a9daeed7811dbc0a5c2
BLAKE2b-256 4b44b1400271c37798a637f85d0e5cdce88b0fc6f12555d5d45cf7893f7c3d9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.601-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3b15b493fb41a0e11aae8b1f948dbc3a9d672f286670150ba94aa962d7936a50
MD5 032497813df02810daf1e5abe2946c0d
BLAKE2b-256 c8e3f87377fcff3c56958f446d1ac377eb84bec361f1c915ecbe29809d9e937e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.601-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.601-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 dcead83f483cbd718b7f745d867b7762bfa15bf848da2c1408b4eebb1653a516
MD5 0554b7668b0691c67b4d0807c2fbb08a
BLAKE2b-256 15e409720ff98d22a4781950fb740538c2520f34821c3f27e746f717cfabf981

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.601-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.601-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 72db30f81190da2c625454da0a5c05a19a85855fa10444a10cc8bab8d0874aa1
MD5 411caa309d0c825b773f71b4f16d3972
BLAKE2b-256 0554b9b52818ae5a3932e445a6ff085d426860a200bce4e5906099fd7e3b82a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.601-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6ccb8cae0c850bc657188fea587a67ccc668ab71ca6a593233ecb63350b977ee
MD5 a5b02a22925147b9e4d452f3b29c2ae5
BLAKE2b-256 773f4e30a410785f743c61ceb6eb578c9470dca31c58e2d7151cc9cb28bd04d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.601-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 04bf332236dedfca427f1115d1f12936c0679c81261592306c0c6c575a377f69
MD5 9d6944501b87b080274e475b81229957
BLAKE2b-256 5897a87ab580941884b18aeaf004cfb50ffd4591c4c0dde1c9ba2c48bbc79fa8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.601-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.601-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6dd8897751933325ca936dd95c95d3b6f5baa20484ab3d3800e9f128a9579924
MD5 9f5407a484f3429bd3c486e3926c6d79
BLAKE2b-256 5cc466d639feb867dfb5bafca00b92f7487285264089a3b9a7cc7ad000d78cf0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.601-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.601-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4dbf3aac015d71bef349263dadc5203b8fdcc87d3f924fe401ec7b9477f39037
MD5 6528cfd469ffcb502cd39e3db1169155
BLAKE2b-256 8f2ccb2286495264d9f403249e8c4dc56f73fb05d0aad179bbce4e38fcdf9120

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.601-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aa037c51fbacd56033a6d45c4193102c810a2bf3964546aa1351b09820378a98
MD5 28162bb228ed14606b415237ef68531b
BLAKE2b-256 9cd8f76b44f05da919cf5978b03329a1de6856760f9ef8d38969b0ddde70de6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.601-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.601-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a41c35f30c0776fdd12385ea497a4fcf0bb3711a42925f8f85da4cfd0ef84472
MD5 67ec2aca3ba2be2b4e51375997fa4a12
BLAKE2b-256 5794156bd5f74f17885d9ebbdfa5358b5ce9b7247f0783bde9b72fcfaf7d5956

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.601-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.601-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ae35bf2ba7def4de77ed34e78434ad734508a9f269a3689e79de27395d9ce59d
MD5 e2a2aa8518bc5e01ea5915f7d472235e
BLAKE2b-256 937ef2f169856a2bf056df6056293ffe39d83f31d14ed554c8af230a96cf9f64

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.601-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.601-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e10dcaa56125281a95973080ddf93a05deccdf2ea614f49b275f61bc37b1742c
MD5 bd3fc9d7a9a8d9f2d98d92b7ae56d221
BLAKE2b-256 23111ec41939ee666d30da043196d855a6c5ce0a6f70240fc2a71bebb98b650e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.601-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3fd55ca2a8628c802eebf923a52b785e7b25c44c022aa7880f9792fb65e7882c
MD5 71a9b909bbbe4bb32469753a075fc84f
BLAKE2b-256 8986d4a6226bb2ebe63eeee6af802bfb2dac50e55a0d70547893884366db1d3d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.601-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.601-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 285a1a672f529864ca3441499fe7dbee4a750fcd4feccfdacdb70b2001bb4880
MD5 bb83a1a7908b623dc3064a5dda876241
BLAKE2b-256 d26c314e28bdd492792ed0c1e878fe2942ab85c7a389d26440076d0f5ae1ab14

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.601-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.601-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5722a410515cce7c89147672bd30c706de9ed4b26dc636bc6daefb8f82ab6c0c
MD5 8d90740c2bf5083c81f6a9c780c83bc3
BLAKE2b-256 395f4d875c93181d058a2e94a254cfdbbdc9d226a35978382f7ceb55dab57893

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.601-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.601-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5a14b2291f2cbf00e811d9fb4a662ad6a194927692cbb06852b4b6f431cee8a8
MD5 66ef725776c03c036f20f9593545ba44
BLAKE2b-256 4fa25c1629b6d55a19357f6a012570fe83e2732c30e5a7fdec308c8948f0e696

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.601-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ca50b80d1b4bb4433e6cf7455cd5e044627a6b2822de57c59a982785dc147bc3
MD5 04ae20ceec85eee52d046224ac37024c
BLAKE2b-256 ca70821de234842e18a0275d01deaf64b1468c95d3ba07cd0eb8f574c836fbe6

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