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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.858-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.858-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.858-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.858-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 314f019101705ee441f5e3f7a303a92631acc6f3f48ec5ec7d047a6004d73361
MD5 8cf48a7785d70f9000f008e04827a3fe
BLAKE2b-256 46c6a47ecb965dcd230f52a9fabe5dc7646a13eca0376d36621705fb6beea27e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.858-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.858-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8d5467ee9607864041983e35b1495c8f08d80155e3ee65a67fe48a5fccfac539
MD5 3b8dee7371dbf3e48c9db5372a0d2e11
BLAKE2b-256 e46d3b5372dbcde9c4e9e3d063b9aec07a45a42a278eeac207b33b4e6344cf4e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.858-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.858-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 43ad73d6446f2a51a02131f5bc668171e8a67263baf8e4f5d25caac7e9ade3c0
MD5 cc9babc76b90ff24d6080431ee75e2c1
BLAKE2b-256 cfbd3a262a6804bcfcd90baee40ad07ab60ec422545c99474df7d519e4c507a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.858-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d7a3eabe72035014b88cf61e71b743affa8b728a1f4360262f48bddaeedd819a
MD5 eab7057e13150be39a00702fb6dd9979
BLAKE2b-256 36f9ddb117f608abab43fcf7886d3e962e46deab31b595a8870338e7823d7748

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.858-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e304959db62be45b51d150ce2827f0b006fec1630f9f96a6ae1b5aacb1a99a00
MD5 a15b848cee801bb49abd04105cceeb11
BLAKE2b-256 a0b556361837ef47d7c6da5959970e99197695094b651d3aed7bcda562366206

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.858-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.858-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4acb68df1ac5d53d126d01ffdc2362a664a21f6edef0d55bca4ffb770a7e9c88
MD5 8ee39a1248a102a8c05356f8db5cc86a
BLAKE2b-256 ebaeffa9f208bfc3e8ab2410c96995b17a40c3c988333cc02e9f03c214d47871

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.858-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.858-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 29d9dd3ef636b3732a07a05756142a9cd9e571abfbd23060494c7ca27a9fb631
MD5 619c48f09abde40485c3baee41cd9b1d
BLAKE2b-256 f50c71385507694c8b926e68639acff635d4c0b52737012edb5f6c3ef7b424a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.858-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 78b1a0bc81cfdd8728faec611a13f9d80a094c477243f6e8a73f387ed68cc8a9
MD5 49159ecfefc40dcdd4eee4dd07928590
BLAKE2b-256 245af7e3bb808906a337e02147f9ee5283385361f44719bafab95876a23ef082

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.858-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2713ad6860ee1fccca876c74acc9334b1ae199c9a2a8809abc3ab0206107e6d2
MD5 bba7cb13ea303c09fc696736bdae1149
BLAKE2b-256 21f86200c2a0b1e38a5b71203a4eb7411ea8c95e4a37d36d8677f98d6b5bf56f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.858-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.858-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 882e11bf4167d4319cc7c483dbb2dbd58412a2d29823fb151601db362b5295b2
MD5 b97c03576e6cecdbc5a0a01b14328649
BLAKE2b-256 302dcc33131f421e33329264beb8ed9777f96ea1814d24406052d59cde5951aa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.858-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.858-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 840b8149e8ff077de717739f84de1c6d1354649930cfcf8795aa29ba2aa2f209
MD5 2b001d1ed4ebc9b09ad469c81cd6dc58
BLAKE2b-256 16bc55ea4de5c1cb73c86e9c149f62d0d73a345effd42ee2353cbe3395f72a10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.858-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 737953eda9e12c423b57486c061a69d298b6e30f45efdedd2ac4435b073fe3a2
MD5 3995e021a538312a92833e680a8a3c89
BLAKE2b-256 60207286624ec35410f30f041204b9af064c85a2808cd140d6de015a33bf0a98

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.858-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.858-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8ecaffe3195a370ec1fe5895a6b3613166b76d78256ce4eee109da4221c276db
MD5 fcd77c15eb2909a0e4f2cc604e79e597
BLAKE2b-256 594c2085c5587a357eebc7b23251ff3183ba457d813b8e61ae7d98372dbc71ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.858-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.858-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 df8170924e5d50d6b9e2260531652fe38e5c21171589150380c1f21779f6b00a
MD5 9db1ea92fe5a7ccf10d99149d50aa9a1
BLAKE2b-256 90432db3cc054c39b841c76d53741b18e01d4f29e2f16e8f8ae39c88d2ed5e7e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.858-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.858-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 abf0df0fa1ff18dace1b02b11ee85356cf97ff45e4bea150e01654b64092d44c
MD5 f9b72799b5f6bd3a465e201563b3bb9e
BLAKE2b-256 c69be917ad5e8976e5318039aef2cf276fcebf732ced867a7e5988e475bb49d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.858-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7f259a4dddfc36faf9d5d118066f9412a09b940053211a8204abf9f81ff77464
MD5 d93950badc41b446260cdf3cfa74f449
BLAKE2b-256 3a30bde1f66240fd5f056429a6ef7c3b21f9ecf663ff639ebfd0bdc410da54d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.858-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.858-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8cea1676d42d35cfdce871e41c6fd75db68fa543be15ca50f17cd6337c4d97c8
MD5 4e64c34f58504d766df94b1c8462ef01
BLAKE2b-256 abe41c5eb028cfe187fed7403ca67c721b1bd60eff82ef09ab261652096c284f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.858-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.858-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 bae679401c8f9fa2c9038ccebd87dceb8474f49c9eb0df217730276e1a31c74d
MD5 f28f4435ea44a501de4df760d16c3688
BLAKE2b-256 568698657ea4685a4827ca0fa770f23f9f22495a80fa4d2f54f973ddc57b2008

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.858-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.858-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 620401fcdb501b5e4ed12bd6be89f45d666486db87f17f730df78d5d1f424053
MD5 3db1b134b9f214a6a4ffbe58a5af9bd3
BLAKE2b-256 96e05051ae88e6e1a8b20f100fe398388e78249f1a2af7647693e93a0230afa2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.858-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 41923f530268ae21cc0cb61f05ce1583e931444a9533bd15fc46bfdc145e973a
MD5 35b8332d7854919d92105a754e6dab43
BLAKE2b-256 3741f61da0e48aebd24a208e43f0033de21788e1834c87a40fbf26b2198ee3fa

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