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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.677-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.677-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.677-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.677-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c392eb265cec8d7247c8216de3273d7880e3b063e5a9dfb0b4bbd96dc4b05950
MD5 8b2a6b010ce1014ee322fc3fc31cfae9
BLAKE2b-256 ad4a5ccef95ba4fab425ddfd2d5949c141487d2c9cf57939ce8a14b211e3f8e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.677-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.677-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2f545c2f04b8666ebc93ab4a1a3b854bac6edcaea37084e6bea305aae3d8fc92
MD5 562150140b3e2bdd3dd2c5a13281dc18
BLAKE2b-256 6392d787a41f0cb1a1c2797b7470c33fdd6d0e091a18a3d5da772c7c3a34cc31

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.677-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.677-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5985250cfbe244bdd75d4c07f0f0291301095b44bd2ef966a45c21dbf1df965a
MD5 7dfe386cc31fae317dfbb58278e09f0b
BLAKE2b-256 d542c5cf07bf4b08b3ce96ebec45c6aba5536f45689e212892cf17803415f418

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.677-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 914fe306faaa24c8678d645b51fc4802e5e6441d35e06e26cecf291c76587704
MD5 75310e2181e0418f2863e3628e0835dc
BLAKE2b-256 47c5d3e7da4e86c1223cc5e27324d3b7172d31d91e45861b41a3941b8706720d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.677-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a8f4c5cb9263e7e74659f324f6b118193729780facd1e431c47b083449524101
MD5 8619c125bea0beca52a8fb34884336ac
BLAKE2b-256 bb696caba00024c43d85669588003672177b748f214b907b79dda91a391f49b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.677-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.677-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7c7ccfd583bc9800b766c396928d02bb82fc00f17c3cf0a0066d0af65c87743e
MD5 31b7fc5f973d4559c3eeb6b42afa0f2e
BLAKE2b-256 76f778b8a8561cb55157f9cb7deeecd1aeed7202a7c405ea278a69183742e2b1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.677-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.677-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 69a54a4b5694a75f3976d5258776194212dd6c6714275bceb6ae5515c94d0343
MD5 01e67249149b7b721a9f6976695dd60a
BLAKE2b-256 1db1d3850242b4eda88097fec81374183d96ed66afe105b532b17f58ca1b6591

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.677-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0564fcf25b7d0909e056d09c43e0cbed27990a97b9e35291076e9361cd3e1721
MD5 f1576f5b4eb64b08024b35aa552bc0c5
BLAKE2b-256 884bf21ff03a89e059ca87c5484071a19c1255ccc08ea38411ba7e3d9216591d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.677-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6206492cbed8c1ef43c78879d5386b6fda29dbc87e7094d910487478f063e402
MD5 644995c65fae9e92f3e5c1711d24e100
BLAKE2b-256 0fc746a8ae9094dadc00b1043303d7f1d7855bd38ab821a3dc96374613c2037e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.677-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.677-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 644e0200ead3d3b6252ab1bf02e36fe63155590e55f1dbe2f7e9d9536685a5fb
MD5 b09248a7ea9a124d959b473a51fcd7de
BLAKE2b-256 8439c6681e461996ab8b8bfa6e9dd3845438459e54396e60a9bf4a7a40337f4f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.677-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.677-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b3545143abaf2525a9447058f628cfb93b50676a3a83804632dc730141560eef
MD5 4cfe934c67abfa4bf6f38796b7277b49
BLAKE2b-256 e97cbf2bbb66b34d4582e07a7845c7585e8d641defb63987ff50126008b68824

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.677-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 26a4ff3f4f4b2a49a390778e8b4e3b160ea9bab9950b3760171b85f6b6b21572
MD5 d8fe7c7b773e724f06710e13befc257b
BLAKE2b-256 1b26d482d16b5a07b1c34f73a5505335b089cd0a77e8f73db7a542dd83645db6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.677-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.677-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 84114d1c61beabb2d59dcc7801d604235c91247001331522b7aa1ba06e93994c
MD5 71c59e3cf04b7fce0871caf2077d8c9d
BLAKE2b-256 da1d27e1c5bd94daaf7e955b69e983ca82b646e0c360e0a472ac26d529603df8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.677-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.677-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 59a6aa2eb1619e4d0ba8347ced2de8fd8c29e15c8d7ed2beaa46a7773d5a9bf1
MD5 e0a236d4899d98366d8dccaaaebad9bf
BLAKE2b-256 eaf210e4a1751bac110042664c54e269e406fb0e88c65a506354a4c905fbec1e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.677-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.677-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4c51477990d74d83079a56a6623113119832c22b93ab063cc0a706a392dc704a
MD5 c49fb08d326e97668b512325174dd194
BLAKE2b-256 09ab61cd156003b7f710a52c42f8898175ffe6380f35f352cfc902f079ad6c33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.677-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3875bba9317670ab496ae4b80d8cd40e3cbed0e937223552e2a355743220eb9e
MD5 224f0ad988485cfc811a07d87ddf3c4a
BLAKE2b-256 9495027062c072a5e0dfd5831d5db02a0a50b16d86e332b4a94a5e10ae6d2e5b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.677-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.677-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a337732f989cd2e090c20d6ccd4107b019276715feea170cd5e2cb6104fbdfd6
MD5 1a324d3f2ae145698a16131f592582c9
BLAKE2b-256 29264e43704c29a21046419c60d401294bf807384c4a6c72db7c532031f91959

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.677-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.677-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 eaef0d7d4d0089c84f544bf81e6812f9c466c07ddcd535c76ea772091a632b19
MD5 56937e6cd3d1fb8f5111956922f1ac6d
BLAKE2b-256 410f5dcad91631c7a252445a191276419a82d97179f761bc288de647b55171ef

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.677-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.677-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 59712fb605d5b9b4fd18af63264cb1cc8d1ffa580a325c22cdd55b127e16829f
MD5 19ab8fd94e822065c062a9abe53b164b
BLAKE2b-256 16366516c457bb068df7ee7b8d92565cd212e09080cb3f24af966998012b8b59

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.677-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a9dbd78446d13bdddb36cb3015214f137ef9e4a3ed88c423c4a8053809c443f6
MD5 48e255ccc7f2b476000f71414b27eeba
BLAKE2b-256 ff817e829b44e29ec497e6d6fd5033c9dda8fb3d14c46ed340b24858b302f409

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