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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.3-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.2 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.3-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.3.3-cp311-cp311-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.3.3-cp310-cp310-win_amd64.whl (117.5 kB view details)

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.3.3-cp39-cp39-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.3-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.3-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.3-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.3-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.2 kB
  • Tags: CPython 3.12, 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.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2714088106087690b6cb2d6724327da8f8465ae420c3e5245195ac3b04594934
MD5 7b2af1e9d4274e92a45d4b2e0180ec6b
BLAKE2b-256 824b4c79ac33c666e989a7b8c484665cbfb319c0fad3d3e735e7b4b5dc6e6754

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.3-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.3-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 bdad29f859ba93444c4d08ef89e7303d6046ac1447777a9508405c878a9b6363
MD5 99e0606b44c75cc9d68740881780cf92
BLAKE2b-256 7d25c7ec67acd6def87a99840fec4baa1fad205b04eef7722d18bd43fb6bb0cf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.3-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.3-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1b3888cc68cede6b4456633120500cc9dcd601e9e58d63fff405cb896bb0de6a
MD5 7eba96af40ad329f09fdd6c793b8dcd2
BLAKE2b-256 40e82e13b5cbc1d1eaa3fd00f0e6f9a19e381f307317f9bb9dadcacec69a0602

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6b93a1744380d24269eee709381539af2b272e8cfed4993433d655f6354b7ddb
MD5 784fd1263d49afe42a8879bce0ef1b7a
BLAKE2b-256 d720a79f6082345f29c0ba448fab57baab6e63698d14402801d506b8d2b43702

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.3-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.11, 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.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 58f0129f38f352aae8c339d270d59374aa5ef23898e084811ba83ad4323f7fdb
MD5 c2b46fa4cc1ef4a91fe9920500761974
BLAKE2b-256 a113633a4e76a7b48ebbf3482a71c2ec33900234b3909ea2ccba96967482d3fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.3-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.3-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 517e3a68e57f6c71985aca4d941b0a58121e3b69609f76a0fac8de2cfa9736d2
MD5 d100f2f9a573314bc323a6ada748b0e0
BLAKE2b-256 db31e5b635b662d10e5ba244599f515bdc26f06422992c839d8a4712d11af773

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.3-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.3-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 813b3d91a29a3fdfb75f18021d02cc158fce0581f5d72498ccd67aeaab80317d
MD5 f4cc4d3e1428590ebe52544235c2b83c
BLAKE2b-256 f51b064b7aa05ea9d11b69d1afebaca8206739d9efbcf361bd321ab1ca4879f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e6176e4040ff49cf94aaee9666aaa0d08381453c28e47d97f4555be0190a2ab3
MD5 d6bb4d3d9790eacc92497205e37f1f41
BLAKE2b-256 6b3c5af54d228444276560afce868a7585e838e9e22c41c6eb4bec7f257b3242

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.3-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.5 kB
  • Tags: CPython 3.10, 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.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ed094912a6ee2a01a82a0702059e89cd237f3cc6b8a81c2a97c4629b8a811e7e
MD5 4ddb5226b1de70dd8eb62265703f9719
BLAKE2b-256 1f4aecd6657b9cb09510c59eb405be98f40461aec78900a8243917c69693c28f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.3-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.3-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ed7421947aaa5b5ea8e0567158fd367156fdb970cb9620dde92b272c4300ba4a
MD5 85fbe2aa8ed9d79a8a3a96c8303c1ac0
BLAKE2b-256 17724d2b5db8074fc0f601a4210adfa5d51bb44e8bf28036f30db0a1302ecd85

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.3-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.3-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fb1dc32b17851f678e93ec1c1bf757d93162b520b7a2d0c9100e93b68cb75883
MD5 3c9c208a584757e32c2e9b8ba41e9bd4
BLAKE2b-256 e7b9779b6c627eb8eb324ed0836019a83be08fac6899d0421856028a418d3f31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5c5ca97d037fb807f60c33b7831366fcbab71781d1cbc8eae476b234a58e1b06
MD5 fb2b7f151695b3de13867ad743a4dfbf
BLAKE2b-256 5fa1bc68774f9f06fe806604c877ef6ae0cbd74d6a4e6e43be40972b1e07d1da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.3-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.3-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 18a01a588722a9bdff85bf12028499a18c13dad7c93aa733e0e4cf6f3606023d
MD5 af5cd01b66e639fbbfc010c536c64d8d
BLAKE2b-256 49062ed9028c71e72c223ecbd60699eb6b6532078de3458edab28389c1714c12

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.3-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.3-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 59c1bc837427e2cda3c39d904f95fbfa31b6b80c15f57c40fec165698a0a8cd0
MD5 508a0436f361bc533e716607d60c080f
BLAKE2b-256 362abf380a92174ab69de73e9d4ca7f972661dc22a6022d6f24d9fe5bd615443

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.3-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.3-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c3daf7cbe9d164f24cd4b6cc9b6afe6ac80ac09d9adb5641fd9a64b6121abd12
MD5 07a5b57c0790cf2781911a5417787854
BLAKE2b-256 b8dd8e0af0cdc7945a1c054e180979fa0f7cca71a317f7b621a9dc8644e9b7a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.3-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eaff9de3d1168afa26f43cee9cf491523ed327ef9d5e2f2aec2649d29f68ce50
MD5 6ef1187de38dc8c34358c761cb7bffb7
BLAKE2b-256 0d8b3f9a2d14ff4158e385fad8aebc4d5e8889a1b5ddcce449bc19d1783f84e2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.3-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.3-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e51979b91f5230511d35e956626cd9feec7e6f4cc2d11610ccc2590cf5c94f55
MD5 08d85a298e2ed1f94d6092bbda1c4e34
BLAKE2b-256 ea805bd79bb470842f14c3381de63dd944ad123307e03fe6f80e6e5070bbb8b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.3-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.3-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9daf08ac3d4b3627c41de8545f57b85051d99de6ea83b9e2c8483fea34bbfbb7
MD5 8cca98c97e0b5866cde8a89ba8551789
BLAKE2b-256 ed29251bc35d2171a1808581c0c9769e2839f44cde21716342c6d1d27cd0de03

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.3-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.3-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 35da894f114f1b14d5b347b752ee04c854aedffbc4ae6acce6cd6cacfb07fb43
MD5 172f477532d6da8b26c6861badf8aca1
BLAKE2b-256 7f24216e0e795eca223c3515638847af0d1adf4027830593e201dbdaadfb3003

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.3-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8ca8d18cb245185f1efdefddd2291235e3c9b4b2063650e59a18a3cd447dbc18
MD5 279a54dcb8199e1d3918b651cfbbcb92
BLAKE2b-256 2f6218fcebed01f19ceb723decda32e21a57b0d5d092ef6309b75d5a409e0a79

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