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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.245-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.245-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.245-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.245-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c9f79eb1115cc2ea8f954efc38cd3005f232588c09f6f1695d674e1d65655e97
MD5 cfdeaedae54c72b2e881d537bfdd793d
BLAKE2b-256 64b4c8d30b4eb419431e26dcaf9384a88378c92f66faf665d4672f20d09c972f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.245-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.245-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f5f57bbfc7ec1974b835b610dbf4b3541a0c4e90ea78b0a7f9422399ecd24f6d
MD5 3456b5216c72d2bd7afa1564405a4566
BLAKE2b-256 e17cd21935b15bb74b3f20e091597264cfc2c28bc03be23512037936d29bd96a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.245-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.245-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 10033f9c6291b20f6d6d8ef1d06e7de9fe817c0feb1ff1a4ca31d8fa5eee816a
MD5 bcf07e6d3405b0e9c1af1d656d74a127
BLAKE2b-256 785c8e1e275dd066a0c708e280d99f0ecd95f8450319fd496dd29d4e022874b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.245-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e4c9b00371c99c9584d1a8075724b9a8d3b352a8916c74ed37a34a76daff306f
MD5 d10c2cbfeb828d0f245d9a08eba01ee9
BLAKE2b-256 67dcf3920013bb8c842c480a81e72052594a7722f83811da4115ee91dbc2496c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.245-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 781fd504db93ec969a31cbd0697292923e2bccff3373bb94c637d3480f6a448c
MD5 55210deb48f0be02c4851ecb8a9e39a2
BLAKE2b-256 38b3500d3ce799483cbbf0c2a52ec3f5a7ed5e4b6661601f372bfd860d436402

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.245-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.245-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 70f305f6695584ab3b580783a98f8116d2545a621c0a682e9f192af94096828b
MD5 569f12d9d7e1dd7903a29d68594484f9
BLAKE2b-256 fe923175f0cf1e6fef2c6f3d7a63a77bb44d6524fb297b732662a20d53c7d9ee

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.245-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.245-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 505f30928f99d412de82f246c314866f7c5e46268efa2b424e7b2d91aa1bfda3
MD5 115f344f932421679ddcda533d3bf50e
BLAKE2b-256 17e785350b604902bb462bea5b460f07257e761981965b775917e7d488f50231

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.245-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c423b701c8e00ac26c5a2aff2b9bdfa9c27bc126103e2c4bbf31100437017905
MD5 37990ffe62ec2073fa504f1127949f2c
BLAKE2b-256 b2cffcdc949ac28fd1b4701c62882c29cd8fc07cea2524142664ae52c960cc74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.245-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e979b08bb90b1e89a188b671814db9442f48975fc3df112912e570b71de88e24
MD5 723d82237cc025d37117a1ccefa6c651
BLAKE2b-256 c8827cd9a86cb2174636e62d273ce2e1ee54580cf20af59815e2e43d945581c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.245-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.245-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 01000520ccec2cecd2d028ca3dd576e8268459a3b6678d5cafd0bb0fe7affc9f
MD5 1f3a0412c52c661142674f19b87834e8
BLAKE2b-256 dd2c72168e3ae0dae4a37feeb583c5868e471f1736231ff2b22fc32b0aa9de45

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.245-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.245-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 10a7db89d760584c5baaed488c6157228038f4108e74ea21ccf649bbf7cfe872
MD5 0ab06ea7af8fca881ba2782b0580c2cd
BLAKE2b-256 016968abc566863f7ef9e936635b15cf7bf16ee9c21a2425fe2104952e3ea5a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.245-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0009fe5a23b02166c79fd85b4caccc69add18d416453fe5a3a973f85144434a7
MD5 0283abd24dec0946e1450c800eb79e72
BLAKE2b-256 8584b61b578cc30139c37eb9c7572aa6707a10d9ed095e9840a0887057522074

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.245-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.245-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 189b66be6d70826ff179f00001de99b8256c1dee9c7542e345a347a240bfdbf6
MD5 bcef745497fcf8ee878b3ddf4e034937
BLAKE2b-256 18f49e2d94d79c63f462744ad280920270decd1443a0c95a5de733f3872483e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.245-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.245-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a133187ee4c78ef8d9078463de5ce85be05d4cca37cffa3183adfaf42565fb77
MD5 0001cac317e0208e2c2e2f28c9348721
BLAKE2b-256 0b5b7344a74eaad5d10d41815f1d5898755c29d1a8801377322d6c3b2b23c1d4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.245-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.245-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6398be7174c212f9c2fc5801318d30a2a7fc78370c845e62e151729589a3c8f8
MD5 eb0c904860fc6e981a374f49e3dff02b
BLAKE2b-256 93d022f06f2245e19cb41419e6a18ea84ce310d65750f2b8696c6e4ea8088b07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.245-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c6418a0e1ae26536949211a7f744a763d4acb51d8c67932981411b4cb3daead8
MD5 b2bac8d9cb76c8c2ce7474a5a293ad15
BLAKE2b-256 9c9006216706b653b3fb0c56fef9b1586a2d22b4ca55ce59a80d22b2d33bb8a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.245-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.245-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 dfb9294d13c3997fe5f9ce4db94392b573795facd1e9f3b7cca9c4939857b45c
MD5 fe2b2b6119b8cba116fc0878ea7af895
BLAKE2b-256 0f408d5fb58b1c9848f5c09e9e2b323796c5a6a58bedb0e79ed75f596b95cd19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.245-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.245-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9785676a56c31ea61c0a8b9b4daf8ac3507426a5dd266df19f2b8b7e98c4d8f3
MD5 db92a37f8a1ba4d32ca8e5c69da3f1b6
BLAKE2b-256 cd08b2da593d707a17f3bbb5e6138bbb70acb78b24cddbfada79daf3a692044d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.245-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.245-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d195eeab60b76e4c3bfd247aee4e5c68b7cf1fddc8dfcc4b8ec5958ecb1014f7
MD5 61ae40361795cb6e43bcddaa7bf17220
BLAKE2b-256 b527c2082157a5360a2771ab5b8cdce22393aa4b4338e4eb3bcac112a658ffd9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.245-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f2f1c25dce08a5646fa41c61ed9fbf3f29200479c76c0dc691fbed6f532b0963
MD5 11eefa9e9538a9cd4f1ab1fde714f07a
BLAKE2b-256 da1d7709cd76c16875e9d3401410cfbce0bded70e11172e737771be8ef8dae0d

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