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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.16-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.16-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.16-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.16-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.16-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a386a2bb18f028d72c7c4f718baedeccef0a5ad1491b08eddaa67ea878edbd96
MD5 91d60b60016a027fb2467e7c5eb903f8
BLAKE2b-256 7e0d458bc219967165405c3a65ece0b5da3c3fce1479b09f8389e058e1201543

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.16-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.16-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 40bd09eefc69fe249295db8bfa12be613e38c6abcaf14345b22d26b3c238dab0
MD5 a65bd21322dd21e660c9743280eaabc3
BLAKE2b-256 66573526d841643a454b9211c0e1ed69e11c23cd1a7d84c97dd0e123b9946087

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.16-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.16-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 877073530a0bec159ef35771180cfa47bc6813a302d3558726b1dc16b29c4591
MD5 b0a2a42de617b4179bdd7a873e363a48
BLAKE2b-256 fb24cfe485832d2c52ff2e6a0881ebb57ea4d34a01aff0108a22ac61bf7613bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.16-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 164f10b35367bdaf08ad76d9237f98c4be58e14ab261ec2738c0c3dac9d9b719
MD5 e4cf5e81b6f05f3aae192e7c37086536
BLAKE2b-256 3712d0991b1af47fcd20899d3f2e742cd28f28ad4bf3d65ad086bdd3631ca825

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.16-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.16-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 62537814122860d9f4f24b4a5761ae37ed0e56604d15f914cf4c16f97159fd3b
MD5 d02fc73f887df975195ac3a079a8b4e2
BLAKE2b-256 a8563eb6912445c7f7424915f65b0c79a661333f6b9ae60f91c6cf003df4e308

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.16-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.16-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5c5f5cb09b98cd9871554e3b48d2384e2e30d6919ab1d5ade3e5d171616d4a91
MD5 fc09ce09c1dd88aaa6f8c9f1f9b359b6
BLAKE2b-256 eaf30084ae252aed5b4b5809c996aceee90d9ce54c2b3fb4c065dd0524a50f85

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.16-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.16-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3b8f39953ceb073a3d868fbc9ff70fff2422a282c986fa8578f86b58e7c0ee5c
MD5 01e257d2b039a768e86de35f482f47aa
BLAKE2b-256 365a3b8f04b354474ead8261c250824a37f599c37c0df82d26139d06058fb9f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.16-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 81b20ea0b40e9b7bdf5456928e58046a7517ce275cdf2209feaa15b940029d19
MD5 8bb1482b7edb95936adc1e8a9410d4ae
BLAKE2b-256 dd11d3dc502ee5479a6ae604731ddddbf0b39dfb4aed06b4b0f24bb8b9725413

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.16-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.16-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 eaa906887abca9a39db515ea0e96074abc611da22e646e28dd6afd0453e7f9b1
MD5 e668a415d2465f51e6fe882ab54240e7
BLAKE2b-256 fe47150dd93d8b950f3e5b7b5c5b5cfc6e1d4ce0a8e001ac4409825eada9c9f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.16-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.16-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6ffc0994848eff86e3da7728528eb2b54db3ca35e1a5757ad632c96a3017e827
MD5 20904f9415d5109f7732d5d6fb455a7b
BLAKE2b-256 54e2758e442430ecafa90b38c70d7fdaa1e2b83e744260775c40fb60ea4dabf1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.16-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.16-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6d2f58eaf8fd5e03450639911b4bef510e6d0ff4b78d466e790f69526efb68e4
MD5 3f36923f6dda5b76cd840c502bc41aa7
BLAKE2b-256 f3544372367ee3e8c82764663551bd6e918ce1e584850a0e2824f7eb5899cda1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.16-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9e6d3cd6a44b9478bf622e87703cddbb098e70ffd8aa82094e41384fe5f64448
MD5 d617d057f6145bc17b36f4cd885aa97f
BLAKE2b-256 e560b24b434a07f4e5e10810c658caed0d1ed302c922e350b28272dacf7a28a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.16-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.16-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 776b72268d44bab112431b2d408fc85e61748b03946aca97aa3886582cfdd8e8
MD5 6735218a1d1f1982bf9d9e28c1673fbf
BLAKE2b-256 fb5f80db49695b818e8f08d3b0ad0eeea21d03a24f481c598d58db79b26bbb6f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.16-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.16-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2af215e59359f368202a229335fa547de521f3dd80a43131c59ddb8436735c2c
MD5 d41d64cc321e37d4f1f406194f0d0447
BLAKE2b-256 3822a1e89d3c2ea255f4a37bf9edeadeda77672177260f905286ef4a318bcef5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.16-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.16-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 19fda618cdae8771ca984b91aba8082258f3444af83295780221884b4150509d
MD5 cd3c9eb85c582d84b56b2d42ecad083c
BLAKE2b-256 cdf85312bfdbeb00ba8bd44ebeb5a60e3df931024889791a280ba0bc3110871b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.16-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 891b3160b86133e9a86116736612a4ce314d5269d5ff70316dca225a873d8e72
MD5 617aa31e911e995dc1d32c4d752a1a37
BLAKE2b-256 d02eb8ac7e6e901109191470e33de4a24fe7981c359240898c6c953f6921ce29

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.16-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.16-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4d9456f8b1efeb43efdb553149646a7945a315ece6a7fef41236ea91658ca905
MD5 3fa23e03a45e6e097513ea7906b1c78d
BLAKE2b-256 03b59312bf1f8d6c00309f963bbd6cdf2d6a7673ec50fa1d8ec87755412d6fe2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.16-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.16-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 11f31d98d0ecea98a69e8d8c8e3647374395417d2e42b1f9177e2e9f4e7355cf
MD5 6e71b47818a8f80ae5143a8b7f6a530a
BLAKE2b-256 48890100d4f50f5e1b7cc1c33d454cd88f21f7b0bb18a1077623aae4a288f020

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.16-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.16-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2b87680a7148f958c857f068292acfccc5474035190bf90588724cd4e913efae
MD5 f57e4b639e68385e4f82c9a1c35674f1
BLAKE2b-256 c262d3a5aa48d4e973943b412c77b7bbe693a9bc6afec5faeb955b7022559beb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.16-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 03f2ff9a1be5fcce6c3a8bf9949c278b0912ca9fb31695c2ae762eb0b778f988
MD5 96e643e653e885e52e4efe28796de01a
BLAKE2b-256 91659ea479381e2e67db87c358752a7dbc8d64459394cf1c04036c15375cdfe8

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