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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.814-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.814-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.814-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.814-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2c00e90fdef515891404667470361f9d158112e752ceba847121c41ee70f3c89
MD5 1743fbd6ad91bb51a92dff0d2ab5bc09
BLAKE2b-256 0a4519f583f8c13c28f1541d8feb6d77ac535eed0c567dc8de9169574c25b8d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.814-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.814-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6a786f1aa93bdcf489122f9b7ff8dba12bfe7aadd4f38e86b78c6166f5f25549
MD5 0e09d94570dfbf56cb1fcb999a876e0a
BLAKE2b-256 0a9190866ed96d5c3fbfbc03664a2b8d02f4b2bbd3c0de2c7ebd97ce5a7429ef

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.814-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.814-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2c627384c908c4d4ed867780758cdb48629308d4c21d72bae97caf44285bb945
MD5 bebd5548659919a107d9a2545b1782fb
BLAKE2b-256 497ddb7fe8ffc9eaa3d108c0ce3de34e81daa01015ef90937484a6bcbd8e88f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.814-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ddbd1234f3d1564ef6795d69af82367ee7b57171ebe1926b80438df8c8e25934
MD5 28d15484c3a74734dab75ce44d6316e7
BLAKE2b-256 9944855891c523ac7aff5e807f590ef810d7d96c16efff32ef6ec0ca9e55ece0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.814-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a2199e7fd2f94dfc6bf1d5842705909a98a9aa8d534c5d5adbdbb0442c483567
MD5 05c88dc2656cebc0a4e8da1606ea7f32
BLAKE2b-256 5c567a4e7939f9f9ff2703835039eeb8f3ab114d4f0b401b382c4ace116ca392

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.814-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.814-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 63bc594c6f858e4bbd8aa13280a760cfa5f65686732c9d1d15b12a56baf6fad6
MD5 c509637575541a898b93961008d1bc58
BLAKE2b-256 054ce7d9fff00afa64c56d3b03ad12a8590d64278d7b2e4304ec90a2f6b300bc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.814-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.814-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 332b9557ee39bf5feb00f89b7f44eadc962e51d0667cb89e6dabcc452b9e1793
MD5 b7a94d4b038667475d53788f684fb39b
BLAKE2b-256 15c28e3d8fb6c6e54720b8420c2fb3dd989e28f255269cc5a58c4916c5abff91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.814-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 44ae95fc20fb5ae2bb7ef89ffad19a851a808b207626b9e8196024f919ff9933
MD5 9bbf5d82e985d87ec92345cd166161a2
BLAKE2b-256 ce073e6e3bbe7ec35d4c5b16cb6b746f82ff2bfa5e56d6e0bf419655ea54c365

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.814-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4e4fc872096af1ae98bf0e3971f11f60a71ec2874ba10d14c025eee16301a8ff
MD5 e9c2cb6cbb5400c9fb031f4784a0d317
BLAKE2b-256 380b8a9454a13d37ca529ca1a894ca4b175a6884839ac703dae66ce7229c659a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.814-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.814-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f4ca824d056d02bd85317173d7a3837ba8f2240aeb80f925710a05fdb31a6d10
MD5 fdbc8c7d0a8ecf55c973bf088c568c05
BLAKE2b-256 dbe1a37c73179d06561f16d863cb1e34b5ab1aa263d186f4bd2cb48b79dcfa97

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.814-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.814-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b914df4c03b9af4eba4d31204eb6aa8e0514410751f41e6efcb393a420480d60
MD5 85ce97b429b4087bb953361a6d1ce689
BLAKE2b-256 8dd9b20c2d44097ea67915048fd14ad0c43287b425eb7a06858b360b652341a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.814-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9ae8e39a8284e97e2112e9cb635ca10d82a05252164a788bae9f08545cb71e77
MD5 9bc576753ce84d92a74c1c66d0d7d956
BLAKE2b-256 ebc42ac8a7d8ea1253ac7974f7f54b2c152ae91c3c9cf9525166e383797e7cee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.814-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.814-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e5e5e2985c1f9456806df256ad44742c4d4df474f98a6f527ca71a70f3dfceed
MD5 44fcf20359a7b4eca78b223282af4a5c
BLAKE2b-256 bd8dbd02e538790a51c8bdf86a6b0cc437f69233625a400fd9bbf1133e55235f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.814-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.814-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 cc714119fa7b8a2e4b37f11bfbf566ef89f596de83f746c8c6a6543c4b88a7e5
MD5 7f1211cafb8ac4176a1b8dcd4f01b514
BLAKE2b-256 c86fe9e6086dbfe8970165b9653ad743f6f8b416301a08263a62992e29a256ae

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.814-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.814-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 46df8137824cc7dec0bce8ed230d4c139d51ca016e823716676c83b640514f26
MD5 691031d3ab60fc9257e20faa088669df
BLAKE2b-256 9310596c64cc79c724b278683205c4beee063f7a12d730f9dfa6d8ff992839b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.814-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0727fc64b2f58f7cdde110d2ceea4569d699f30264044224b1bb0068b38c2aa0
MD5 6ce759b426f68b612124e3e24a818620
BLAKE2b-256 33263b878f2f8e8648518f99cf369de61909f8abc8078c28a6996161992600e2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.814-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.814-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0c1abd454695ffb0e27e09372c4e89f7c49efc33b8788144d0f4a65f02ee5edc
MD5 5dd1dac66a6883a4f56a89c44f8551b3
BLAKE2b-256 2816d437c93aa1555d9966b61fae37059c0986da4faba78ce28be7189451bff8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.814-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.814-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b9cd06c7b4a63ce0b2ff108fdbebc0963a466606a9f4d7ec35455aee607c4b64
MD5 9216cc98879e58158f3650b25679fbc4
BLAKE2b-256 b3790035ac042ecaf54aeaedf224a0492b6538cb70662b838d32dd31e8cc85de

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.814-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.814-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 88fd2ecf4e5c11a07f45e4da2a039607d844ade980ec747e33428b10f999eee0
MD5 8f1a42c8871a8dedca30fa9b9a4db4c5
BLAKE2b-256 02bd74f61e77b76b7d34e4b1e4d3929d8681a4cb2bf0994a4de9e89b52e1f761

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.814-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 53ca82a942e5a519c104c12b99831291fde8b1ca7d8eecb9c7b600c019a9a124
MD5 419fac40d3563db4420a3d88eb7b7bb7
BLAKE2b-256 01e2018912c3883b7cc89f23a8a83363b42ad2570bf32d05dcd5344885ed7d6d

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