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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.456-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.456-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.456-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.456-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 eb007903a3b052bf891528041f53753d58e68352c7750e41b3a208e035443e1c
MD5 6914d3f2180eb3f71987527f42015078
BLAKE2b-256 39e4f614d95ba153f4f156b0447d421d2c2a85b710a80cc9a8bffc3e5940c843

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.456-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.456-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4228f2cd2d70ab58d89e333e5e4ebde38a1492b498792aeaf048d070a5dccbdb
MD5 58161087633ca992b66802aab64a4674
BLAKE2b-256 fe00638ebe7c6fc0f4bd84a7e3cd44ee6030c08ccc0a4aa6f2218b37f4fcaea1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.456-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.456-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ad93233a90c2569673c39618bb969f049edd4d319fb194af9bb7abfc55c2d5cb
MD5 eb58d1c78ebe979fbbcfb0016fe0b069
BLAKE2b-256 e5a5b33771b3dc92c09367877e98f0ee9bca6841d4716da03aff04ad3c487c8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.456-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8131546715523fe9aa2e1fece981a22c7da5db9803f84ce620ef6cf1c72a6812
MD5 de50a3be51120c222cbc205b2bff32d7
BLAKE2b-256 1136f6dc98e13a1db7546d5402afbcc953e7b7437835dcdda15d32ba86a38a28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.456-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 85fbe47198c47f40e20791f65c25bf0db46fb45d91aceb30dca8b067e8cc5cee
MD5 0fdc294c72abb6c27b0ef671d1035499
BLAKE2b-256 f9984c7972b3a07dd5b10cc700fae33f241860f4d1e5eef4c1642d2f78215577

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.456-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.456-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 57bfb0d2ae34997d12a5c7c6b6ba3b405f6199ad9488409d3029cf53c9f81357
MD5 8bbfda69511017a276f46cd718fa998f
BLAKE2b-256 19a82a3d3a45a7eb8ac3a502a9e16cc975af6763d4f5c6bde29123efdd7ce439

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.456-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.456-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 320aae7bb7f2c2d04a159006250cf5723fddaffaccf765aff4a7552a096ede99
MD5 b985beb7e78f20ac3b971a5781c5fa6b
BLAKE2b-256 a5657763c97a27218f01c94f376aa580f336613b671465c92bd994bd9dbe05b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.456-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3c857986fef879e9af84366645d35c4816e0694115b94bc89d3e7a58a29c367e
MD5 100f6b62b24c4b822938484e6e15779b
BLAKE2b-256 9562bf6ce8526a67834106338e115ff82bcb40c162cf85158d40dc1a6846e1f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.456-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 aa6e05dcdb4f64f93acacc675ff77236f8a86d02e41e41d7bfdf92aa17653bf8
MD5 91bac5179a2eb16eb8d43c1ba28a2e74
BLAKE2b-256 756727586410316b2fe7a85a7bf078f5a590bbbb200db20514944426aa865a8f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.456-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.456-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 92f209dc76920a93b37258870a85074efebc28419128b080ea39ce8df40dfcfd
MD5 a24b9cadc986ce70cd63d5f5700dc502
BLAKE2b-256 3de3de4c2fcd153bb191259f9730cde8fa1dfc4aede7494dec05554b83efb46f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.456-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.456-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 62a62bbef0087306aabb7e910336f847970613b547a01d937e33915e22832af7
MD5 87cc83a394cf9001cb8dca6f077a67c4
BLAKE2b-256 c8e2ef3406ffa05ce99037c971cc540d70a6b2e15ee92f5360960ad8a14a0b3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.456-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ba87a4e2b7cdede278255c261e61ebecbf73e0a85656adeb942760623de5b7d2
MD5 9960beedf90ba5e458424ac1a22f5a9b
BLAKE2b-256 7d8a6ab02e797231769a3c56adb184b2fffbb33051e724cfa82cb930baf9a23f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.456-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.456-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 03f84f97cc4c96ac9c0e45cac5e6574b4955fc718237589d77b44f5c877aa826
MD5 245799354c85c1f762bb0de90a23730e
BLAKE2b-256 30060c5e925ce2cedf20d477db073bcac267bc734bd1dfd2de8607d14e0591c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.456-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.456-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1459c1f5e873f946cef4be25f34bcb50bc3546c01e25edd15d427ec1d20d94b3
MD5 b9d977db6563c6e5bb4daab238cd2c02
BLAKE2b-256 178e31aa1e6992bdd7e667cab6abfe5bf570b024bdf6a133024129cfe8951a5a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.456-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.456-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 06fbd030bbca535cce5d93b9c3dc34c4df86a239ef78797076574ddc6c9e634e
MD5 088c1fc29610727fdd69cb1c30586d44
BLAKE2b-256 adc2f68f479011f59aa266254eca76f69706b8dbfdf8ab5321c6b2f5022c3fb0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.456-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 79e0d009b41da18210389d9d2a5cd9f2e8a57ab94e059691e7e378df3b08a408
MD5 d3dc42d3b1d1932a1ee8d73e20a8861b
BLAKE2b-256 e9589d54aa0ed8f4bcf6eec9056960fd8bb5399dde715f1e4b1fb9ad942b508e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.456-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.456-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 da32e944d52449ad0a906f56fb9669911dc1e3bdf053a0644848032e5274480f
MD5 63d87a01c320b82df59d7e8543d18bb3
BLAKE2b-256 f81b02d76547f495119f9e1c2030188f840faa0fa4cd0fbe576dd3b0297f0c77

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.456-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.456-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1a2ca821b44a79e35d17ff2b42e39a6effbc0ae8112d16f4cfcb5a6d65a40673
MD5 abec5af914e8f38802c3e35e1bf328c6
BLAKE2b-256 763f9518cb23d4c8743e717558d006d590bf5ad07f2e126e85ff02f0ae1e58f6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.456-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.456-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3eb9e7b3cb256c1c482e077217667837fefa4092f8c30c368ffb195fc4d64df2
MD5 82a69b6771a9a0a2700d1908bd5d4bfd
BLAKE2b-256 084ca8162547684f02544cabfd6004632266b8c410f930207f3a8e08b567dec6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.456-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a908cae2bdd2b19e1b07dd94c4dbec516b7eef3542356fc47f8485d49dcd3216
MD5 2891e1ed54edd23aae696f47bb933683
BLAKE2b-256 573c759e8c080545702beb6821bbe26e1bb8048407752d9e51059bc2c46b8f20

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