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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.355-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.355-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.355-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.355-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 da38560c1ca9ceea949687433e6ce39d6995b037402b48695ad2c646e67dddb3
MD5 c74d7bd7a55d605f6e324d9ca7f10a6d
BLAKE2b-256 ce2da2483b5088f599c1b218f296a6867dc98f0f6ed2e011d9cf0543a2671ce9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.355-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.355-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a60a1f31d7cd7bdaf5002e797f20df9fbe860d5198eaf1c9eee15160c919518e
MD5 b6fbacd4d4ea36e3ac2b92e081b84fc8
BLAKE2b-256 76a251bdb6a32120247284d3303312120c0ca3808a29fa648329ad928eda4959

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.355-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.355-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 92300b55a917d325074db195594860849bc5abebdb59d52e7473d99fb7779611
MD5 1d59e50128a951a8f43fe2a17f545301
BLAKE2b-256 5fc4eb18157b325856d26dc4a539ddc9ffc3968c75fd7661e7205bea3406490d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.355-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 82e0612ada2c40dbd1caa081f75ee123574c2f9babe7c3f4c57f0e84cb4f79df
MD5 a9c0b930a70b2f509202554bae9d7790
BLAKE2b-256 9ed52744eaf20230b2fdb525cd08980e84e87814750b3309c516e893978f0b92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.355-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 47d7bcb2880398812bcfb0b8e157061e2bbb3bf23998f40768919f59835d030c
MD5 8c6de5b1efb18c3fa3a23042d1bfa8c8
BLAKE2b-256 29d25ca986063d73c04d8e409d076b4871100796904d210c2e272765db6858e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.355-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.355-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 26d553df81d041149a8d28809ade43b734641729e14010497d7bec1695c762ec
MD5 755a4b2ec069e940aa01f4fccbe35aae
BLAKE2b-256 e2c9659e2cafc31746956430109746ca0cf5b8d4bf2a4039bea10526d2f045c6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.355-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.355-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 68c0cb768f13861b6845b2a94c29e6fc4c41069a90913ab402dacd90b2355ed1
MD5 8c8ed09244868feb09633691ee5238db
BLAKE2b-256 4ad13b24bd240bab4439a6976ce8c7e52a24c7243722ec21eb5e16e975a11a82

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.355-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1fd5ce928faa850619bcda76997f04ae2266eef0fb96af7202e9726548f8d918
MD5 2a80a417c8adc766e32378fbc8d3e5e8
BLAKE2b-256 e185d70c749f144c38da8700a70a9c3c2ee889bfb97d52b75971d04fe90f6961

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.355-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 97bbe7cffc734cb70c7d67d731f2a7b353bf92ecfedf1657b4d5c5e22f99c085
MD5 aeda1917f5ddd117dedfb2ab8ec8ddf9
BLAKE2b-256 7789b00cd81f3b19825588dcdcd23e6bdc0b9afd54a46c9688f9ab9b129e921e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.355-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.355-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 bcb4855bfff1b157d185bcefcbbd1db5366934e320dd34b9622ce069dd9a1a8e
MD5 e4b60d5dd335b7a85a62f17bd901d725
BLAKE2b-256 ca36667a93c11c067c679839a5a96e3be11a070cb81dd614f89cbc3ffdf6657c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.355-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.355-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5dde42c2f9ad081060fc69b876ebec21a431458a0a3a7a6e51375c61f6a93963
MD5 b3a4aadecbef5e4730ebc501bcc2927e
BLAKE2b-256 a86f43045f3af22192f81dc9ed3cc32105b184b882af48b231b7c2a2d47c0942

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.355-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d44bd8f35cc8b0d8195798899c104f68c9c315782fd6c7869ae583c43c59516c
MD5 ebfe8d7037d8550bfce16a52c34d8d30
BLAKE2b-256 ee638557511aa6b2853715be705aa296788af2cb25dd3d0ab6241db7f6a8f7d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.355-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.355-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 38617054fd7add50dee0fca6be43c303fd8318dc24406eddc199f492e8388354
MD5 87efdcede622d044038b5dc76c7e3552
BLAKE2b-256 8fa2810b20c87df0840d9156024e6b2665adc5ad6c8b8f745a51797d84db0292

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.355-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.355-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1bfab415ca6d9907bdedf9199caaff35377a03f7a2e5779349c9ef8bdb4002b0
MD5 fa174ae848dccf571201c700f62bb51c
BLAKE2b-256 0b4ddaec06a456308759c2d19d8f29c805f5028214ba16467f934b5c9b3c11e0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.355-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.355-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0c359483f881bb08ae3897990a9ea1479bc45e09010ac40bfa72cd11686e26f5
MD5 9b07e006bb3a18d906219a10d31aa18a
BLAKE2b-256 73274a096f46fec759fbe12452b66b4c53d32935e21971c961db9c9416369e67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.355-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 71ac81c7ecacba7865d51d477c872a22c695399f1ed41f146e28dbf3eb7b5418
MD5 b85c407a9119bcd2c101c925e695d42a
BLAKE2b-256 a089c6d49814f8ec5950315bbd58a13f621f4b3d3d136ce275370962b73d6165

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.355-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.355-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8290cffb75b83a2643caba133880429c43ffebbef9eeacd7bff3b8fdcd5c7902
MD5 2b72e42818bb758337926c7d7b035cd4
BLAKE2b-256 e17355b9615ad1989b10ba588843e6b3ee543e50a16be7ba8b45a0c003d94f17

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.355-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.355-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6f0aa1122f0d4cdc3f48bb7be6677d9b04a7ed0fdadb074b26f3e7e2f5737177
MD5 40656d97414cdb7e0dee1641009bef16
BLAKE2b-256 a257dc6badcdae7a5199367923f5afa4ed3aa84c14f881bd9ffa3a5ad419f350

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.355-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.355-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a19f341ce4243032d3528b4dd78b347f9b896a0f30be820a5a75a8c911064239
MD5 bdb2b381de64b99fb80c745b0dccac24
BLAKE2b-256 d7ffd9a70312460983d45cc92807c631a8658923fe8541dc594f495559d4adaa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.355-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 93a0306e9c0594d2669496a22e3068f66c43c49b5e1b5c09d5891a6858e03e43
MD5 c779a802478c86449576aaa5d97a9bff
BLAKE2b-256 097186ed873a7e7a6e070944b9db075dc97ea840074a0eab705c60b3500f9a56

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