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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.748-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.748-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.748-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.748-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 15b219b3f77ae0bd993aa9fcea2cd8599f1ff7725db4cac242de14908cc76079
MD5 5dd8727e4f63fb1e5869696a79119a4c
BLAKE2b-256 d092617e3b5a9fd869ef280b8b7819a4d53a6f2e4bc4e5d8594a399ebc6f105e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.748-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.748-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 be57fc016ecb4eb1276ee7fb1f79abc2eea31bec6d750b713a5ce858d24e4b77
MD5 cf73000ac8cf713b115e08e4038b662b
BLAKE2b-256 ab6dc301e6035f7cbec8db29cfa16c9839c76c29783363da92b2d8a449cc3952

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.748-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.748-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2c14f7b383dd7695b426c6b84d0854a5649e30392083028aacb9793ee2cf947b
MD5 bcf16ebd9cf4bb66c777c30439703967
BLAKE2b-256 9b9666fad6987916e2f2e318ef593f025e0e5d62841e5b8dee28710f3f9b4437

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.748-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b4e1a34714d21c33b650c9f1bfe3d0e3b86c5415ec8ccd651a50eb99e5f92839
MD5 889c8ec8be5680e8441730f0199b1863
BLAKE2b-256 5fbb2ef496df1a8708ce13bc91c091f4bc0f632d698dcbb3dadd9be29df364e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.748-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1d093ad6812a4bbc7f61e524b0a5c42205d6a263016439425df531c168ea35e0
MD5 d83a1890d3510d1daef03cc5d9fc1173
BLAKE2b-256 18f62278269d5aecfc105d46939a5c5dc8673c58100c5fe9df4ab084c5025090

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.748-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.748-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 aa23dcac5963900d197466609c10d7e3f019f4342e3e9a0e35c17aaa850bacf9
MD5 a6c368c1e29901fa8f4ff9ce157a00a7
BLAKE2b-256 3e6967d63d429b4e9fef19e7d418677ce3e8378edb77694a7dc586266664136a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.748-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.748-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 37d38e3e35974651531c5f9b0a67c5cc7c1b7f651262d8fae26b0b7ede941749
MD5 bd604f7aa8bbc12f0e03ee330755ee7b
BLAKE2b-256 0c432ef78a613d65fd1f93a402584574d6ceb7ed3b272f0ed4c7ef860e8f103e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.748-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1fec345c14494e874b88589b1fb2f3d39a40ad12f42e37cf493635c9345a9076
MD5 8ad5ab616a3e97aec8720bf0e2cedec4
BLAKE2b-256 f5294924a039a0e1f7b17584a6c8ab6e7f0e3fb6179fe42e45a44b4e40f247ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.748-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 19aea58bab70da3bf50da3453d52c533b64f307cd3830320d41537b009b2c1b2
MD5 4ee9c162354f9efd0f505c925aa231d2
BLAKE2b-256 015ab494a08af208e25bb692e7eef2271ae46a0f7d6f1cd7eb93d89bfda478ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.748-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.748-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 76dd5649c50c98be626b5c9460c7050cef492fbec594e5866a347bba4fd65d83
MD5 474ca09001a19546115c206a7a0370c2
BLAKE2b-256 293744d82298ed4735901ed8dfd424378594e67dd1f8c1391f83f6be25aa701c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.748-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.748-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 59e41e3732b9d9b063eb671539e62b17758d24de7eaa7250394459efb491b97b
MD5 521aa3a1a4e1621ccc14148e27e11ed5
BLAKE2b-256 21fe84d0531f074bc5d8026b1445057884cecb5592f31bc79a28dc8fcc044ed8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.748-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cffc8b36bf75f2f49d424343382f2cf498705702df2ec7d48de95cbeac40f8bd
MD5 8ca22d3af44a97c9bb384ffc204a0607
BLAKE2b-256 b193612fba7903805c91dd1c7992413f533a7dd1e96950d8a156ceb441aaa01f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.748-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.748-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3e3b09180aec2f21072cfe2bd93e171e99f649a2c7636627a55a325880be5556
MD5 2cc917d0c86ad14ce2877dbef5fd1c7f
BLAKE2b-256 d3065f92a75a359be6ad0145c240b87ae119b0b8ea55182f141ec300d2f9751e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.748-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.748-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 6e42de10b6b8e2662e92d08617fe9cf22626a1eef459408b28589314541e6308
MD5 6e7516344c2f4107d22cf27137ba3676
BLAKE2b-256 7d36a91ce2e7fe97a92c3fa29cc291b83cff2174918f45ce6ebe288fd8366201

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.748-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.748-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5560cc86a1f4acf82cfe7ec5e47932f048318a599982070528a8daea680c6a43
MD5 00c804f7e440f2bf79db23987eb1c3a1
BLAKE2b-256 575d1b9ea399d1e4355d7e87dee0202790bffcee2e72b879971f539a0f2e57ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.748-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 71c54724516b90bc238dac1f77067ba7316a2cdeffac3a26e707b8009088d698
MD5 07a837b114d2f5e937d61429cb414ae8
BLAKE2b-256 b45967043ca2f9fffc22844c66d4467404e14745517214e79c0114900ac712bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.748-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.748-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 fc0ed294bd99cabed76713fd35d9b2631aab6fbdbbbffd2e1a9c51ad719a8904
MD5 42d62ed34f579b584acdd06867153257
BLAKE2b-256 b3feb52f0ff8577db55be5700eefd56b3e4ce4152f4c0de6afaadf2a6b94d129

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.748-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.748-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 420ae19fedc3397de9fec1242dc40eb7f6e8a5c05ca5f75a0f830e347cccaa08
MD5 519ad703c087e0980a7f64ea6dcb6b25
BLAKE2b-256 f5d6e7604c08224bda19324c766c9703c91a1d6c3331ea3f9c3617841cd6c2ab

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.748-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.748-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f8dc907d3d4cb9e5b3fc072f2ba0bf348a3aade1b9d62703b28139201d9ed1fd
MD5 d292a6647b4ae9fa862330c5e1efcf94
BLAKE2b-256 bab92fb895f4618a9620fd4ac1f939c5f4bc391335eaf4758bcba3bbb559c974

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.748-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5225814346a53872377e9dae426bb3706662b46a299c992010c2e232682edfe1
MD5 c8c0ece59baf8f3bed33350d4d38f118
BLAKE2b-256 d6219e0003c36336f1172f531a22cb1a255df1063a2bec2e980c5f0d506cd2f0

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