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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.202-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.202-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.202-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.202-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2c0403f796360770983aed6c9d998972611f1258090b8e7257bf660b0170b299
MD5 1aef16446471d065688cd7f627ac4f02
BLAKE2b-256 113b5bf84ca6160cd3e68b15bad76700501b900e77b442c8773357346c8f813a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.202-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.202-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7a86e3078be04d157af8a38114860cd7b4be0d48f21a96e23e1a016ef4050274
MD5 231e222adb9550a73600eacc4e482070
BLAKE2b-256 5d5158690cf5df34bb7a265f010dcc5275c7011a1ad86c7b9d92f8e51ee5b6b4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.202-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.202-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cf2499fe11c3c6981601ad6191f113b13f09f8bda6494c5098200ebf679763b7
MD5 0f77a3674c3c7af7fb49ccfdda8890d9
BLAKE2b-256 39c8e8d41bc4b206c7e7ec3e92067d4236c8fcbc04c97cf4f50b6449d928ed33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.202-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1536fa9fa444155655237d18b0bfe7929d4179fab8cfdb65fad7152a45bb232e
MD5 21f281fecb2b665cbb36e190db25e8aa
BLAKE2b-256 f5912c69d5163e527ce8b8bdcd4a7273ea3ebc61369954bc167f6edf217e21dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.202-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 070a1c3b1412fc37c1fdfe0c60bd9801ebccf5a72513b5eb4e5119adc7729d4c
MD5 8006b792896284ed3af1f97f0df01e30
BLAKE2b-256 4c3c4a877a5d31a59daad0263c9cf532f422712102fdc7af43e3a77395fbcef3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.202-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.202-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 82a631bced6a345a5827238680c9abb07729dcc233f3558d16e1fc5fa4400986
MD5 06adfa52573529e7328019da674ef56c
BLAKE2b-256 247042d437c666bc4558cf8a28b3c94234cfb6eb515b8d07f41582bf8db8fc4e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.202-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.202-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6206c3ac2554c3675a3998b9ab879c3bd92a604f74e717e670866b790f828920
MD5 9f2caebfe84d2bb0f5b3d3ac8d6a63ca
BLAKE2b-256 244a55f512c7b44aaa55afef794956a182f42afe15071e0962cfad6cfda893d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.202-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f93c4e8c18f7ea3196889fe8e244a7d9a61bfb84fad69db59023c504ea618b1
MD5 95e037e0957debb7e2d4ebc544b241fb
BLAKE2b-256 d887de95b8714e5bc76ceb350973de60d5991534f3b9cd56236a2456a224b770

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.202-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 73911343987a822cea4834a606fa2386188cf2f0915d3cea74614ace14bd03a0
MD5 6004ef1eb7ddad108a5623cd56f619fc
BLAKE2b-256 7253ef4bc3f54de2ddbf6a96e4e5b91ba2b75aa0e7631a0aee3038bb21334db6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.202-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.202-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0f707ee68790eef99e01d56223f1101775d9236ccd9267989b20f3e5bd281531
MD5 ec936e80d803e75eab8b0bbc0e989179
BLAKE2b-256 75beffd96b66f37eea56adef3d294f807390e4454144dc2b6924c10ad9e12e37

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.202-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.202-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5ba39b3b9170384295853f34ef5ee6904a7226be690983e3aedf49e86cee0fc5
MD5 3f0888da9df8286938ed824a9fd5dc24
BLAKE2b-256 fb2c880ee8413f9023c8e44cc29a327926c69e40eef0630a5b68ea4b0e798258

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.202-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b447a1cdd16677a2cbebf05869b7e487fd51a4d1e9ffcd494b56dce1a76aa442
MD5 fdc6e9fb5dcccedcd21987b1cce88f73
BLAKE2b-256 d42347b8aa1add709932b0e6358c7f1a6e289a0e67e2cef7e4a9a30a6e01d75d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.202-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.202-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6c4bb193eeee69bad32399f5eb6ea7159378fd69cece032df2f3527785ee9a36
MD5 d0e9b50a834e190fd70c8a25c3c386ad
BLAKE2b-256 b1332b44d863a8bb53608df82855fc12c2dca85d87c0aa8f6f1ac1e85ba3b336

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.202-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.202-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9c9efe30b0a7f16cc4c2b0c9745e5dbbd66df741bfdf28e09a748019d5a61101
MD5 ca0046e1c750a93d46d122074acdc5ff
BLAKE2b-256 9a83ba8524d7343487cb1d2dbf83ad7a95f4ace6d5354d51fc0c46d9783fb04c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.202-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.202-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 689cfbbc875b47b90b1949178e830890dfd58ca754e7e02f8b5c8dc07be75143
MD5 45264a56e7f92a86740dd84bb979a610
BLAKE2b-256 3a1998f4e0323c3d631f3c87edc399aba58be80ccc457e819e4052d1552e9fb3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.202-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 04ffa1251a5cbfef3f6c1129970504dd21aa2c8d4e2bde1d79f7c2f7cefcb6ed
MD5 662b4b867fc42d8561ba1659a8af560a
BLAKE2b-256 40c0d85a49ae344e6d1c893ec6a64cd40a343fe2d805cc811b31c31ce2d5bcdc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.202-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.202-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4980afef2f46b450820ce326e247f25fe8d88dea34a2821a8c3df1cb07e9c3c8
MD5 d4d11a6ecbf093aa3c545326d8f61ec7
BLAKE2b-256 5491c0ef80f40d1b44e6d13edc3187c2e239ad3267aedc99cc8147f3793e93f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.202-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.202-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5102151129f76396b79ec81d6e59c8601ac87ff0048e0f8c154c67073c7043ef
MD5 bfd5a0f752cb5eef9a679d977ee9e51d
BLAKE2b-256 a635fd74a8bd3b8eeaf082f9a03d54c656f30d4c6d55d24e8959b86ced990c2e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.202-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.202-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 076044969486e62ee437a10a2dbc77e197f1a09fa986c786c6d92a0a2fc2b534
MD5 a271691699bfee545819f8b0c6fc0901
BLAKE2b-256 0f4103893e533d566e29d4812b08259995025b17a2ffeba01bf24d5dd7076b84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.202-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 07fcf729750762588b5e8b1851b359f91dfb7d921f59d81bccfb5570ae3cc460
MD5 86b0c908f50cebc6210eb40c17338bd4
BLAKE2b-256 bdda60d4e9413ae3711019d2d5da80c3fed95407ebfd8f0ea6dc54d977ce69f2

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