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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.131-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.131-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.131-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.131-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6a90990d5375564fc87ffa0d43f83ec26abbe813b93373f9650bb986e723f8be
MD5 aebab4a0b0d0a35f35b463b9bf7ec099
BLAKE2b-256 819feaa2b717d09f17636d6af90f751394a850e51ad310c3141c63e57754bede

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.131-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.131-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 88927ea817a43a89c298d0404f82120593aebe007ded63b293ca7d7f76cdd159
MD5 eb370ba8a35cf7c42fa3d21baf5ce8c2
BLAKE2b-256 7ce9dba081d3216b3f64fbbf496f017f7cb59ccc573ffc82d3c61adbfae76535

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.131-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.131-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b781701785732399d9d3b693da6ae59e11ea04624eae7505461e43f3d02dea24
MD5 cbf66f7c5a05d575e086ca1075d3bbab
BLAKE2b-256 a1fbcc7feb5ceb18c0500566779b95a647276c2bb08b115da5f72c0fec67152a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.131-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b635e09b1a55e11c87f3a69dc08ae45bf7dcd0e24101bef8455f49a29bdadb89
MD5 a0d961076d7345cf251f646d2ec84a42
BLAKE2b-256 90dd32410e4a10366ae78a3c2922e412f1ed1f4a7a6fe1e64223fe90e42368d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.131-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ff3211080108fe0776954a6e0ae4e1953f093568d921d8b03524be833f9d39b0
MD5 53aebcc905de01eb16b61c0fcfa452fb
BLAKE2b-256 3e73dbc5bd0623865967d635385a2e784cbd315afd9f1449431db97f771f5e86

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.131-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.131-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 53ab2ed2b2c664a8035825e97c56c970e77a47d977a3b1b8b31fd58e39d2293b
MD5 cc46c5616953041c8c7df65923600e52
BLAKE2b-256 c0d9bb008908c3fdb84570d39f68d8b71a34b4e947f0a96445833502ce31665a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.131-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.131-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 80a884a695646bd0bd9cf37fb3db847163895543243e33957789e2c32fde3194
MD5 a6dca62f2eac361a598180d04c227f4c
BLAKE2b-256 2413d10bdf18429917aa1e06a5e85c0b3de86f134977e83cc5b088559c045edd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.131-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7f3684a26ec586ca0103573af43d163fa9fe9cb2a93592d98dcadfab729311fd
MD5 9d69ed7bb51a1f275bed16c6fa272fa5
BLAKE2b-256 256cae8ff8f826300c353c2c4df987a8789ef4ddfc42a630b3fdb21461198a70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.131-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 68d6d8aaa5804c905042a38586185205c34004dd774286613b228312b96f5e97
MD5 faf4104e48241e92b465f9ab3ce00cb0
BLAKE2b-256 e619c9187fa771a18e1c2948f44fadbfd52f9f307ddc904e7d03450d462f8243

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.131-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.131-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6222cf456efa6f18ef2c169f1570fd7267904738f32794c8bf65d2160868bc58
MD5 d1e084757ee908ad20d947dea9ad61e7
BLAKE2b-256 a5d9ea15b4482daa7c79eb2081452312163e7ef9125f4772aadeb51563e65276

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.131-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.131-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fe9cb56482524fe63345c37a248786b908385b8315de9879a0445bef3cbe410c
MD5 ecb2432d929fbd756156b26cc56beb27
BLAKE2b-256 91b307d4bc8abc599be15a642f4010e8fbfbbfabab3c445933db8f1daeb4ce9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.131-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 65fea26b8d6621fa2c290036efdfe3b1a92b97253a96e67800895feb3b92a611
MD5 e5db5f4037312ec676cd7ab27ed9d843
BLAKE2b-256 7d51d80aead28dff35bffba2a094ce2ae4b6b19fcb33ea2b50069975557a6daf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.131-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.131-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f05b205f6e164a4878a9062377414357e449564ee594fd8a481e2f8612e3f962
MD5 2b09326d6fbc724574f18cba4a99eeec
BLAKE2b-256 84b1cc7a9f7abcc937e3e5aa0f13fe9a89758aa561fc875505e1fea4294b9350

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.131-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.131-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a049c37976357f98930e723b4cf72c5f1af8d727b64adda9f090d1112490960c
MD5 f6c90c197d5b4cbb070908fdec99082f
BLAKE2b-256 723321aca3d6d20d10e55e710f9a72a1f4e47dab12f37bf6d0ce1757b3be0c5a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.131-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.131-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b96db459b32ac988d015287873d4d4781fa7b327b40a3fe74c0e482d1244ad96
MD5 30368e277adf21ecec7ae9165c6e7dc2
BLAKE2b-256 312394defe1b9cbe20182fa0d1a85fc73b7756a71bddb62b2f6c1d1bc37787ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.131-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6b3464e2596e22e2e4ba8689a43c2e4e4f4f4975e9a06ddb1a3ca877020913df
MD5 997bfea1178ec063de141d4426831bfd
BLAKE2b-256 a4607c251ecbbd7a4fc87ef7605d501c005ef55b63e7dd9e779361bf07b298f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.131-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.131-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d3c11910269d3eae24b6d17031b6a781ba5fabb4160f5ee00b59f0dc095b8b51
MD5 be525fce32c3cb2681d2c1902f639f6d
BLAKE2b-256 50b330a67be354ab99034d515563c41c536cc6968b6583c40524d06310af887a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.131-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.131-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d2757d7cd3b70871914d6a6994c39137e93525949fb885df8d8d284d754d8a08
MD5 c8e1cb3ee7a709cb65fc50febfac844e
BLAKE2b-256 360da7e83382d7ec461c6f0896bc35ff2ace46c2c1d1547b30a8927580bd8553

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.131-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.131-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fa8109a01e10307d4b5596d6a507c95585ece0c2b240ef3e2431a6ba58964018
MD5 d3fc454f81133ac7d3f45d5f565eadb5
BLAKE2b-256 7681c84804650b2b26116ea19c1ccc550c19f58857865f32b7410a93c3d2e5d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.131-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 319d8547fe0ff888dd77bb9816527b3b529ad7717189df4c6d1e214954de8dbd
MD5 78870099ec260b9bc4c2b43ea6944f6a
BLAKE2b-256 87e91d7473c6cfed2a37652120cafd01d73eec589c3dffa6bf88e5f1a3f9d4ba

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