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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.17-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.17-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.17-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.17-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.17-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.17-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.17-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 78c90593a53295713479dcbb37788a244967d3e04981ff2a9552f820849cb7e3
MD5 688f2ada251a671067b04d0f17c77362
BLAKE2b-256 5717271b6cd7771058820bbf92e2fffb7a98e1c1c9c0e4535f6901d622be64d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.17-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.17-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 826447445e91fbc4d6c24c7acd2caf69a4be1252adfc3f373b37e8a4cbae099a
MD5 f9ac93723ccaa79a6f8d048230d70b59
BLAKE2b-256 2d93f4ed44f77405b4e6a39cb8d25399ab8c067b0598e20371ea780ac13ce53b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.17-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.17-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7910122a2b86fb4667da72b24d846b80ddfaa580cd003591f81de0658b047c38
MD5 4f5a1bdd4f20b26963a1c73d7145e31f
BLAKE2b-256 622001fbbb504844963dfd642ae393dc23483bd9d08053a00157e1f1cc974ba5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.17-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0d3464debbc15e4db372734280764deb19e5401f691865dab385f69c1876593b
MD5 630b1e07bc4e3811a2e01c78075b2466
BLAKE2b-256 ce45368a0b8c6484330f3a190fbaaed40b31fdf16a0f66898b64965da3d99d3b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.17-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.17-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 18e94bd34165e6bd115e2f124e631b1e0f6f5347863b794b52731a2918022adc
MD5 aed0defb00a28ff24ea8f70f134edd6b
BLAKE2b-256 d17cad009bacac03a20e1213fc0efd81e2765948d8a576602c08702f30ccf042

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.17-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.17-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 dcd43f2fd0c6deed090503f19507decab3c753056d5b932a136975f78a6a7675
MD5 d6092b39f79ee0453b0071ddb60b1d9c
BLAKE2b-256 4d177e6918fa050c2ff111fa9c9f724aad07464acaa555a28d258c4cd3673599

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.17-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.17-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2c6b453bb0d40eb877500e573062027dd65209f32276e801aff974492aea10c2
MD5 b90fdbd5ad123cb7902becd564deb415
BLAKE2b-256 5e5003ce2cc9665744a9e886b9ec17e644190af79d6215625a5879273256ca69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.17-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e9013bb6c4006059471280685df7c5180cae7bb3563bda5b45b2ba516a37d9d5
MD5 5408e2cf5e9539adbc846cdb1149d48b
BLAKE2b-256 f4bc662e32f76edcf609c7a5c3a1867d459df2b0a4f69b4fbf95a06ed5662788

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.17-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.17-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9b0a22e3546d059979c44a8403d38610b84e3abffbda2b3a56a61d2f6e4f1d66
MD5 61c17b02f0244cc692a51badecc7826a
BLAKE2b-256 90993305b4f589fa2fb82dbeaf9787770abf1a6a6a142fe7ac2b1c6496133b6f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.17-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.17-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 636358f08d9c39d62d089c2f1f956fd794f1d340c15e015c57f634fcabeb568d
MD5 669ccdc6c4dd6db0882a3d65604a4657
BLAKE2b-256 c106373244c70ddef531f2de47450a38da784df7de19f03a29a2c283d0a56f8e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.17-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.17-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 19dc1413d7fa4bcbd330b0bdc0b43fcfaafb4386da44968825b7c5efa90d5dd3
MD5 987a377549f68554550bcf00a793bd3d
BLAKE2b-256 068181a11cb63ab53988c6bd82e1b381fb210aae397b640268535ccfc1c3bc79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.17-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 772256205fbf0bab508886eacf9767ab91ba00252c6fb72a2b5151b40e19f51b
MD5 b3a822aa3782a840cef66603a747b76c
BLAKE2b-256 8bac73bffe95b96ec4a5726fbe25c7dfe67f5952ac4b5d4e141976cf5761bfd0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.17-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.17-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d7e57e230605b27c05c495cc2c6b7f36d23b25fea6f446da378a488f34074b40
MD5 65e6bbcf98c7fceafc6fab43eee798a9
BLAKE2b-256 7813a22372b1737d3eefdff13f428a28c94ca4cb37618c862a8c71de4b7bd6fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.17-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.17-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 af5b4eb1a70302058e06b36cbc5479d3b2c8342a5ea6bbd25b7340308d56d4bf
MD5 fcdbdb44e882bc20353895417a19a7be
BLAKE2b-256 573be3145dd9fcfa282baf2851cb7b71d1d4da2233bd35f55009b12462d321e6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.17-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.17-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c00689e1a9491ca576b7aa82813dd9c46112a547be12ec7aa3531eaaa63c1646
MD5 554502b13304f91e6d45bb7e6181fbb2
BLAKE2b-256 2a9832530dff1c6b8a36f721fe575894e3e611971d915f94ac878c23f16d8016

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.17-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4ffdefb333e032d69c63968ce09c4b5bfb913b1df9183ce99acd8867622b16cc
MD5 b0aaf6f14ba26f8b0963135e812fe264
BLAKE2b-256 5f8a97751106d1532adfbb2479eebbfa37be0a6b870f16b91da94b9161bd52c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.17-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.17-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 21bc0e0cd2044c875bd60f558a724154f41ab61439a36c7fe836bb3c9cdf0198
MD5 76645b1bfd079c25325df105a9e52104
BLAKE2b-256 d34c02753cc1adf67282c0dd23301b1c68072f3da7576c968246229e6e774489

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.17-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.17-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b32ad3360b70c51230e8230694e78aca744f91220e87394d7466dacca01c2296
MD5 5f1c0a78c7484c2ab1bf71f3e6c3903c
BLAKE2b-256 1c3dc3a3f53f421a7404d90806471f97558ca45eb629c1e9fd047e42047cd265

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.17-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.17-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3aa634f12828855049a9bea701cbebba1b35f3f9fb264b8c8e9ae70315df9b98
MD5 5189ee6d2790df67146a8d3f82e7e9a4
BLAKE2b-256 05daf1c9d63210e50882f9bfa247edf6e986e21137b27bfb8e551966c218a521

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.17-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 94d741e87d9ce0c80adf2f68621fadc0948d0527ce51cd17f93cb87f75d736c2
MD5 f4a9da256ecb034d0a59a6c2281fc17f
BLAKE2b-256 0031f0b98647823ff58bdbedf536b15689afa8b44343be65fcdd765b7ceb3e8c

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