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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.120-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.120-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.120-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.120-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 33a4e16a97e607af8e89bf9d61182df2500922e1809a2131891dbc37ff20525f
MD5 68b0ed125be9d300e81893a4485480de
BLAKE2b-256 6a21446d9f08452a6fae741f5b145fd9191f54332129b441dbd00dd0085dee6a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.120-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.120-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d948a2ade67ea30beddda19ad4973de5b15be686747cce1e4428d39269adf943
MD5 19e149194a4c6a7cbf613ab843b0d432
BLAKE2b-256 016d8aa07f6c287af8d23fd7352b983f77363f2406f33db82eae0595d039a76a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.120-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.120-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bc00f1f1939d0b09d52c41ed77dd27b2e4f14559a56e8a1d7704f97a69e09b2a
MD5 6aabed7ceb8d0f848fba775bb8b3c0ca
BLAKE2b-256 c19273dd711938aabcbc7b829ca00c3b9fafcb23c7341b78e25744ad14221f1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.120-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8127fe2c6cc4df8f677b60ef2c57174b4c2070cc2372e4a7e938aef175d7feeb
MD5 cc60fbb50f860f557bd4cf650b5ec6a2
BLAKE2b-256 e572f433047a312603588f1ab0879f62562b9c1ddcb0158f66b14d59ac6e6549

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.120-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 95531bb7344f11cfc45f1dec8576531de269320b8205fd1967e3c79150357ee7
MD5 c0a90122b84dfa09bd466d0e5a8b45bd
BLAKE2b-256 96749993ab68b37b3228b95e164932775e54d416d2d1c0b12aef9b9dcb6bd85a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.120-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.120-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1716804ab1e12241b001ceb5c4cedd9df8c6b2c016b44cb0fc47f280bc9fd0ef
MD5 9500bc5beb88c225455114cca7a71006
BLAKE2b-256 fbca9772138b043060731b2e35c6e0fd7fc2a65b5360db14bbc0b4c8ce97d6fb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.120-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.120-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b53abb540c5e70f69875cda7d7d7b9af7f24b8ac577716329c0c00f447e700a5
MD5 7c9086c87d41d51fd39c14d9c642e7e8
BLAKE2b-256 bd6018844fed240137916818ec19786d3785ede433089ae991638ac2f80a6184

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.120-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dc7b09d6959ae8cb566ce4460f22702963bbaf2db4bdd7f80408eb3d40a7efcc
MD5 cd3e2efde01b7f3f5f6b2033c9b77143
BLAKE2b-256 24ac811e25b46db3dc42d78580ab8719058b26a8adf9553258937b6d3669d794

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.120-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6f348a8286eefc97f4b22bf53ea7572258caea3668f1906c4b5560b02f1d173b
MD5 949cf1858fcff416e94a3375c7ea528d
BLAKE2b-256 727655040a19e206f9a4f677f775e49ba4acf33286e306260037623cd20e8552

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.120-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.120-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 89c24d459728f7230c9c1f439ab7d08d2badda0faf2e7c19bf0eae39d64cce4a
MD5 ec541ed6b9b56d185c7ce1bf01e09e62
BLAKE2b-256 7d7eaf6ddf5d3c365be286115e60ea57e444dcc64459b4424384ee1e627195d5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.120-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.120-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3208087267e6bfe60d9fad2bd146d615f0ceaab222a6679529a4c50fd514dc3f
MD5 38b39aeca33d4db8a15dbe98087a1061
BLAKE2b-256 7a681b752aeb663b5eda8d48a0d3e3d862155bc358e267ec93df5ea60ca0729f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.120-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bbd29c9eaecd803c4e488840741b81a102a8615cc2be2bc38cce58fa65ddde9d
MD5 67179ee491388015e7b86e4ab48f469a
BLAKE2b-256 66faa3cc2de765dbf349607ccb4345a49ea8a54e3b713afa053324b2699814f1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.120-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.120-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b7ba88b9536ad00904ca3b4dee42c03373b3d00469e6bb9e81c193abe96656cc
MD5 a13fab83b965b08df74531e5255d6499
BLAKE2b-256 7e2cfc639f51464fb56feb2d98540ecf661acaa8d900225bd318af0cc5a2e49a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.120-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.120-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 daa8420345ea7df2760df1b6a43452940303210937caa43edb102cecea658e06
MD5 1797efec15cffb54b9c1b1e63d862e12
BLAKE2b-256 f60cabfa18b0164d5508649e88f83f3f8cf4bec8086edf10cc0b1af9aaec3c84

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.120-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.120-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7b3e883d64e50276aa62c08e5c5347e501925f047fa79f5f18fdced416d31827
MD5 cc6e019a834905793f6314cefc7327ae
BLAKE2b-256 f66fa3e180bb43529af0a3a69472cfec4d778af3c6db6d6a22bb1729706f42f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.120-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 792e2badeab46b96b4e8e55c88e0c69e9bb38051ed09da18a6991a1b67a2232a
MD5 3b5ab8fd035893afb897819dd7d4a46d
BLAKE2b-256 a566b55a55b9dd02fc6cb4e84f3de489717dc81b9aa3be7f7e7294719a1994b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.120-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.120-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6fd2d36138409b43794a7e7e1e64ef4776d42d923ffc7624966c80e9eca2cd9b
MD5 8eb64fc8d8ec52c26ed5a540fe31bfd7
BLAKE2b-256 4fd125212ebffa27fdd397e38b4a0133c8c58e2158c1c75521f9305fcb12911f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.120-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.120-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b3641357f6a32f8e5c92549460e1b50323b0595c20525d534683249f3e33549f
MD5 c5eb0ae9cf33de2ef8ad06cc325ea119
BLAKE2b-256 479a90e9d7b6cb8e58b59e6aef0dbdcc9fdbc20748c513c0c9f4340cb9345923

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.120-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.120-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4a659037dbfed71a7cc81a9740b2ecd2359d8e0a67587ad557481a4a4561c317
MD5 6f2da2705501ee068a5aa648cce06c0b
BLAKE2b-256 fb1e94e3e3a548c5ef6460f362fe0c1b111d0a84a9f9e7a60aab9e20af462195

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.120-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4a38c3d849dd162c5386c5cb1752b1e2ee10cd1277547553783630f30fee8975
MD5 30904f5b10df61c06a9f22039efbbcbb
BLAKE2b-256 5e6bc075ce48367c9307fc6dd904eb664f12daeb7a89669c61ef56275edc1602

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