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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.188-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.188-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.188-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.188-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 db5ab4e9c98db9692627d1e9a993eece203c89e9295b72a975d792033f19a2c1
MD5 66eb323981258a2536b23fea09808abb
BLAKE2b-256 101019103739b6f031c55ce8a17e150ed20317688f835fd1f1eaf1adc1452e48

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.188-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.188-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1f1cbb0a28197ec1f698afaf6f732bcd2f9685d53ad691c974736ca3ecb06b69
MD5 d219538f516a350d9e9f1addeb768377
BLAKE2b-256 451515c1262445ada6f4db23204cccbe097160ff81add98e1a9a5786fd88f91a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.188-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.188-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3e8302c44ebe7387df4f82c05c47c36a2f1b88851c3a6934bd8050482ac663c1
MD5 1f286b2a1b05cf66e48ece465c49125c
BLAKE2b-256 9123e4d4cdb09be9bef52693af29adeec0c86a933338646c2b50c07fde611622

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.188-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c6df897622fea93fe795bf4138ff6fcbd04c5ddd40e6f49d1429a271af19fa06
MD5 76fe711eca3f0f12cddf3c8ca54e6613
BLAKE2b-256 eab703b3fe3bfe479c755c753dd7928f63d74e295d25ea85194bfb4325619d9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.188-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 723fc88dcdfb10613b5bde85d39693685b09dcef39b6a17d68ea6c72b81a297a
MD5 ebf443458c59ca380ff07f74e8958a53
BLAKE2b-256 0a3b76c861a759b566d88aa5decb49399961f32222f49484ae5f83c2eeb7d9bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.188-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.188-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 14df42ff93c49f7dc701150cc1c19fee654527991f467b2ebfd2fd114d0f9a4e
MD5 01277bb921f807bac6839716525e6c18
BLAKE2b-256 31fa1e3bae067e80a20d48f81f882a4e69b8ccfe7e09fea648725e7bbc8f6b13

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.188-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.188-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 89071bc337fed89e1aea5474b7fc914008b70f7928ba8a2d5f955b49ac2d6b1c
MD5 1074772386b472285c423a244790456d
BLAKE2b-256 e7c4b9209ec88c3211d8391135863b85981d588ed7078399e044e37e7d9de7ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.188-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9104b9c4f264be48dcc71dd34380b9e2d980a8061c1509e38b1feec1f90f2f96
MD5 183675891358f221e23570deaf5a0b34
BLAKE2b-256 186e5b4a2eb3eeeb2b6a6d39bc047a68b717560617afc5f81d4343e88487d40e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.188-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 343ec91ee074142efeec1db01944b3b2d6acafa28f14d3a589825a20ab5de8ac
MD5 8a8a5460079b8a46cfd3d6f751fdce5e
BLAKE2b-256 e0d8f4d0d9063cb0088b0e703218ab0ecf6d74f3bc5a629faf6bcfa5df82b7dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.188-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.188-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a258b55ff3e573d1c2fe25796823d30572bbe8e66169fe830775a81e109afbbb
MD5 23cb4d6ec0ddbdf3805cf21601ee8854
BLAKE2b-256 b226602454db8645ecbe0dbe80969110a55bac49f61eaa1a355e6393e180480e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.188-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.188-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5ff0610514ee4b950288c0cb3744dc67d8c9955c81684b8ea3fa106ada7034e2
MD5 46742c748668473d338334f23537f77e
BLAKE2b-256 60cc7f01efb9b2d62699920132a4988eaa52db0900d8025c843f5b631417ccc8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.188-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e91ea673bc8f2fba5a8813105df2b4f701ea0686c95383ad15943ee185938cda
MD5 fcd5084922496d11df016d441d0ff750
BLAKE2b-256 d4989bb700309f3fa9171f54fc1ce975b7f95c0c8496647b468c080f447aa6d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.188-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.188-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 936abfc55889ae251cdb597f2db85220adbbf0ccddabb2b1fc09ac404023a14b
MD5 3fb00f6a1aea5e24e825b0b7b0d94f27
BLAKE2b-256 f2d3c9075f9120801af18400d2ca0a16afd8f707e289a8f199fded65d27bb65c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.188-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.188-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2ff4cb9004ee627ade5e8470f3f49e6528a3c1c10a9a8ceb14b9182900072a60
MD5 0b0d5bf8b6c45bc7fae63644d071bfe2
BLAKE2b-256 52becd9e22c4a4c4225a18aedfbb40babb15393720a19c38162cb76f59c361bf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.188-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.188-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1774bf7b098b14388af88930b9173902994e5c3257f1f355bf8fb39828ee3e25
MD5 33b91033cf7aedf2398f85f62e1dc17f
BLAKE2b-256 783d47187de6e032f0eb2141fedc9bd144314e73b3aed754cf7da31f6debf187

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.188-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cd0a993f2671f91b9cd3a91e5ee925865de889656e0ec1885d8aeb6ad825d905
MD5 c97921c5cf8e4aa852ccb97ef7397267
BLAKE2b-256 f64196173224b3cf55a63858f9330c838349f50d82f98eb5a65f7490f216fc6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.188-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.188-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 26ac4901d8d68bff7696e3abd2c0958c2de1be412a3d889d78f255778cfe8322
MD5 19aabed625b7e525a916007f1a6de3b5
BLAKE2b-256 42e337b83782b0d1747387dafe8f8bba15f8aecdd0b53ea008d40544e75018c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.188-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.188-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4f4c9f595339bdd92f3e46315fc554a3a18dae56c16a01806e03a329bd927b5c
MD5 ee258928a7977efd162f140bfa049a69
BLAKE2b-256 c47995758a48289d8021a133ebbe3c837b9a73d1c9fa0809443107143571dc9e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.188-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.188-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9f2669ed16b9b84f4a72b40a752bb47f984f54b0203a2290e0cb32df5a9718e3
MD5 3af26598767083ecf8136f2d13e1237e
BLAKE2b-256 dfb91926212a4d26a4c9041c385c28afcd8adb5992749eb2ff8d7c8c8159d905

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.188-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b6c8d406576f561fead4da1892a31531e887bb52651a8b878a2f32507618715e
MD5 df7ab94d3ada9c18ddb081e883b11049
BLAKE2b-256 457e5aecf77d6a2e06675af5c0c0992db4eb4175afb8aea78a4359cb5be04517

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