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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.72-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.72-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.72-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.72-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.72-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.72-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 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.72-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2b34ec5f13f7eb2301a0246154719dc7ad88337be8deea46035eeb02ca057b27
MD5 e4d64f0a34e253b3e71bf69084cb02eb
BLAKE2b-256 b1a54804170447e5d9d1a00bedd132671feafc757451173913ced9de3a0222ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.72-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.72-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 731d382e7dbcde1e2017bd1973afe71992fcda1a8a7dc2df5fd8f52cad902d7f
MD5 f481abcb49d24c570a426b6dace101ca
BLAKE2b-256 93d9754e3008dd50859bc310bbf79992742eb6dcc2d7d04e948899419117ff31

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.72-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.72-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ee2b6aed4aca825cc356ccafe0c8c29fad9a309b2a1766e2c134030938ade290
MD5 b8e296140527a75e33f177b7ddbec4e9
BLAKE2b-256 045a4d94f5af29a6b162b9948b1d4e48599fca8e18bc44fcccc2917fdfa7f720

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.72-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cbe3f26adcbe3f305cb647f99fbf876ffacbbd854a009a806fa96873b462fa57
MD5 af84fdaadf927d102761e2d4976ee74e
BLAKE2b-256 659f7d3e432b00a6706569138245c9c7ca5acb61440c71ab32100865da64941f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.72-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 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.72-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 638104e672ff4f378df511b757539d614b47180c823b442c98f826213b18ad1c
MD5 cc08b767b0e1d0c0c150bd72a1b4f441
BLAKE2b-256 3c629603b4deb3011a9b274bce927c7c40e2dd8fd9e2e13c93e1b7f4e3ec2e1a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.72-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.72-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 155d2d05644db23232ec6d7d92b7f5bcbd9677ec44b7aa0dbea6fb754449fc24
MD5 643d843c6b2fc4f9d2ea6d56ace127cf
BLAKE2b-256 73084745b5cdfca932e98ea398a9b2da490400ea4f7ee98b861507394db4b8ce

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.72-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.72-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6a0bc7fe76a6eb454fa4717d8144afda10822309a8bde87dade914d5bfc32d6c
MD5 9d8ca77accddae98ee447963d61bfe68
BLAKE2b-256 cf3535df78ddd09c1b4a2ecaefa275cf1beceeee449ee900a896995c84e4dc68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.72-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ef848b25f295b2923bbe92b95194ec0e3637e348e8202f8e0e9e9b61498e8eef
MD5 031b0371fe9457b66c147d60006324af
BLAKE2b-256 c5668ccc9e6ebc5cdcd6ebb7c40bd435e64db8459e1fe230a7e6aa6953e4a036

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.72-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.72-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 24d5d0ef74cb2cfa8f21f19280b1adf5376210b45653c1f9f75e83ec8a1a3d24
MD5 d5789f079c3cb8187e4e66ca337462a9
BLAKE2b-256 f3324a139584b647773f3b9775c178260da6cfea603beb9b72ce40496a0b3c01

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.72-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.72-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 125b19e2c037ac0787e92f4f798efdcb025f9f6de817c225782b4b21a93106be
MD5 582e0cb354e6adcba766dcb71c4c6c43
BLAKE2b-256 6cc409dfc9611bb954ee10bf9fd29f473a0a1046a2b758742c543b3e3ebb1950

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.72-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.72-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f418a9ebbbcfddb50f053a9e1dac3874454e4378520d886be9e631a8bee1681e
MD5 be4270be89a8db6ebe4e877951225bb4
BLAKE2b-256 1dc2c6d574588bd1411bcb3616b83b86fc8d088d0a52891fd8a0dda91fd219e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.72-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6b7fbdf16b238f47150d0dbddf121f00d3a3760bd887d5630c869f8431c6400b
MD5 1c9a1541ebb8f7589a0192724da5dc95
BLAKE2b-256 ac5b47c01c35d8e4670a35d39125c3747417d950dfee8ed7d2708430c19f24e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.72-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.72-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e5ff5c42144b1fac9463f2da45cc612ae8a0cd8cce9faf894862e7d0547476d1
MD5 d9073e683221a3dff5c8492180e03cd0
BLAKE2b-256 c2941ab14c577a826b88ded69252e9ac93914be2ec20902ad9d46a68baf21c1b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.72-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.72-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f36119e9f28f6f5bcf911d5f5d30fb2e445d0f724294ccfd4c6a5272f5742c02
MD5 b016f9158351216fa82ac907cfbe50d5
BLAKE2b-256 80f99844fe551212823cfe99bec7f627f18744ee2c751620f8aa7b57d2609b9c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.72-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.72-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4170a1244e5e83d31a7e4718668f0cf710a564ffed4af0c867b9c332f8b221da
MD5 8bbc186047732c0f1164ab58397fdc7b
BLAKE2b-256 fe7abc8739f8488726cab5e8af6e0f0b1a66f73e551b8908397bb51872115227

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.72-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3a1c1ffd851427388252d7887a6fe175cd87901d67bb6ffb76b73a34f10fdce4
MD5 c820c06dd5caafea0b45293b24d29516
BLAKE2b-256 e6da6b1465f271f6d74555c4719bf099e54917f29eb93c8e5e94cf7f13fa0ec4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.72-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.72-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6bf3c0c61bf012c134b918d1944f64d6647f0ebdac79620400081eda928f8196
MD5 35c9a04b454e8580e66c44aa5c0ba9a0
BLAKE2b-256 0cf72d5404a55468d67d5bbebe21ab8853aa6dfab8f2be4330d61d5cc4f01e07

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.72-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.72-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 aefb0840ddecab162791086668d5be805e594f9b37202c145ae454c5fba3418f
MD5 e2ae6116d8b77127e0e96c59262d0919
BLAKE2b-256 427e927b062adbe9fa63b6620efc792b9a4c87696c7e3d72b4aa5ec88984e92f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.72-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.72-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ed90dd13c5329afdbbc42c6ff73fa1726d17721048e15de721141e191b9cdc68
MD5 da1d4104bb7ae4cc4fc8d0a3ea4ffc40
BLAKE2b-256 940fc8bfc4132e4a664a67725d49cb5d999366bb337555c895f7014d0128d0f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.72-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ccfda765910091d185df70763a71ab8f326dc2a553b17302d9a413f7c9de1afa
MD5 4b4ff5725846c27f615ccf08c052b598
BLAKE2b-256 8ab134fae5569374ae978029e1529230e0f49ceee8f88e25ce830cdb7e7823a4

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