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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.701-cp39-cp39-win32.whl (116.1 kB view details)

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.701-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.701-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.701-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.701-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b7c7a1056eebe36ad8f45e2acfe95cfa0873849c2207c40272785edcfdd03349
MD5 f1d8995929f20e137a0cc2da9f7c9e7b
BLAKE2b-256 2d90e72245e62785983c589bc6bf2543eaaedb7a49a348c59bf2e842c91a565a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.701-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.701-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f75120ee02fce2a595bc20587783c6f8d527bcdbffa24a25628f98c1d5c158a9
MD5 a61ccb7e982cd57f48801b0f285a1090
BLAKE2b-256 2ec8ad475d16c62b06566dde80410dd6f3111846294f2a78a3479d04c2a36faa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.701-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.701-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d69a29097b198b5f649260495d8b62ccce582497dcc446ba6ee2632d582973b4
MD5 7a937ef4ff606f5cee8c124e83c76a44
BLAKE2b-256 0230e331de95a136d399ce55a17e4fe6977ad02d074ce822ee01addc605d0487

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.701-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e7a48c2cebe92a53c0a80bb3f2aad79b7bab88bb5e406c9a5d2ed0e1fc109135
MD5 2ba5016d2865181b70f2999861a10550
BLAKE2b-256 f03541279c6118305754f74adef474d0c9494f5b14a078aa5d39ee9afbce8c86

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.701-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 15fdbb8edd9a2c9e407c86fd1d85d35d395bc75ce8a1a9510297877cf534dfd5
MD5 19fffaf47ffe9edb32a90db6900c0c4e
BLAKE2b-256 de4800adc041fa619bcc91d445def581884b46f5711363bc881affb8d9b68112

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.701-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.701-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 fc3c972495c9ab127306886cdb63ef623e234a56a6ff64c358f7e6fd27f8cc7f
MD5 f144985e387f2c01d1625f919fda21b1
BLAKE2b-256 675bff5dc8910af26657366899076cd51438cecc8daa53211bdb53b14b55670a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.701-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.701-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8c924922d303d7cfb1379a93060566b058dbe9d8d9612e5cdbc512e7314faf8a
MD5 7fdcab90139fa0167ed29ee8cbf2ea35
BLAKE2b-256 c05491c581786d6fc5e73f8cc5ad35e801e959f111d0166418ba7117dc4a5bbf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.701-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 313008a2b5852c0f81fe22d72516fc097608c252ae268cdd0b2e89618b89167b
MD5 ff4d26052e7a6c3480c43e7751df4b1d
BLAKE2b-256 59d1d85aae8439578b96f49f566858c31a98b53ec15abf01be4d94422eb3fb56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.701-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3f719329655cf2617e84a13e4f06883cdbb41dafacc421937896a5afe1086c85
MD5 cb7c36b78d66bfc0d05b95b3d1af3646
BLAKE2b-256 09b45ed873d763c093bb1acdac033a57073935384361a669124e8a1159a78a11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.701-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.701-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0221149521e88f6a7fb54f0b9d49f5b6dd159eb3e213799f89cbd6b037ae7555
MD5 c7faacc4f74f58b81e2456fe63b7872d
BLAKE2b-256 d4948ee7e5ac035fd0f7cade79c44f2f77d81f261ee705ed36287d6ad3b26c5e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.701-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.701-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7a4a7ec818390618a3bc51efcbf5f8da1f6aa4553c135eb53da98438d5205946
MD5 becafed459dc0328909958c452d2441e
BLAKE2b-256 1d91998a6e129cb2535ad9bce256471349404fe797a62b01b9e36e2fbc800e60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.701-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 66d08034c529239a753c38973e8114622752d6c64115b0e86b7b3a69514a4d03
MD5 b68d9eace4b8a4132162bbe2bd219b78
BLAKE2b-256 d8be0963dbcf5b5bcc029913835d85e7aba7c5d80d7a33e3f4d8658157ac6094

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.701-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.701-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3c37352bfd0c435b36b5ecebbc5cda10a6f265064f00fb31dd4ce87097992c86
MD5 2514b6f73065945b9fc5518b632108e1
BLAKE2b-256 43ee8137bb51a3a456eb1e1a154c64c187d33745a6fb502e11056faee9bd76c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.701-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.1 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.701-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e1c33a5f8918ec9543c992a31413adf5a02d121dad31066044e2aca55042fd75
MD5 9cacadfc148cd9f547fe342b6c8cb4f0
BLAKE2b-256 b2a29a01aea0a22625b07f37537cba0bb7dd583077090b1157afc5336a712f48

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.701-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.701-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b27ddaabd35f0c383f823fc34f5842a631066004199517c7d5242fa2b46fd488
MD5 4970d0fa965c6f571b98605ef1e51036
BLAKE2b-256 2fd8e4ba079cf6af8edc287e615067713751c04a542b499bd91bca26af4b7e85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.701-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f9c9fa6672e28fe4b6a9328615dd7246343a189cf28ef113daa4b414bdb5248e
MD5 57d555d9ff88e16c39f8d9dacf489f5e
BLAKE2b-256 d2b20a66b251488e471faed1a844c1536b75fe4eedfdd15dddfd4a995ef069f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.701-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.701-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4a9d3179a53f2e828340646d22707a6f2a73acacd8d21f301991cf5a9b8a7451
MD5 d76579ec283b13575ada6ad5b83406a5
BLAKE2b-256 f3964458cd71ac8e2adcda64df775133ef546012f34a51ddce9eda5877342dee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.701-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.701-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 3eae34fba09ed93d53cf5b5b5265d8bbde6022f088ae1a84df869abf92730371
MD5 24344a9b14f94f8991fca9244339c300
BLAKE2b-256 9fddfc1a8b51f7332da5a329032224831aac0fea19bb95c2ba0a82ab3be7db77

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.701-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.701-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 14b02debe1677a531542608006fdd11601866209a9e6a90e025cea2a1a28d731
MD5 4b9c04559d64252fdcafd39b365a0287
BLAKE2b-256 0b5ba853791a88846418c871740b7a6f40168d282b118762bbb630d6d14a2755

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.701-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4964a58be92ab654b616f28a9fc5081c94c97f0760b20f65b23f8f574dfca546
MD5 060e0bb0e9eba4a2294cc0cb4ae6ba8c
BLAKE2b-256 caac61363771425073b35d07e9a89fa8726d118be4690888a7d87f8caa4a6e9f

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