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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.514-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.514-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.514-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.514-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c3aa1504567c1d53e5b4e1ba2aee6a3b91405dc53a2feda72ff1f41fb99ff966
MD5 c161a041f5db6afd05a740f7dc668700
BLAKE2b-256 f85ae3b1596b794c5a2c8470c10f41bdf28236f4a2723671e7df547f84d163a6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.514-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.514-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9043e80866dfd56f649e4f19b2b58b31f284b519ccbcab7beaf1df8156342cce
MD5 2f4f80ded0a45fca9927e571ca61ad78
BLAKE2b-256 c05d40a06e2df649d7624a9c2f14fd36f50592c4985dfebfa19957fbffd897a6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.514-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.514-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8eff4429a350e720271d61d478a0f8469638751a88282a66e9573278c8c2436b
MD5 cce641a3e448341d20774fbbbd778c43
BLAKE2b-256 14a9799a9a8d849039fb12ec4ff0bf795d82cafd9e9abff738595cef6b5698e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.514-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3d7dcb7c6865046c8eb2a9bc346d4035a2d7b3318e919ad63c39ebbd43095f2b
MD5 be15304ba84a32a76d56f263bfe2074d
BLAKE2b-256 4482c4a1acc3280b69933daaac1d4f652d9b52c03763efcf793c66bb4fd4ceb0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.514-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f0869d2594cb4682ea6f8d237452f3a44cf939fbdfe2ac3a2c4340fb93d642af
MD5 93a9c941c95750ebb99e55d4604dca7d
BLAKE2b-256 a4e7be909a572191b5495f5e5b229a6879cee2e642630763d155ebb146fd4f5c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.514-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.514-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 907160505d008e884cee7fc0f0e6f108b3ca8b53392956656a53a8facbb57218
MD5 0318e1d8c28b7e6f993a9cb1ce6b036a
BLAKE2b-256 8624abca2d42b6f5c5ebff81d6420b3d6d5e56b7ea5db0613174a819123b3beb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.514-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.514-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 603a4f540bf9f31a18f09001e87c2a8eac251c0e2181cebc00bcdc9dc9a5aa2d
MD5 97d771884dd9360485cb0664ed9eb2eb
BLAKE2b-256 260d9c58d8418346393ffe341404a3ed38dde8d58b9378bcabac518c1b370471

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.514-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fb68b65d289fe10e3f6d30a106a7c34ebf87a856e8fe864ef552b7f134493e0b
MD5 78a4a574a0df5a8f66957dc017a61d66
BLAKE2b-256 aa02dfe827afca040ea2693c74be3a39b8c8aa231a64fcf173f58b0574644fb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.514-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a9b6f75eae78f9629f0f7491760dd88118968ef4e142b1406d4b526063dff5b4
MD5 8d7269fec4cd91090fdb576b693ff3bc
BLAKE2b-256 0a8ac99539f1cae59db1e59aacff9df051a3366f9e9671119afc361b20fffcc7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.514-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.514-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 50ae8db36abcf575532904e3e55fdc90bb9ef37e87db7d60c58b1673efa2e719
MD5 e25510bc3fbf33e51103b20457074e0a
BLAKE2b-256 4699d82988399bbc7d3b681a9c0865ac9be88933f98f9a5de8ea9cdc7a1f3e93

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.514-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.514-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1439645c2ca144419f464ea40d2e568349c12423d260dd1c575436b3e301b5dc
MD5 fb654f46dd45747677950f2f7cc0640d
BLAKE2b-256 1502cc0f305ec3fe31dfd8b0dd21b92c9e947388d5e6391a93bb3c8354ef7a07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.514-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 07a7bde64254340eb8e6fe4b93a16f17a7d77179366c381cb655490c41b0892c
MD5 a74ade92fed536f33e2080b3fc41e62c
BLAKE2b-256 1db791bd52277f511bfa8d1a88838b9a4ee81f721c06c8870b1ba2811332b9c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.514-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.514-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b0ee435fccdab73f567436214dc10518e38194aa75b5504d6d61b5c5637effd0
MD5 ee0cc9b0fece1c0785fbba3d9f535396
BLAKE2b-256 ef56985b712b350983a3b32e04bf77a1f09bfbfa540b8b3a52fa9c79f1dd7596

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.514-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.514-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c59625209f4494ae3fd98e21f463fc7f03f79b67157e8070a72e6c498ede508b
MD5 c295183922c3411e2f101281cdfef964
BLAKE2b-256 4e39269e6ba25a5addc9abb1818a4ac72dcf69f2fbd27972598f42f65d192060

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.514-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.514-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f43d3be86dc519876d543e4c60e681a3fb82ed99eb31d640dd751e70c358ceec
MD5 50dfc3e5a8eb08319d212d828a1cab81
BLAKE2b-256 96db5ebd88b313f330de064355db454b2f99cd698aaba59a7d5c0ca46e2f4600

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.514-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0817c39563b42ac9249a1443559a6f01de4ebdd00f6bea21b2b6162d86245197
MD5 861712e9877cab96cbed3434f7952ab4
BLAKE2b-256 d049bf6362c12027a1bbc8fd6e716da1204454810ad88cec420e137700ee5c84

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.514-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.514-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 81b25fa4b7f9351ad442215452cc5d2b0eaafb636fd1fd4cff2c8c839e54e2f0
MD5 a4a25017e115a9b43b4df1a9563290a6
BLAKE2b-256 f17fb3726c4fe4682d3c2deea82815b835624b7bad7f2b53d729a827a3757407

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.514-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.514-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2fff73e4c7309cd89d6a9e4cdb8a245c1d45ad47835b01b189c2c205395d4396
MD5 a353d827da836702f2a1d21b7866e6ca
BLAKE2b-256 f7894e03dba9ba92163d18ef060db6b2c85443350b3b96334619e23bc407144d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.514-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.514-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b711768da0b262df50d2489f3f803fb1bf07fa5746022175e5982288a71ad156
MD5 eefd643aaa5f5c15977041188e34df47
BLAKE2b-256 e8cfbaacbe3e56d3ec3cebbca5f4360f70f45068e843a7cc3acc586d84e0fb83

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.514-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6905ca00a6ad66b3d2eee2beeff326bf2c1f68c7ae1d8b6aef11f3f4ad94ebe0
MD5 bc41a44aca0abcf743b363c29df05736
BLAKE2b-256 29b9614eb85c67137784325f315549a088410c8e0919aa78d1e19bd65af273be

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