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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.795-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.795-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.795-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.795-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1ed63706b8ddff5b018c19c2acdfbca34316105937433cf11ccac3881e91c008
MD5 1e2be303b2cebecc217323339e0dbdeb
BLAKE2b-256 8eee1c1eab33cafc3e7b26ac24cfaddeb4ac0d3efee146244a373c6b129e9a6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.795-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.795-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f4a0b18ddb2dc73a2ab2cd7021dbc0a7c6d1f0218d87fa112b91ebdcba7c6e2a
MD5 1902c2378c3617a1815dc69caf819ba7
BLAKE2b-256 cb125582dfb5a16152d8284978e885361b8364adeb0d910effda0bad8746eab4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.795-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.795-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cd5e5d67019cbbcde315c9f0462905e52fec866ddf8a4185c955d5eb0f25738b
MD5 83e311cf00520dd0ff074ba0674deccb
BLAKE2b-256 fac2eb91b5634e3d334294bcf43970524e31ee7ee987885a3a4442f3ddc89c0d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.795-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8af881c7c7690de3d93f34a94652389d22b3909a3a70c40219ee3ed677ff101c
MD5 2a189f602cb83a73441131b05455fe27
BLAKE2b-256 1ad0b2367bdba9e614a34c4607d18936046b6752ac77582f5bb7cb687e7d29f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.795-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 237f9637c64824b42e3be3146c44f3c5f1d862f0aea089027f9bf0e48ec7cf95
MD5 0cc3bc04530b80285877653aebe4dbc5
BLAKE2b-256 d02d28890b6a7b48e0db3c8c8bd3fe3de3e76bddaf4723d7898053ec7dadf459

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.795-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.795-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d83af760e5aed6934aade3ee322ba5d448e6931cc50ef92ba7d8648148f47437
MD5 86d6f018f7aad7646a552e507853f7ba
BLAKE2b-256 a4c62a0cb8d9f75e4829821221fff28dfafb565b4073ef282fb3adcd4455e9f9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.795-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.795-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bff6c47ae7c832231b16e992cec4451428ad7d6c6e90d1aac0d858d71b9504d8
MD5 7c4012e95375430455322dca6fa7097e
BLAKE2b-256 1533622009eb2e604faeea79db45e02104a09cb7b488e33c7752c28c336fa4b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.795-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c238278a626477278acb6765693f524978631b22d2fb02a987342f0673ac6c44
MD5 e620a6f95a258ea3919ed325952beb4b
BLAKE2b-256 59937692a074be013ce3618163ebfff342c4b3b0082ea32da061b2257050ecdd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.795-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4072b3aed5218682032d97240affc18aa6502c6f00e3f5194792db600d8cbb7c
MD5 c108c887a53c8afde53794807a35d3d8
BLAKE2b-256 125338f8a55c869c86a303be0c82df727915808a6a05fcc416147348da8e0afd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.795-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.795-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 be34e068342cde19b0fe023f12b95d4d265679cda0a5c766ed1ed3e230ac2d08
MD5 b97310445443a6af4450c5798bbc743e
BLAKE2b-256 dadd26ac7d4ab78d5fea4846c86fe04e98d93bdf7b02c9ef186e2113962222e2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.795-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.795-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f958441827ee1abd3cbdbb042443336096c31a6e9896b005b07757a958bc7d86
MD5 e7f4e3f3b32d78b89e86bf375ec00b3b
BLAKE2b-256 9b719aad950d9689136027266c37ff57e196036cf0dc0da0a9395bc4f1ea8b26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.795-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 72bf668fa9f4866739403357b25ca7f3f9f216faf73f2e71e0a6eeaf78f336f7
MD5 9aea0730038450bba66a920ce3c52ea2
BLAKE2b-256 4a7d7317720fb07838e417fddc56366750cbb145958e9644388a8b7f189c3fa5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.795-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.795-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3d1aaf1f28f6eda6d6bb3567cd799243207a846084d1f31f4b2ec9edd4435d3a
MD5 7a092a7cb4fe73e0f561bda73f887121
BLAKE2b-256 1da83ada4858901e18cc4de79d4730127d8fcc7f28017ae9c0e421bca8e7dd0f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.795-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.795-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e1e1fc36c0cfd06669b156951a1f1f06ad0fbfffe77d799d634579d4b57a3129
MD5 1703922234a20100f96a5d1faecf6fa8
BLAKE2b-256 105cfa656a269d01dba4c9bd35f33c411bb40c9a38158dca814fee54f9b4977b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.795-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.795-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c6a74e776728a1b6dd2e4b4d47c3e66faae6352e0d575dadc828b205df5284e3
MD5 edbcd772889361f52f9b294fccba42f1
BLAKE2b-256 a460e76bc73f4002d7f930967ef7aecb3dbb50cdd6da473be10cf65fc8d60bfa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.795-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 89f2431714e27345e2a45857d12a97d3cd9472e9772a85799289608a55068404
MD5 65ffa9a76285246b0e7145ceab653d1b
BLAKE2b-256 35fb981de5763cb4ac7c279c348dee177cceda5594f1f2f70d66d4c3f232f38a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.795-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.795-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 dfa81106bfc21482b48196d20b9e85c2a609ff52fbefa246438ff57c9fba6a54
MD5 3d4643a3f737e5338419923a83548c0b
BLAKE2b-256 1490e3a761b29dd2c6921c74f6b25f602a42d0ecb1cbe02af26aa8d1dd2a973a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.795-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.795-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b033ea34319c3de752cf5b8a0e21582e5966825e2ef3d05f95848bec538aa508
MD5 1d4532a7ceadc69c365feaf40afc6f14
BLAKE2b-256 e7fa1c5816bbfa9806df256060830a524beded15111abef14c1a925d812886c9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.795-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.795-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d21d208cb80627cb0235b1e89a79220d8fd3e701868b5f011dcfcdf409ff4e3f
MD5 acff6644f7079f153b0d081a5880deb4
BLAKE2b-256 752e6409d4dfc324a31f94c1e46ee3cacc1415507b6fb557c7052637cb02514c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.795-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d37ce00ff7e57a39f85e54fc75b83f7fe5a53e8d10ab5bdae84281c1d217f855
MD5 b7586588486359f5f551747fb21e7811
BLAKE2b-256 8ac7251fc5b71ca5e15e710841e204c799ea316b7a8d38799b111c3e6601e3f2

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