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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.801-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.801-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.801-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.801-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e1cebf63743893eaa4ab1c80deaa0c09070a0c9c894abefc103d7aa2a9f24fa7
MD5 afee67da5ac8b89ad25f8364198df581
BLAKE2b-256 7e1822770c0bd8bcf88645dfef5f46d81b41c76ca3187e5f4624dc5e4f348baa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.801-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.801-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 bf08f5b3dd236d129013919fc7e2d3c74963717fe4f96c8a23c2ea9602a3ed42
MD5 f285883eed6b8ab4ac81661775647000
BLAKE2b-256 c95a67c32cbe98791d00d19ac216fe8e207e840007978076a42fbba8df8f05ef

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.801-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.801-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b6b82b67ebbfdfe8335ec10be79d0904c1d1e7cfcff950cbb38f658d3d821101
MD5 532c38f22528f5be1534e63a0acf464c
BLAKE2b-256 b38451764a9691f958e0f378bb6facac7f6df9aca4b3923cffc214d5c2df6b0c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.801-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bca17364179861bc45ac5808406ee43786a28cdb1b66380b364cae0948941fc7
MD5 5e8944cc9bf8d8bd04dc6326c4416750
BLAKE2b-256 8ec3663f6cbbc89bd5e9d98e2d170555091ab915b000f2c94eb3d8bc08cd4449

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.801-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a55ac16261b985a067f5d396203c0926db94b42b1522b0085a4275c91a04e274
MD5 f32c1887e714167128d44cc72827bace
BLAKE2b-256 2f5ae3791b6bbdaa7f7faba75d822e72f50dd5e5d7d7016be709634dbab0f0fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.801-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.801-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5e0f213698bf08eba34cee3d194e1e821f1148e18fcd8222a43a1af9df4298cf
MD5 e7c0ac51bc3a211e376fe7de1a1ccb23
BLAKE2b-256 d3145d221e636076a8ad4a500f2177838150033d7bff8e9a4b6bf51b4b4b65fc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.801-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.801-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f0951ca9c6dfc9bad4cf8f1e83d8d06d9e3c63886bdc79e709d4c50428713294
MD5 a8f7937f454936dcb1f41f58da3dce91
BLAKE2b-256 be150faec856e96fc913a3a07acb9be2e4332e29ca59fd77a744cd9bf183acfd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.801-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1decbd1ba794480c89951587aef5775a4388b777690c0352a5f7194cc2c9cc01
MD5 180b2d1a1dd2065342a2e6acf53fe403
BLAKE2b-256 368354438199192cd232722420dcb612ff10cc5f39fc8d043bbb6d319089ac2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.801-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 13e4252f3693a6fec8711bcb2c2b76319a0f0329385f200f66ee9955e7146555
MD5 18aa36c84c23f27f843673d5fed35607
BLAKE2b-256 8b3c8b8e1c665774ef6c2e9b9dc4aca54487906692444c396ea6103fd3ed2f78

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.801-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.801-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 00c8fb4bdc5e9f98fa5b0d0829550fd5071917127c076e4f7fe77156578e6b41
MD5 bf0f33daa41cb67c982bbe8c40575c50
BLAKE2b-256 f43763b66e63028de38603eb063b432fb443e82e987a22ddd29d7a9cca36a43e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.801-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.801-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2f56821cda2ff96b86ad1905cadaa28c3d5ebebda6eab720a808d37b951168ba
MD5 f6dced5835367dc57bcd48ff68338086
BLAKE2b-256 e0e76a01bab25af4b02bb728b54bcc573124958264a875a7ea90490a4a2d6eae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.801-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c065d6f1c973c231c43517551b0abd774c0ebdc43d95e107a727ac4a9673cab6
MD5 dc34e3981491a1f1990848202dd8b02f
BLAKE2b-256 92e70da1a3eae6831ca77d44d91754e0d087bf19939c068526c88e8c22d4e6ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.801-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.801-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 11da9b309ebefec7992718c0109fdc876624c5801eb9b8f22bc7bcdb3e949604
MD5 2f85a41b43226c31ae598b5ed428bf47
BLAKE2b-256 3cea048d658b37933289925625730a0b1d33e7d96a3653dfcfaf52c4fba3339d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.801-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.801-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 85e0b766007c89dd609bd582922cdbda55957fc43c06e8e350a44a94918a85ce
MD5 997551129bc71a32a0dd65856b44eb48
BLAKE2b-256 f88984bdfc948993fb610a431378e0c5f508230a77494e0b4ff1230586201e5e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.801-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.801-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 869db56c31b5975ce65f4762f9ba8e20fed729d6dad0ea724e648676ce6b413c
MD5 e69d7beddf1530ad97061717539c4fa6
BLAKE2b-256 9f4c37d5fd4721c5730e1e8e8722ca3a63c6137de254b29fceb7fe5e50ab7be1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.801-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f72d78145ee979fd98e340de5d90130643b48d4502033907d753a918a6bf539c
MD5 bf79ba9ad813e73f894761f357744f9f
BLAKE2b-256 83ba575aeab0e5ac6e9dffe73a0454b2df276bb13cbddf6bc8b646cf4445d91e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.801-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.801-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 77b195fb87e2f336a8ca4c2902ff992b6a0989da5852bb2d5d45c96a7898719b
MD5 eacc7c5b88664a476ebd8ebbcdc1da13
BLAKE2b-256 c3fa82de1aa3d84725a0f391623acf26a1a5059274370dd17634e0c1aff9b365

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.801-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.801-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b20a6b45c6a6b02733ad3170d564b6d88ab5641c907754f8d7295ce1f239cd59
MD5 ccc3af45f831ec878c7422e320f0b7f8
BLAKE2b-256 87faba06de8ce818e9d6928ed1f58eeb4f376f0430b8e6c5a7680a4ec3a27052

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.801-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.801-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0b656314c7ec4907f865720bcd71ba4210a0fe26ccd29799138b381649512a14
MD5 bdb44c7b07a59a8a9952e3f253759ef3
BLAKE2b-256 bd1cfa8c016da2cd0f3b51c8e1e4ab1f34f17f67b6ceb7420f4316059bf5200b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.801-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6017ab22b50dc8ed2271d7c3bb3b55952bd80a004fd6cb3667d01d05a8011e11
MD5 33e0c398a66130affb6a3def721d22bd
BLAKE2b-256 084b1b1386bb215c0bff3ccd6f006e2f6ff189c742f8dfc9ed11b9d25ec64ef0

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