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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.2.17-cp312-cp312-win32.whl (109.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.2.17-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (312.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.17-cp312-cp312-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.2.17-cp311-cp311-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.2.17-cp311-cp311-win32.whl (110.4 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.2.17-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (277.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.17-cp311-cp311-macosx_11_0_arm64.whl (114.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.2.17-cp310-cp310-win_amd64.whl (112.4 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.2.17-cp310-cp310-win32.whl (110.7 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.2.17-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (269.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.17-cp310-cp310-macosx_11_0_arm64.whl (114.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.2.17-cp39-cp39-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.2.17-cp39-cp39-win32.whl (110.8 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.2.17-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (267.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.17-cp39-cp39-macosx_11_0_arm64.whl (114.2 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.2.17-cp38-cp38-win_amd64.whl (113.0 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.2.17-cp38-cp38-win32.whl (111.3 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.2.17-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (258.1 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.17-cp38-cp38-macosx_11_0_arm64.whl (114.7 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.2.17-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.2.17-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 112.4 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.2.17-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 08f958a91f10c714d3d32b7257e1fc2d2e73173edbcd3597c535afe0afdb527a
MD5 338e74c17dcb084dc8f19fa95f118234
BLAKE2b-256 691fbc9f0f4774416b0e1f80c3ec51869af74e74b5c23a77d5c2c05ee6acc112

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.17-cp312-cp312-win32.whl
  • Upload date:
  • Size: 109.7 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.2.17-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6ec315738d5d91b3735da6f436b000cf865cb6fc26ec24c53f70eeeb32ebbbad
MD5 30ddd6ebb16745d464ec1c92a6df2092
BLAKE2b-256 eb2050257d1075c8db95101cf36455b22ef0c5f99a58357030f55225b1623d2d

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.17-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.2.17-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fc027a539a053dde5aa8f7a57cade53e5d2ce512ebd3e5e8ffba8ddfbe5f304e
MD5 399f2bb1e38528cbfd7799c134348600
BLAKE2b-256 247b491b67eb7e338d429b9e77659dfb0c679389baa1358426ce3874d77b57a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.17-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 05068f3618d1074da06cc9293833f99e9c983b8c8c3407fbdf892fd6a166fea1
MD5 887dd9a4e1e5925f2a431f4b23803372
BLAKE2b-256 b8b4ea712aaf4395205314d66bb5ebf715df969cb8e46e92a39a9848aafeda3a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.17-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 112.5 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.2.17-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0649f67a9e139713fa02f8e829c326c7f011ac79d4e0e78d2be581ae63c40fde
MD5 51b318cf24c016c070e2971cad55c785
BLAKE2b-256 7eda198ac6cfc7fc1fdb4cede1649a7b5d56e37b585bd1b25639d0971af63413

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.17-cp311-cp311-win32.whl
  • Upload date:
  • Size: 110.4 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.2.17-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7f6066470da819efe338223e5333589c1067466d09653b51c75594a88f415e10
MD5 cd5b8771c2af78df51f7989534c6e0bd
BLAKE2b-256 e257231638d045b9585dad09a9e74f803016e39f81c5a51418d47a83871362fc

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.17-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.2.17-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 44ba2aea0661e9e63c4edc63852bbda747adc74b470a95774ff9b258e38086de
MD5 9ee3bd228a8be54eac6c81b62b4ac6ce
BLAKE2b-256 2c5d5d9306f9ac75d3b7746b59c6583ceddb25c1f2c5716e72e31182fe5a3051

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.17-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6f0672a66d491777e863c729626d6488a6a42a365408454ed94631955eef05b2
MD5 9d2670e1b5cc0cb158abffc2f29d570c
BLAKE2b-256 a3d442d2fca4096d236372791f4835667874d6469cac8aa4ffe0f17e45e04fb7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.17-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 112.4 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.2.17-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 02d64fb9c589b42da61c4b0b5766930f1f046636982e917499ad162fd79e0cb4
MD5 93f962b4bca8ee66a0d0aace8e940cd7
BLAKE2b-256 0c2c0e72634e00a8d7e0d5d3ff3550c5410386b30b30869173c7cd2293eae6a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.17-cp310-cp310-win32.whl
  • Upload date:
  • Size: 110.7 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.2.17-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 70ad38d40712ee696a98c7a49f1ab1c81badadbf8756b968e579085da0c88227
MD5 5a7a0a038da5c3d21d1b1fa517a2a199
BLAKE2b-256 5cd2f36a1d5f928a3a3491c665f97ee3cae3dee7bee607c7e4922bc969dddec5

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.17-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.2.17-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a8fc7c9efab6152e22333487d8d85973e2e072f2d5574d45d3448dfafb699195
MD5 642859d125a6a9baa1056beb88628ffa
BLAKE2b-256 a73af65828c8442b0066a2a6d6ecb245015557022a163766e384419e13fedc9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.17-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ed7a8b64194563e3ecb62bfbe713526ed80d4cce33106231a109963f02f0e59d
MD5 796b7aa0eabda63e92ac24cc101c3e54
BLAKE2b-256 4c28e1d6f222d2c4c9b582fe10e00e71d788334bd8399aab4c2259b00710bdfa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.17-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.5 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.2.17-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2536b8c13d6d1e1cb8422d5b9bf390cd32d989f059b1844f2f6b03b8999e4a35
MD5 0e771bd962558f80e506e8952482672c
BLAKE2b-256 0668af8f066ba9556066f937a8e3e12c6df84434965e55c64ff07a1f2bff0815

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.17-cp39-cp39-win32.whl
  • Upload date:
  • Size: 110.8 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.2.17-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2e4dacfbc4691b0e1c15b262a18dd800f898c492c2900686554b1ea58bb10cd5
MD5 26d8de178433fe66ef4570037c28db36
BLAKE2b-256 463b3ac1cdc84bacc1e71dfa81391d3f4f9d60b386d182bb6f8ebdef456fb199

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.17-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.2.17-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fda01249a55fb81a64c88de0c7db8802ba23f70bb3a74f8f628cc2f6c58a780e
MD5 e9938dbd9f3de7733f0d15d0c23ff31a
BLAKE2b-256 df656c00943128a3b4b72e203ab998b7f3f7aa300d971acbcaf90e5857f67e7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.17-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7be5c6379a40a5368bcc5a82cd771548302af01aaafa02be84084e648cc08736
MD5 b8f22484aa727c79bb7872219d613f7c
BLAKE2b-256 54df0299f7939ec004dacfde5ca59e9a7609e481750d47f8bbb5c5cacd8bfba3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.17-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 113.0 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.2.17-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 bb388aab21d3b1027036d8f12238e31f2cb6e7bf97f7ae159a6b5db31177e7eb
MD5 2392b40807c870febc6bd04bf99b047e
BLAKE2b-256 f4e280903829ee7f4601145ab851c69eac3f7125a3129ff920ac7b3e933459a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.17-cp38-cp38-win32.whl
  • Upload date:
  • Size: 111.3 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.2.17-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 faacd54193eec9219697648da39f28d8c303db30611cadc10d9556d7918ee0cd
MD5 d0f3a30961d55abb584d02aaf59c4348
BLAKE2b-256 f1c8a58b4457a0f24b542ce3d30f02e61ce04992432ab7e701b3f3d7d8750ffd

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.17-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.2.17-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6bb216808bd635685f1d5089b2208434d84d2bcbd1c6af668851ec0a43305c08
MD5 58bb80675f3f7b6e924a841dd4e6543a
BLAKE2b-256 edfdc76b49464e03af74cc1abc78270ddf9347733c1a598a837fa937cdec440c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.17-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 afa19559edc5e725db0741dcfb9b2dd99b6c9358988caa9d820ec286f1ae4ddf
MD5 6c9a0b9e2ba425bd824b29bdbe098b65
BLAKE2b-256 727d379cb752a61c013c76fcf45ce2bc222884b8b2bbdbb04c6693459c9158d2

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