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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.449-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.449-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.449-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.449-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fc35b640e928920a422c4cddebe6d77eaa2cbbd1690ed356caf840f65b9dbef7
MD5 543d68045f9728fa6037964677c055ea
BLAKE2b-256 ba58c6eb3636195305b617ebed213c511c2a87b0c3e4bdcc76046fd1ba55d5b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.449-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.449-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ac4cf868cca900440a9e5a8f93ee992c246f74df01c9d1f1ec774e928b24b098
MD5 aa873b835e8f53821fc247590886c136
BLAKE2b-256 27cf5037078f64afd682df3bbf3adbdea07e36b29ba6676d3df20922f9997cf9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.449-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.449-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bae495206db33c22d6687fa12d0fc62d5f70f939363aea78192d4c3fef937de7
MD5 9c74205b9f3c01ecad9bce1a781082bd
BLAKE2b-256 cd2a501ccb080c6306ac61249766170416f1d01650565629a6373e967daeca0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.449-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c96707932e34e48369615b689da1ceb4b6d6a402c2d23d11ab7e74d80d624c49
MD5 f0675a4dddd332d95e22b4b1073c4a5c
BLAKE2b-256 414cb1ce086e3c7520ac511b80bfed16eb66b5c051bd8df88ecf1c72a7a72655

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.449-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 699905d4376383c15836cffa7e2bbceceaed91f0225b211e92af1215157a94cd
MD5 4d238d0c472a7e05fad0253613691cce
BLAKE2b-256 ada6320924249e6c983e3f4bb1fc6cebeeb289b44d31d9132dcf416d731c70aa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.449-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.449-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ee2c0bf7b2e39ca60978e658614e738a004b0143ae9272fda3890e913a1231dc
MD5 a7bfc50ae86cdf6bb11e330f1d24a002
BLAKE2b-256 a61fc1df31a2fbb11c2659e67a011e8a6464429a6727ed1cac07ec76a55dda27

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.449-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.449-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dc8801283564f30d18e8865234f9d4e922f731c5a2a5b6a70b7a91647dd02771
MD5 a3b3f0a4bdd6241f71f31df0e1f3b317
BLAKE2b-256 89a4b37f16843a9faa77f88c732dd1a74ab65c15fd0f323f92bb6d90e44f0d47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.449-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1b9f5a2f8139b3b0843f252a07b9dca9b8cd7089af37de7c53e76e4a7cff1b53
MD5 b6d9761bfca5b62ef30c57eefc9767ed
BLAKE2b-256 bb6278bc800f5fe52311f143bcc168e27f57ec7847f87b460adaab1b148c9f00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.449-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d9923dfc9ea41170e0672bd2b360ba0cd0f1feed6009c4efbcd9d29e11ac2f33
MD5 0fd794cec6e34f1a2ee7a6509928033c
BLAKE2b-256 ab305771300b6df8d9c0d6ec9afe49f9b085204661e7f3240ec97501938b4d6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.449-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.449-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f92bffb064f632cfeec1fdfe5c9593c4f92da77026261d4c86f9582f18bce5ce
MD5 348a7eb55956314e452de9ed312f694f
BLAKE2b-256 43d06f2347bcfbd44d8d533c8a81792261453b19fdf7ce086231c7fb2be95176

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.449-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.449-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 57c15db1dde0a62c4b04e3b24780d05c059a0bf839ca22eab7da52f5a4078ec0
MD5 a0bd53836caadce1d0e296b292b19523
BLAKE2b-256 701daa2fb7c8b4592f0d6f6816926a0e1c450ced7d09ab5116fe515d0135634d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.449-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 46862711e472e39c894f85020e3befd8c4f668272ccfe3fa66a93bc245f13d51
MD5 26d586a1978eb85e83fce05a187bd7fe
BLAKE2b-256 1429162af1c0e6d5f91e3d85f18569b78d60033c2e59fbb346d6378bd1b007cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.449-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.449-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e0cb76a4bb124ab954b8dab85dbf54323f5b7a9a2a25b66f31771f55dc70244e
MD5 b90a329b1c4b33f2125cefb4756354fe
BLAKE2b-256 72ef6acdff82e111b35063e4d9aea783270075523be9129172bb2f1fcbe57eff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.449-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.449-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b3378a2a4f5972d2ac0387620a14a795c3becbc9705f7e5b4807bc06249eac85
MD5 12f390c8ad52f45d863df93b6cb3fb5e
BLAKE2b-256 d1e3a856464865717e8c369b52d89eca8016c6bf6d4a8e33b55d09d56f0f7501

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.449-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.449-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c569da70fcd877c9471672c42f38709fb3a258b4a83b43bb7d78df5dd9b3666e
MD5 881c9d9cfcf8b3169951a54e70becd84
BLAKE2b-256 ee0ca59823a88af53483abd48cf37e853fa683cd6f8481e4abebd170267fb29a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.449-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9b665a9b707d58789d80269111fc23d58870100356b73c7c5f633049bcb0590d
MD5 d008ca6e93468dfc1c9eab728e440529
BLAKE2b-256 e692df78b26029250275e3fea4b5acb5f0f369f086577a3bbf24be6a1e42ee8b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.449-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.449-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 db0a57529fd0dab9b13a342ef28a4925aef3d57b0e22f989cd0726daadf5d40f
MD5 fb1382fd3b02c7a67cd7794b0425e471
BLAKE2b-256 e858f22ca4465bcf5c60593580108f20ef1f4416d300f47e82cbef2d2587b2af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.449-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.449-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b73cfecdb7ce662fd346ed64665039ab6f0f0f62bc28bc864e4e0a734893a417
MD5 ddfbdd9d623488261201465ab26df582
BLAKE2b-256 182e1faeabdf1b981d2a4bab9fef3620c7fc7ee697762c42457f69a4ec8540bd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.449-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.449-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2beaab331bf2c7f276e018d582f5e856f7cdae3fd8a5359b95097eb3e6780afe
MD5 344708fb84ed4995955082f8a6d60da5
BLAKE2b-256 221daaff47333be8b7a0735ff4c66912658c76d44ca105af90f35aaac2158150

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.449-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3e083d4dd4a7ff7cf659d9efb598737295d1785f1c0d0d544a335abc62ef025c
MD5 2882dd09af5b622033ead20e9b6b2aba
BLAKE2b-256 1e131251eb2c102d0e6f705fca95a2f14f75acc761595f6e906fd6186bf1d0a4

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