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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.783-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.783-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.783-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.783-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2bd86901c9286552d124ed4c207e23d23e30ef1f29a3fb59aa9b9c4c62df6692
MD5 bdd6b0b122d4ebda55cebe43202aad90
BLAKE2b-256 fccd68acfb5a047962d34e8b190a3de20a65a69c15e2b8beae4d5e281f317219

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.783-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.783-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9f87b6c0eb7f2891bb96298a4707487c04e93c5af05acb263e1a42d276c85a92
MD5 cf4a0bf5dbca2c71e637684eb0f7c076
BLAKE2b-256 e6842bdf682f9e9bcb24fa4bec1188a47c09ec17eb9ef190b92bb3537292d75b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.783-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.783-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4ec477445750adb0240633a170f212e2eb6cb9ba8d70045332d48615190196a1
MD5 566f44a228b50c0f5fe21e10cfc82702
BLAKE2b-256 8aa11028bce518244cd114b3ca3336bc6434d7063e62a35a88dd633a21b07754

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.783-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 673ed544eee90ed7b9082ec8c40e30c0374e554d84377e2839e6912e710aa983
MD5 c1fff4ae90d50fadb4737066e66cf566
BLAKE2b-256 267c077f1525fd87904e1b16f62cc5522654cb011af2238f480c81de9dadc3a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.783-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fa66d6f9aacafb861fb4685374c885a80213cfe1f0dfbe1da944475fb6d874b6
MD5 ff56dea37043f57aa1da3fabfa6b324c
BLAKE2b-256 de04c0632aa95cb0a697dbbc9454541a5b52610969435a2e4d34bc6c350d960c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.783-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.783-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 02d4aca88882bd0729e851a9d606a389afcaf703cd7ef784cc2b4951416f6b20
MD5 bc6629783195d9f2da9b9d4a6704981b
BLAKE2b-256 8a87e32f68663de30f102c4c46f9e67795669f150b2783d06479c28d3a70c0bd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.783-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.783-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 50c99f5a77c56cb682639e538e715b744de7de6085c30a42c0b2ced08f459a58
MD5 6cd73422a374d855fe673d8f8d6fb6ca
BLAKE2b-256 e75dd70e02804934e941c9cdf9f1515a5c5553901d4f16ababf0fd6f98319f2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.783-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 728ee15f3d079682f78bbb22334b340a0195291f5e85f72b57c1a89cada838e2
MD5 149619a5920a3647d889c28aac57fd40
BLAKE2b-256 fbb83a14c09cb4b1f03fa99f41b6e1488deb4199585e29166fa90ee9089e3fb2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.783-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 75355f1adc6cd3c4b4bf4c497c60434647884573567bfaeb67412697ae0d1f6c
MD5 78be37cbf5d71013613c62959b14a550
BLAKE2b-256 fe644a5043ef5875ab5577e66f24c5c77ea2ba6e06836b97516ac17c155ab17e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.783-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.783-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 cb8a7850cb34bb5e9c9097372323423e07de51e6225b59eabcd050063bb99c78
MD5 ea2fd36b2e9d3df2f9915c67ed650a71
BLAKE2b-256 3a1cf945bb452bce3173463204d0eddbbbe9a0363c9b2c7206539d1d79a59fae

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.783-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.783-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0a0364cad9bd5cac3e4cee058dfaee90618ade2b20779c57cbbf2aaaf839c37a
MD5 1e788b8aaaf957fec3cf164fc45f7ed1
BLAKE2b-256 215b9c679d8c1feb2330ab4f028e702e49ab7ba72349e925acaaaadd61f7937b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.783-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 94b14cce7ac5b4b55e7ae7818e972916aa26549674bd798d672aa3dbcfa38d41
MD5 94f2b34d7cf14648d297140ecde957e7
BLAKE2b-256 222a36f8caeeae8c9452dd68480ecee147e1e82a21b93af2dd2c9adc1faa0e76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.783-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.783-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 36a22c842b9e56d96b3b192fa06928255aa287c3009232341cfebe5fedc311ad
MD5 34abd50751736e6b26a45ee42150072b
BLAKE2b-256 13f58397e13411870c50e5fd2e53c12a43c206c39a16418a7232909820767b9f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.783-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.783-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 42b4fc821b9738eb3c844173384e22268b0233b519cedb03681e2101ca1a6dc4
MD5 121bb9f4422d9f044b535bd60001a788
BLAKE2b-256 44a93ad2ecb7345f71d5130980f2d0de2e451108d887e5d8252b14d90688a9f6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.783-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.783-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 df9f117e8c09b4f64b136c000464a350f78f712d5687ec7aa08cca7de9769488
MD5 432a40db5033e8c36da67cca526916ce
BLAKE2b-256 026efa15ed3fc4f3d06626951b8c077cbb16aebfd4bfb71dfd94f23cacabdc3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.783-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0c7788dfcd3b0219861b5fec8e6aa2bf251e163ab5b3944ff7d62c1bb5b2413c
MD5 234d11f02f11a6c618533c81932ed328
BLAKE2b-256 cb73763e8d49030c6e54e0a52e92dd67b07f5646ba5d9cd733ba4f18e59f6802

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.783-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.783-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a974d9eade48b47acf5ffe61e80de9f67b6fdfd52d4ad36cd88f7a05baad928d
MD5 09033a89410cfbfa91cb782baedc6c95
BLAKE2b-256 20c0bdd134bfc533d92bb1263234457eb5e5059adefad860d408bd39d8a0afa6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.783-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.783-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ba9f12bb5bb64ce6b3def45bf3de86c6335a7e8917c5490c57356c000b83e5c1
MD5 6d58c23cacfce160a049e3c89a0d799f
BLAKE2b-256 2f52a078a6c12a6fc0427b4e0156da5be9b3e321303a2cda49bb249f08a1bb3b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.783-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.783-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 421c9e741f777be6da5ed17377d916ce93a9ac62cabce4e9e019caf1fa4a84cc
MD5 0f7a783c2c469aab8e579fb12f31f9b8
BLAKE2b-256 458caa75e67ceb8491f30b0507664d99ef17eda2241d6d201db0b3e36e19afcd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.783-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f1ac4d5fdf289aef39d37b74e02f3039aa8db1c78e94e72b5372487618fe3709
MD5 bd20dbb3e52b5160965293fe5bf3bf2e
BLAKE2b-256 7726a5dc434b4a0575a3a8f0ae104a0794a9668bb500034a02d4fb7c702c4b48

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