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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.76-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.76-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.76-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.76-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.76-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.76-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.76-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 14c2bad9fa7dac21fb9aac1bc21161b6c221439e34e7a7534f246a3f5b163647
MD5 31820c9d4e6487ee151e786b9b3c0163
BLAKE2b-256 e50c353b1a40b7df15eca063bed659de2b7dcadb178ee8824cf705afc932a050

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.76-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.76-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a22385dd470bf549bff158843e7b483ae54b6fe30992052b9cc33df4c9efe8ed
MD5 b5911f560ab8aca4c13ba29eba45870a
BLAKE2b-256 a6941185faa19e891be7738f33804fc1df7feb4527877be1000273e83047bd11

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.76-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.76-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 91f15a62f3672dea9b2e3a810951c64b75be8d4ad22551bb1f384a27a64e3ed3
MD5 60a6dbc335737e7c619d0e3f8ecbe04d
BLAKE2b-256 7022553beb9ad517e05962dd8fd07c03d2cc267fc2030e22127b6658722d2d9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.76-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d361c616c4a39fb5b47c6c46d43e8c2cef5953379ea25d44bb3bb6ae8911440e
MD5 7390a9a10c6416f62e771a180a3229bb
BLAKE2b-256 9b61eb38331dad1de9958710663d23482d84c0073ea607884b65f385a47e3b7d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.76-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.76-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0dfd7bd9f0d86f1d4a888e06a82093e5fa0a1731e73ceeaef1212c5cbe418c9a
MD5 ec33edfb18f8ad3f42b07172170e0cf1
BLAKE2b-256 9e7743c97ed44e184f2ef26c89a3f49d5dac6ded0b9aa28cf67b4451958fcdf1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.76-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.76-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4d6ee2da76d8b2650e397a2c2ef2d41fce3a6c02fd463452406941e63cfcd334
MD5 0c1460fcf665c4a9d9328a01e901cb65
BLAKE2b-256 2a7d262b3fa953beb869a8d184d1d6e7f4640abb750d5317f6a01d3b3330713d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.76-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.76-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3bc1c6f1d2b27d5dd2ae51e4f4d719c73f833c0c287753f8b09a233915e0c5f5
MD5 5c11ccefdd2e302604549dec40a4a612
BLAKE2b-256 521640aec68ad8602b904d7c13b4f390c56f86c3847dfabfaba08926b4bce432

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.76-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 58e0667ee1f377463036bb73efe78c45f9b8b58cc8f287f26501b6a67adee3cb
MD5 47c1a1a3220b953ad72e14544da8f8da
BLAKE2b-256 21a6d7f211922e4e3cd8cbb8ac5d516e230790eb05b2ec60bdb246ff866e59e2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.76-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.76-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d44cb05db72088b227cd2e337a771e7e4832c3631b032cf2e5e33681b6d967e7
MD5 8ea6f97240c7baf15f6130cff498e98a
BLAKE2b-256 4a7221f1e9b133034fdee1f1c31a5b640068ca3f22b968fe0edd1885bf27ae90

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.76-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.76-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 668e8ceb3a2a5e19695733d93952ce8fa76bc4d3930562392ddba430afc2112e
MD5 ced66f49f7f22bbc256d522e7f3be981
BLAKE2b-256 f5193cfba66480ed20e432ebd2e79e2bc980a02bf8cc299ae49e91bf1466a183

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.76-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.76-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 93af00a949521a2dc9208eece2862ed84b3fa7cee22ee5dcd5b89ca728c4d79c
MD5 22fd9247a017f05c7de53a7292220c5c
BLAKE2b-256 7574239b7f0a498f832b62ea222c4dbc5f7d95e64307b774ddfad7174307e6c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.76-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 45f9fa02c036a3cd1d1d16c21f6ce4ff227fd419d74069b5a941c9e241d4dbe7
MD5 975ea6b2cba7474880a5be54e8fbaca6
BLAKE2b-256 0ec5e53eb9cb2a540f131002a60d50646e0dffcfa99084b348b2b7066c6fce12

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.76-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.76-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c7cb8c5d979742364cb639ff0ae8fdc67007771d97a2d14a3d499f5d9a353bee
MD5 f7902624b28b938224f112b6a667769f
BLAKE2b-256 991b149519b2ce5e2ef173554130d99be83ccca2850a633ee13dee7b7a1011c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.76-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.76-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 81d802ef6b8f3ff1f286ee0d6763d124e94e9bcce89b45ddcaf8bea4c984769c
MD5 0567a4601d7b97de53baacd37ac597a3
BLAKE2b-256 d2a0c764ac7b7323966387c412efc318b1a4d3a4c57055d91b2aee8ba07f3f43

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.76-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.76-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 226ee8a2bd628437ed1eacb4fe86ffbed2e81693855d0c4f6225691557d41b20
MD5 658ce54ddb71ed1c9d379807e036d930
BLAKE2b-256 b5ef8d308d0e32eee868d912aa5751ec508d07e31dcab8cbe84691f48ae62c2f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.76-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 67c20665b38b7c4f5830e8a6d05f714ed7429f8538abfd9f6abfb30d04019e0e
MD5 c57eea5088d38c037f7ccfc622d47ff8
BLAKE2b-256 7b651eb6c591f4a5e15194734612225babb921e5ad245423d8213d096f4bffa1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.76-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.76-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 374e9e86df30a7a83f253ae5bdef045753755abb371de6f3085ccf510c4a09d4
MD5 7e873871664707f2ccb75eb5f83dffd8
BLAKE2b-256 3a184399acf4f4906ab8a74ae40119e3fe84bdb2faab667338406ea8617a17c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.76-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.76-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6ff2afb1770847e6e92fbf1507cfa48c15206194ca746e4ee1b1955e8deb4a8b
MD5 93f35a80bb68b1ca629b7fc4d96ad69e
BLAKE2b-256 e705d1d95f0b741456b5523401ba4e0c009ee6fed22ad9eb7d238f961cacae83

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.76-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.76-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8c6c701cdb858394125390856eca6b843e38d9d1bd3704d715584ba5a8835761
MD5 5631fb3b39f0ff89f134c3b0f7cc17ed
BLAKE2b-256 02916f5587fc59fdc28eb3b6051d09f3a1dca3197b0cb27fd86c9de309b00a0f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.76-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9e6840c09e04c4db599082f7d1038c157474ecf755d8f3315b93cd7a342b0153
MD5 e23ae8a89a4cd263239544b1ec65b162
BLAKE2b-256 968c753a44a6a5f0afcc6da4bdd6ba75be61231df4e3f3dad30c0f4c19e214ca

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