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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.592-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.592-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.592-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.592-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d49e46b8671dca13f93ea42aff597d988ff199d8e50fb332a6d20f7c8c86b67b
MD5 479f2675c2fcfcc84790191cddd757ed
BLAKE2b-256 2f01788b8897e1f8bbc295af8d83dbc3e67e448283a1bdbd8812ec7bbb115943

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.592-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.592-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0c22d4d4b59556d654bc68e4094fc71f8efb5a00613c68dd6660dd602f139e40
MD5 e16018a02b9cdc71d2ef2a99bb5a8791
BLAKE2b-256 3aa4f2163e6c0ce4fee366ac80d721c4eae21471616d98447801137143514545

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.592-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.592-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1b701eea92143eb804e6940d7feabf54f774c1fb80434647043fcf32e4752504
MD5 feb18fcf51030c829984d026388872f7
BLAKE2b-256 4c4761699ff6e48f24b66e98597ff84e046c5c9b7e9a1b800b8a9320113ff934

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.592-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 31385a0ddb38354a96bf48515df0ec2f7ff80f8d00f21f30b79c01bdb53f7919
MD5 3b6d3484ded0e7ab1a1e85e3a76a3bc0
BLAKE2b-256 1ccf538e789b5962c6cbd02f254385eee6579285a591e3b70373a5963f71e239

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.592-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ec83b4effa517ace5c5e50c76ce03dab8bf14f726c68f30cf8169c8b862ba5ef
MD5 589dfb063f08059839261a48ba1840d8
BLAKE2b-256 3bc827cfc9d8bb73528f751a854cd40e012d2c9862c512be7c5631aba9971918

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.592-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.592-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 cf86a04a04521ad1e8c9627928fb26574ab917608dfd943a6d7a51e6cd5a25b1
MD5 fc34e76e3155879adf57cb68a2e6e323
BLAKE2b-256 0e6c551fb55fb999cfe8d41251afe4edcded4821028f3a8c8328eb9433d0271c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.592-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.592-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a32af4d730c6b7b0ec45f18d039b5f36c33668a4c9c36e993b97a46ce99b0aa3
MD5 63622415ff9b6b46e2f9266bd783734b
BLAKE2b-256 0199b490b87c768380aab6f33f1ada8c32810646be27d732408b8304919dbc17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.592-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4556b755a18f30b3f61b573f0a19e7601e4607b4568626d337f7e820e03529aa
MD5 f3f52419e3932756bea6c73310695e40
BLAKE2b-256 5e60051d53dcded6594324222b72ea98e5b208c59d0f4522bcef49d41251413c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.592-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 66ea86787ce2f81c5ec1b7c44d261d73cbfbd53d34242d452edadc3a2e5fe7a7
MD5 92df36f9f5b64ec508b9c6f2f0ff0582
BLAKE2b-256 778707c4408b5da3f096c32d6104881bbc441445b5cb1f6d783cf1be0a2e2676

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.592-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.592-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4d237f08f045e8aa5fb6baf6e6f8146c32b785c829cef4579e16b3b8f4812cdb
MD5 18eafd57bd06f3e4eaad8594ea80db6c
BLAKE2b-256 2d88d3cfaa36330a002b8a9ac6e9a99ba8047cce211ddee73c1b5d420fb6adb2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.592-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.592-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 09350c84810011097dd57b6d526a7c9ac4c0761315fe8de64daafe3e13b04e59
MD5 19a30f61c592d18a75afa4e3f6e39f5b
BLAKE2b-256 df232b53a86ece0f66b862d15b250538baf20584a7421762eac61d5d4fd1ffbc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.592-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cdd3e30f3ae9df135c01e3827c5845df9a2a5d68ed2891e266cefaffcc9bd685
MD5 8e0a601b7a49656f6511ef17f9e31b86
BLAKE2b-256 c6ab7141b78631b563a16564d760cd3fb762dfeda3bfd83fa60df8ebdd3835a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.592-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.592-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b2849ba3fef8e5881c6c1239d0cbbb457e1956efbabdbdff01b3d9fac8df58d2
MD5 670a18729aefd7f44c36ed6c17249a6c
BLAKE2b-256 0453faeb80b87102d77e555e0013e0dfa6c0369b642b672a3f1aa725662e543f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.592-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.592-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9340dd05892f9a3c0b595428af631e7bde69549f179767b044635face1688892
MD5 843ad091f55c9232a93ed551ae5da737
BLAKE2b-256 40c0d4f5fc44fe9af5d6d934fc246d0eaeb85c255e09caf81066686b0e95df43

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.592-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.592-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8fb5498d0beabbf2d0a4bcad92701d1fc756ac2d670eb8742e0976339d0bfd98
MD5 8b7824ce0321a2b35fa0a8f48f14271c
BLAKE2b-256 09a4c6cc43672b97d414639378efb3f1a79acdb3f1a0c5bc0fc693d809baba6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.592-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 36edcbe865635335e6cca18ee808403529210458aadf364744ee00b2f52ec2d5
MD5 f50030498b034d2434da4fe9f6454706
BLAKE2b-256 3d17d95a427d069b9bf5c903ac99795f0b769df6ea1d15f28efed164db0a5a50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.592-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.592-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e1c4f1ba15f1137de926f876429dc54a7dc79ff9e250e0629e0124b173bf703d
MD5 6baf10dd0b8d6835a2d84b0311fb712c
BLAKE2b-256 9fbf48a8ac71593f2c0a386f9a1167eff42375b59db0405ba43ccd063d31267d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.592-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.592-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 3404fe44a1f25bd142ebb02a17bb17f308f4d4bcfadde8f60ddba1f43f6ef814
MD5 58ca13aeb3d958d176f2b574f71323ea
BLAKE2b-256 8d3177e292331b3f905444ea5349e9030a1397d52aefb9ef01f7b8a65d411849

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.592-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.592-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 42f393a77e1b7b1429ec75a2123dbf0900ecaef64fe40c04bc6335d4ab0fb8bd
MD5 549ad165372544245c7f66442cb73d90
BLAKE2b-256 3d8097c69cb6353fa479f6437e175e5a21d9d96b319443d100cdd258be99df1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.592-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 70088ece8fbc889a08d6b3e7f3b1bf9c3953b96a83a7d36c7e300b1dab3b021d
MD5 98cd83238f181518b9fb7a39cd47fdef
BLAKE2b-256 5a113da51a2531a520f497edd2a275caf605d4e28ead24ab277cd1c05346b5d5

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