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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.533-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.533-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.533-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.533-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4fe21ffed75472ef24377cb8ffb7c9f6d201baceb9256aa912db7506a25d9917
MD5 7d3ef2fc879b67ce374c986b656b576b
BLAKE2b-256 08afc7081dc734bbb69b7df401ab8ab646508be1189b5ee55ecab88e5a8314c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.533-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.533-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 58e0e8b4abe39e024d3efcefbca28e7421ffcfa8a6461337affa0a764793b898
MD5 8a6b36e8f258c7247733640b2f679dee
BLAKE2b-256 f0d05d0ea7ed8e7c68e0f276710278b0eac55f1f0b1eb06d0763f4cc092ed7ed

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.533-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.533-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 84b7ecd01058fefd659b0771ae88983235fba565ebf5024fd50988cf543f6607
MD5 303ef9067b8d312224d6ab4e2fe7a1bf
BLAKE2b-256 7b1da01bf7f212cec7316de17d546e550eabff6da3312fbfbeb4b0a5cd6013d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.533-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d63f9f6bd09a3bfaa9173f46e38212241484feecb5c1c545ab4133653e5897f
MD5 dfd6c9d97f3198eb90967465509edbbb
BLAKE2b-256 dcbf543095b74ecf8b8a3bcec71f8ab752bc684734f729bc7885dc144099f804

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.533-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 69c31cbe99838355ee795f26191c2be6b19d07a558a22c3c257a624b6afbbb3c
MD5 7b1269aeb44ed4aba2f124d27574e27c
BLAKE2b-256 5b29aa5cd7d2463b70ffd0c96ac49ec811f9d853e53421f98c88a3c669b8bce0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.533-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.533-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 2f6b9a40e23794d6cd2b52b453aae0a07121e6287d6edede5be573a87b7f92ca
MD5 82c39514934a39c48b64e2c1ed9a8033
BLAKE2b-256 afe62b0794c7e89a69d70ca3d58f55489da4b3cc1b95d850440d51e1507f4e6f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.533-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.533-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f4317fd7b1b168c0474f91135ff20d093ddc159dcd20748cc440165e7cf74442
MD5 eb388a011b6e5d31583e40384ca7c9dc
BLAKE2b-256 898f9de90d78f29f2c43acce915b6ab326e68a4e3661842bbd1cc47b49f237c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.533-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4f6a83dbba230399ec0ae75cb767ce33b7fa109ce35fc93f0eaed8230f5c2543
MD5 4dc731c99064eca52dfadac75ef44d8c
BLAKE2b-256 6b0c4ecddbca151772d9940287952d9c39aa1f90662dfa148f0ee61914b592c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.533-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 430d22a2b2d3d29e8f051d930ee7b8dff65aaa68b8bf1492bea80261796d25c4
MD5 c00a2a1695b1c0a447295d74a40ca83d
BLAKE2b-256 6aa28806922156b3219dd4c8840227bb8ab2646480f8c98a9c63ef2fbf24650d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.533-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.533-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c315acbddca77204635052c21de5c7662807159b652bb07ccf53c89fa4334731
MD5 e000b6a917b039efeab94a34c6fd35af
BLAKE2b-256 59bc0f08862a6d8428deff2a300f21ceeea5a303bd8914fc7679c18871dab8d0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.533-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.533-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2697dfb05307abaf07ab237ce78543a3d04204e40c09a68fb441fb519461a627
MD5 6dd49da5641cd87790bd2d4ae3c5fe16
BLAKE2b-256 e7951a73ad6eabdc4a14ad15aa5cee306f12bbab1847952014380ec93916258e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.533-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 32e39a4706381f4ead1c837c2f5878c8c03ffea2909679cee4d86c4925478c36
MD5 c891f06cd0b685994d71c79164ac8bca
BLAKE2b-256 dfc619275988eae127289b29b75dc5d75a9401e0561123e73013cdc1f769b97f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.533-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.533-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5da9d56091e3c84198e24e9e003c4ec747358f45621e2046f633942df27d988a
MD5 543eb0f93b2bc2dfae6da8cc6dc9b105
BLAKE2b-256 6e52c7d308874ca2dfdd44aa019def5fc7d309527e44642110132719adb91305

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.533-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.533-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e18e4091ae479d16ce0ef634c0ed1f6bc38954500cf38067df54dfbdef83fa86
MD5 cb41a0033fbbae7322e15ec0f76ae7b7
BLAKE2b-256 b3fa6d824b544067bf73e1f90ff2d745eb33133c94f3bd6ded8ae87961bff762

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.533-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.533-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e54295225d2841594bafebfe3692b2a1b6ea309f5e94a172fdeb38d20ba565c9
MD5 9ea02251b8990aac13bb0c05eddebb05
BLAKE2b-256 ac94266fbacecf0152f67da8abc2a25cb9ad49808fa95db62e8c5f4bbadfcddb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.533-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 29436bc73438ec8cf0fdb5d9e1e46a7493f6d5b7998d6447df0b9bc84671b43a
MD5 27ca7f047198266d5491b481cbd9ec89
BLAKE2b-256 afa18fc131a25040563e095a342a7c0b022ed2f29c03e11fa3689532f6e57063

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.533-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.533-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6c814ff6746054965afd2deda4ddde52281ebf0663e11512453ca79e443bd664
MD5 8e43d977176cde917072a1ff8faf4bf0
BLAKE2b-256 7a613b0ef232c6257a87bac1d63dcfeb6bff89b6c5f15e03c3ffb28f4c6c5210

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.533-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.533-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 67a5b4996520eddbfecf3ab526f8875c80316c3ce7e58c33e6fe4878ab7c2c99
MD5 2b4f9113b8b5e6cf5db78f1c925d1edf
BLAKE2b-256 fdede59f5ddd7660f3b2034a85192980ab570404c779aacbffeac15d6343f969

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.533-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.533-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3bde5778928b60d3c4c263dc7b9b8c6e434d6d9dcc6f0b88205e7b301eac2fca
MD5 dd23cb2235c35a688c755d748263ad0e
BLAKE2b-256 ec8c01c745bbb1a2bb9aae089a9d8bef13d40116f6f84ac1b8df0fc6c694da98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.533-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 72118f5f774d79facf0dc123495f0a28e48f30da6f614c3012b852596e8d06e2
MD5 e33e2a4c537430cf7917e91e03d3648d
BLAKE2b-256 a5eb3bed85c94c6b02d167b8f3cd4d390f021fab3a7f9bc9d7337b16102077d9

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