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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.852-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.852-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.852-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.852-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fc5a3639733aa8fff4ab11627e06ffa18a6b52c110b331127482d1571067a11e
MD5 e1663fcd5bd5b663350995df0ebf894e
BLAKE2b-256 00052393fcbde0637e605029b30533e50aed78135b4013b858795df4e8e37408

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.852-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.852-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ad95d53668ffe9f93388013c0a964ac21f461526811b62b52bff4c0c060646a0
MD5 60e80649e9f7b8286c8ec2ea3f0e70aa
BLAKE2b-256 fcda852e7dab9a9204fb1d3104e204e5b7b1cab41ec338fcdf263d0eca4c13c0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.852-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.852-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b15d175bb98d9cc3aa19b92460c502ed42d284781b51507a8302a66edd6f8656
MD5 e0d0a5c07c5ae679fa94515f53089a0e
BLAKE2b-256 d8716ad73e9ad469e21d4d3974e8f97becc4e6f1ffcbfb911db1b9cb8bfab1de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.852-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aea380f2df4f3c036f44903f12885bd39b2ba8e3d7fa75c4b56247ca3ff41e90
MD5 9a9e6309d69a6f82bfdab8e67e83ffa2
BLAKE2b-256 cdacb698a1113573a406d9d6e28bc6a7705d9a5fe9b8494e8cff4be4658f6d7c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.852-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f2c4bf3515392c58055b8d8c1f7a1384c328313f82596cdc189584d4125ac2a1
MD5 94c1b7136e6530dfe26b20d6db67baae
BLAKE2b-256 d4bd27a81bd9870efc7a6b2e2e830245af92fc23aa0ebc06bf67405f54c746f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.852-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.852-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 edf37044ccca4108ddb3cc4053566a737a6f4ce276a1b0ff37b6d5e0cfc427e0
MD5 a53afdcb59cb1c9940be4606c8c33b51
BLAKE2b-256 f298155c3f86a727aef13b3496931591356ddd42b3e7d7e48bc57cc3aba2a08e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.852-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.852-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f756700492878f929263ba7f530b96392f26390313691a77faaf6c2041131d1a
MD5 b5a86f570a835ec0930c63bfb74bc586
BLAKE2b-256 1c46f537b2caf52d805308d100351a1ee53910f2b75ca437d7e34f5abb637401

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.852-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 649ba62c018435c9debfdb5a894e5702129adf9e47315039038b1e6d5f2c4f3d
MD5 cd2c50afe121238f88e39e6550937cfc
BLAKE2b-256 9adb4c5a077fa91e6c03ac0f4881b484ab36ec255da0b035ea2c4573c102bc7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.852-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b216fb87f714e9d0507ec8249c6fee6f6fbd8c25b7c43e6d38004744924370b9
MD5 a03248d53b867bc7cc4147a9c433756b
BLAKE2b-256 916563e90ded22012c5c96a29753c70fa7b10cf9a9e393d88873b13b4172da91

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.852-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.852-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0fc8d0a5cd9eea34cd534e341fc92a2092821aefb495aa91fc89e1f3b687f655
MD5 9bcc477d960e5f394d9c8c624b94db6e
BLAKE2b-256 fec77aecee53ee87e3c648c0f342afe31633e80b9d65d9bcb2c5b6420c27e669

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.852-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.852-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ce663554220a05c78d356b8038a7510f541b0fd4807f7ecd197ba95c99e268df
MD5 dc73ec0fc2569dc5687d3c6a04098a93
BLAKE2b-256 4d708f82a4aa420fc5081928e40eb2f2d012c9478062a5780935ab945156623d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.852-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cd65673a584c58818a51b5de83182f08cf739f5fb9c38c576b2e00fdd6a3e20a
MD5 d941e23fbb4cccfcb728be9f25d01050
BLAKE2b-256 25366161ada5962ed3d18764ae7ffe817508af89103cb2cf43046c738b467e51

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.852-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.852-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1bd86d9d7dcded46e4b0d08103435adb49b334000067caf6ec591e8d1b398f75
MD5 82fd0220b8c212b1e1183ee2732cdf0d
BLAKE2b-256 f32900d0ca0094f36dbc45ea9fd3be1862a1d7044020960007a12e75230816c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.852-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.852-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1e59430dadd2efae84b81daac815db9fed81eeafd8852e83972aa1390ca0f65e
MD5 058cf849e35a39ad0d7ff5fc2f1133dc
BLAKE2b-256 960b7eb1d00c85b9ea7fe3bea92689a6f8401163e34dea05249ba7314c63f73c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.852-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.852-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b77ab2b219660a78907e60b90a8677bced9638a378311e475eef94e6547d3c85
MD5 dc95a3b63f56a737159db7386aea4d4d
BLAKE2b-256 b8061d087c36fcefa9ffcc6e734b5a6f9f4282de9b1805667eb6d7cfaefb140d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.852-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 60dd67037ee20092ce0991454669e816e58579521bb09ce56a5dae5bf5e30511
MD5 fb3d6e24dbaa78f64cce3d7304670485
BLAKE2b-256 2e22c8d76309cde7b878356fce52f4b7e5bf3255ad9c9d0e548dabb0b768e362

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.852-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.852-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 16ac6425d0043a94705869e15d376b83028e992d420aa0407b901ce92cd3f9c6
MD5 8038e2a96e96b27d1c6777c3989e56ce
BLAKE2b-256 9275ea0b257e9baa508a78d2d23964bc93fbae8fb0ecb0824b6f8d051a0056e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.852-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.852-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 442eef6a52912e140194ce615b039b85f50b3116c3ddd35160b6780b94b8d5e9
MD5 bfea7d39f8a3547d367672da46bc0905
BLAKE2b-256 fc88411b7c0b8b00a4d61fb1e091c92ee3167148925e9bf5fbcab1cfb9c0c10d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.852-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.852-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dada7085138d410311d5d88c28a5ec45bd923e20916f667d33f0d5c0d2eaeef3
MD5 43cd9b0510a94ac3f6b6f3e6be83e59d
BLAKE2b-256 e682ec36a7524561e0d0d14d5d08a8b60a55eb39c613c442a1cf18c81d5d8bbe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.852-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 880ce7c14faff40d54cb9f69a3a8f5f8c1f18ed63ec3650a6d5bfca2a643c8b7
MD5 1d41a10fbec3090de8af6e17daf5d263
BLAKE2b-256 b0575d5c7720b88e1b45ec70ee6c05edc54df0dcc09dc06c452b342da6dd3eeb

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