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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.348-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.348-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.348-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.348-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0ec69fb7d32ddaade7c7f6889180ce94224e6f3af4fc0ec44fc4d8e0bcd2d053
MD5 4ee6d2751f5c6c735e5883f711b3fbba
BLAKE2b-256 b9262072b5feeb24f0fb6e256ab95a9731546986df3a3dd370d1e74914a9a714

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.348-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.348-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 aeeaf8255926e172409bd052a36748519bcff23bc24241e43e0ae0055a96c57d
MD5 36fa765dac384d3360387e5ffcbc695a
BLAKE2b-256 692dbb184eb15ef2ec822d10029bc72ebf173c05daa82312aa9c9d34d439a449

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.348-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.348-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e4ab44984d10fed22f765243ad2802688f155dc975b00954724d63addcf999c9
MD5 0a67dc4753dea3d1b2e2d9ea24674399
BLAKE2b-256 f668192ab243fb12a7174c9a8a94e57333338e86d4e7853a43602f7f15e8d05e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.348-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 771528be7ee0a375fe83ef7216d21698058836d974b1109abb27806b1783ef50
MD5 336d099fa56ec2e2dfdaf49d6d703ebb
BLAKE2b-256 58fe466cb07745131f742132a8724dd14b6e217c03a285b0abd116d795645052

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.348-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 52a1a13f453de48102940d65beb6e32991ab0d40b1b9eab289fbeaf16976ca9f
MD5 b891d9cf7325fe6a494e53cdfca2a16e
BLAKE2b-256 fd616793baf30b3f80bef218a7f7da390e95a4abd3e7bb2a885fed3941ba6d06

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.348-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.348-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 57b8b2b94a021808d523d9f578f21e9a3c74c766a55aca7779f50fc4707c5855
MD5 b841f29f5544bb49a7cac2d64a59136e
BLAKE2b-256 e32e9417e40ebed2630c6fae1b4edc3d2c92f1e6b662fa5c2df64445cff052a1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.348-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.348-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cabc67b23925b6b0b57a50aca920d3a341c9f6e2dce84fae344de7f60316c24f
MD5 715561445352848d1faf12fc5db4b5fd
BLAKE2b-256 f5c1ac8cd139cd771cc801ab8abc32c21c5aabf3fb92097903cdc689347bf268

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.348-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b1cdd0e27f13f181dc709384a33cbd9097323dd5986199b7533a6ae3cc931dbb
MD5 1460bb2322d912000d1ff26f31305233
BLAKE2b-256 d934064f7c268e3e52b003fe458f4387a8472c297abc9f11f5d7521da5d1afcd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.348-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2f38e55b4a7d6a6ef68ce37b16902c923af8d323a098d0134af3d9096b6337d6
MD5 a04a95059c415f5edbd3637f5683ec59
BLAKE2b-256 2717576929ef6b1f9262cf92dc264ae975b9529f6bba37ebe68108a03491d4c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.348-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.348-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e5195518dd98286895a51aef1bb6f132201025f4da7fba27d71d1c9604046b99
MD5 1d5c7625cd706157f68d6beeacbd480e
BLAKE2b-256 3f753705958ec543195dc28d061e02c1087ea4d8f8ed0d5172e99808ee262b7f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.348-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.348-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 849d5e9e6430040b8eaf99ac79276bbccb5a84c807b86782cdfb3c7c6851a125
MD5 71aa3fed0014a3bb1d7551b3196d693f
BLAKE2b-256 56b0140725d33884cd4e21381f1fa003163e2da7f00491039c702e330b9eaae9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.348-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d460146abf19e59b50f795fdaad97ebff8cfb87a01bc17e48813f53a4e3f0bd6
MD5 b0597341c505f21d7a69125de5f34145
BLAKE2b-256 26770338f749afff843eeded4cbbd10bb3e01c3183b1a176f2164d759d1f2fb8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.348-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.348-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b3a062127636d331d6dcc38bf2de2bc1379b46612d85f70a51e69c33235f8a51
MD5 2caf9b3c5b55cc7db02a19010ace20d5
BLAKE2b-256 fe1c01b615303ff5ed511d5df556880c962b3d6366a8872c06cd6a5cc4259567

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.348-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.348-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 98f7e956bb32f95c37e9878059c8028513293479ec9e3eceaf2ca2ca3f9fdf16
MD5 829f06262ba56f3c9e39affb6454e424
BLAKE2b-256 d4dc1fc6765a12b13f2830b7c9db505155738a274b15a83519b13e465aeef00d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.348-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.348-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e8e43805019c9394eaa6cc01e93a5e079e8da69b45ab7e19f988a910905b252d
MD5 6e9ee10ce582d2cbefe9cb69019b7eb2
BLAKE2b-256 4381d0803f1d3651304e702cfde5fd341affd761f9f2571cea849a09a100c933

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.348-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ab65b4c615846875471dc6455b0c256e80fe7d6027274480022ff18dc94b5011
MD5 1bb6ceb09ffcdedc2df57e8a7bb58ad9
BLAKE2b-256 0f4aed85d30e8b95a7b95be701f1a7bcff8e3feb80c48c1c948586ca882fdbc8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.348-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.348-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ad2453698cf8ea8457b13e71ace09fa84f8fec2c352b3f210fa0102bcacb91dd
MD5 0ec412813eca8e76d2af415b80c64801
BLAKE2b-256 742b40506c63770ef3a7b85492952cfdc2796eac755e20a724ae5ca27c31ff17

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.348-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.348-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 43abe0a49ad6c2ce169836e98381f602ec8a67830523bbcc770bde6aed0b95e3
MD5 8ebd82d6e7d70c29a826421ab1dc06b9
BLAKE2b-256 d84e2c1b7ed22a60c37905e26516eb9253528276e2edaa54d628c0c60bc2d4d9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.348-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.348-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3d3ac404ed56b6d8f78c7fb289f07ac5e04014457b9fd1d5d1b29b6a6f96ef9b
MD5 879f65965fbb10939416d306e214e3a3
BLAKE2b-256 11e697bde0724901e1b37438aca311ea0a1add8699590e8b0a82697854ba55d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.348-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 09b63b9979087b113bf875e7249f93a71c3ddb4b646cb963c0aba3a8a42b310d
MD5 6c577614f7ba7bb35c41420994ce678e
BLAKE2b-256 7ab0814264d5501a21b8e347b0f4eb6dbcc730a585d7f6dc8077c1f84a66974f

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