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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.270-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.270-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.270-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.270-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e6eb533da31fdb355621b2481cba1a813f53e31ba3c776c49c2b44c37e124745
MD5 ea84004aab9533907d048ee0fe0c3d82
BLAKE2b-256 772388a594adc9327519c3ccc38ca6b896a9d2d44032d0c23fc6714f98d70ec8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.270-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.270-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 750f438fd99e3d7d41b645abd6de96974e11bef933b53568a785462b39a81e13
MD5 40bc9a03dfafb001a3bf83144572c0a9
BLAKE2b-256 7f9b838850643b140a10b5d1d6e1f0eabbf34b3dc0a2743e642c78f3efe1bb3c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.270-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.270-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 17633353e520df6a66b84f9b299acde1f8269310db786a85f76c3b1dc7dddfa5
MD5 01a416fcd75ec9afd328d5c2e82aae33
BLAKE2b-256 a7a594e97e0fdd7ef54becb5c560f23987ade04cb2b3e9cf9ad56cf47b1aede2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.270-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fb6a357fcf683cd2f165dee041c8a4d4b9b5f7b81e25ccd2a14c34c0a9190b57
MD5 4b50af79d9a33c31fa6bd2c6b675c696
BLAKE2b-256 56e09c7ad632b193342f24c561787efaafad55aac5b07aabef0d5f61fc737e98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.270-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4d594b45334029110c050357cd13c9ad57f91f8ccc9060912d8221e4d4b31493
MD5 79aef53abcaca5329f8c87c854d8fe45
BLAKE2b-256 f85c82731f04b1af9ac1074c83796ddd7ae5d76319ddc6e6addde4a56b89630c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.270-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.270-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d71601ba0b40358c89f52788974858ca061bf23f6513162bef50850a02749b28
MD5 1206f5bb6856e59d18b5929f7d28086b
BLAKE2b-256 0ac99967f039aaaea8d87bcc6ef2c848469465e63283199ca0263b4c49723db4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.270-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.270-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 084653e9d0116158e994bd6612be90ef43b126c8106959e0c47a7f2cbddff884
MD5 31cdbca131864cce53cca2bab5bd9c5b
BLAKE2b-256 3f77c20d2da3da99b28fd330253689d4ed2fa351f79baf55655ca40a364b66cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.270-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 82a6351f7bd3d4d983767c3997206fa690b62a9332efde69f8f4e33d5d3c729b
MD5 ce65c4ef565755f33594980c10b729a8
BLAKE2b-256 b24f78af5b52fc244a41554c094cab743051757273cb1be3c38d6615ab480cb0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.270-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c6f6611ab0c73d4f24dcdf5abb8839ae51203aeb57efe0e3d7f4afb15160157d
MD5 5f25ed4a2a29daabf27469b4eb6055b6
BLAKE2b-256 fb6a339f970a78552a23f3ebae0542cb41bfe1893a1b81b3f437b15eaf24c99a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.270-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.270-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 20951cdd8a94bbf17834a228f777c1b222975b8e1cee9e6eb3c5b6b400a806ab
MD5 20bd65ecd94062c3595f0e7177e4f1e2
BLAKE2b-256 9076a004fa17d96d00eedc158bae196dff3852a026ae4365411ae074c56e9c07

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.270-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.270-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4680d3bd64b21f683990ccc87edebaee180c8b74e9c064b9dcabb98da14e2266
MD5 82103cee2bffeb20b823cd8c235cf16b
BLAKE2b-256 577a71214a1b9d891d09bca3ffbd6cf409c3108712eaba5c8d579156fc507080

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.270-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 209f7bc2de231212edeb92d56def4f027a35f31e3aa989d9c8235d5142597407
MD5 94314df067f662f02db846ddeca16635
BLAKE2b-256 a39afdd1e9261314af97c52318d417089942b4fcef9849740b3e2d6c2a830c58

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.270-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.270-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 912568525efcc4590e57951b7b907275fea7ff7ea324d31f02ba0318b47ccadb
MD5 05bec2589951822c9af10e6684bbbcdf
BLAKE2b-256 bedc5e41119512b60a130f7347f5a09cde6b4a2b72ab079f1bedcda7da6b7a56

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.270-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.270-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 746e1d533f314b8cb148f672661ee3f9b67db82dcf53b9a38b7b6aa3dc17e730
MD5 3f8ebea0b498b264b460a3ce168c4cca
BLAKE2b-256 198d6bb433e149775cf3d518562787796838297a5081d275a8b0c7311be23249

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.270-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.270-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7b7240a7241afa0cd694752784136ab577dd03c673e92e132cfd57f6dcdd0231
MD5 cb663aca655d2667ba58064c66fbb2ca
BLAKE2b-256 bd10d95581bfd36820d04e7f82119e6d7e26d2c16f072e5f26fcfd450c702a64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.270-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 63cb3812488953b50654b7e6999f074c8c3352809c8f882bf9210fe7763be56d
MD5 181cc3c80f2f92cec6aa4a42b20dfab9
BLAKE2b-256 f611f182b27a08664a84b6fa56d8e33aa412dda9f3dcc14e2bf9a8bd3faec813

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.270-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.270-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 fc755d5958d6a0ae9aea3c0998c0aa581129d713290270a859f585287e2a4616
MD5 889db600c789e4e7eb8525715efff032
BLAKE2b-256 405e0166ef4f36201f964708a68c3666c823265645b2eb00aa425c1515c9c285

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.270-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.270-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ffcce1eecc5f87b204a472c3076736046adac49c3920eebd961090c5329233e8
MD5 23aca526cfbccad2ac3bd01b30d2f9cf
BLAKE2b-256 05db5a3c98d014f1725736719d2efcbcb09440706bf653143e0bf4c3af43923c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.270-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.270-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4885c9288b1f40851d42fcf24397823d794ea253413036b71c125f5def46a235
MD5 dfef2088d4c4d9fbb9fe035a846b4c18
BLAKE2b-256 2f26e69a1faf67983a982e6e17bf3d61eb17d681165935813fa4dc4ddedf82d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.270-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c8072ae647e8842586c89ac5de26117a536919e5ad67758ede3d3990429a49d1
MD5 90971b65fed80e80476b443564918f88
BLAKE2b-256 e6e6ef952bf80daedab0f00322da1e3b150c5105205253703fd37d10cc5ca962

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