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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.2.27-cp312-cp312-win32.whl (109.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.2.27-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (312.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.27-cp312-cp312-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.2.27-cp311-cp311-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.2.27-cp311-cp311-win32.whl (110.4 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.2.27-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (277.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.27-cp311-cp311-macosx_11_0_arm64.whl (114.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.2.27-cp310-cp310-win_amd64.whl (112.4 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.2.27-cp310-cp310-win32.whl (110.7 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.2.27-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (269.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.27-cp310-cp310-macosx_11_0_arm64.whl (114.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.2.27-cp39-cp39-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.2.27-cp39-cp39-win32.whl (110.8 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.2.27-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (267.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.27-cp39-cp39-macosx_11_0_arm64.whl (114.2 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.2.27-cp38-cp38-win_amd64.whl (113.0 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.2.27-cp38-cp38-win32.whl (111.3 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.2.27-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (258.1 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.27-cp38-cp38-macosx_11_0_arm64.whl (114.7 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.2.27-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.2.27-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 112.4 kB
  • Tags: CPython 3.12, 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.2.27-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 81545aba9c8f846db7764a043b923801cf14af9078355bf5f965fdf5b43cda75
MD5 d3f1660553b82c62aa4d405dce8cf48e
BLAKE2b-256 8e4e9460c3bc73a78073052caadc9559732bf2a659092562ca5384652114c396

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.27-cp312-cp312-win32.whl
  • Upload date:
  • Size: 109.7 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.2.27-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0bfb4026ea71350fbf6f97f8cbb58ea5254515c80eba9dc41e920b1b90d9afb4
MD5 0d206a15cf70404abc4ef872ce9d566e
BLAKE2b-256 152cea4a3a7f004ccd0a207444523395891d64b01c5781c9d85bf8f8a15e3ca3

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.27-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.2.27-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 39bd8b3e136119dd2de9580bdbb2d41f2b2346bdbf8859fd50690af7e0c09531
MD5 d267e572146ba73b9c92f288ba145141
BLAKE2b-256 e9cd1b1f5f99d518e89180cc172bb1775d07327baf98ebee334ef42934f9ab84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.27-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0854d8c7f8088d4de5b35e20560120fa18f1bd4c27b5e6b6a1f86d4cc1f9eec1
MD5 cb4bd13ac5f8f53096491c588db461ae
BLAKE2b-256 77dc4a5aba60253574d0800aea43dbed2fda307df4aa1efd73db3b5d20f9f386

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.27-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 112.5 kB
  • Tags: CPython 3.11, 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.2.27-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7683dd3b32e09fd143f164891bc6d91c3e8486684cc98f528db2b144a2363e1f
MD5 a3fc181bc6731081325be06faa75be9c
BLAKE2b-256 1078068858bd9c57b34521bd046934c7cd27474b844d6ba8a9cc8791ded103dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.27-cp311-cp311-win32.whl
  • Upload date:
  • Size: 110.4 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.2.27-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 19eefda6ecf26abe7838aaac992e5384cba372b713e75129c3fe9f3f6270cc07
MD5 f5c207207c44bc837c4e9cfeb5263879
BLAKE2b-256 68beceba2d60c73983d2ed9681618309c7e39ba9840f67711c6576ce7f8005ea

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.27-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.2.27-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 860923b9d2d84f18d073a29884295ee43a26c5e9701adb0e7e901073a4a535f0
MD5 ce1ba8903314639a5dcc168fd4e1f195
BLAKE2b-256 a497bd36acde03b7170075444ed39f5848b4a90b357f3d09f7e14f81837e8794

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.27-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 22fe5c48a57091486d92bf3c0c554be865c77c3dfa74c6411c4d326581c546eb
MD5 f738a5ed09736809e3381c6135dd2b7f
BLAKE2b-256 25d86bb325b3d617847aa6ad5ef7aa8b0ac56f7b302774be0a6e1fc45832cc35

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.27-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 112.4 kB
  • Tags: CPython 3.10, 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.2.27-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 72650b8c839609e812e92cb591bb8e685883e12ae96d8b9a392970feef2b50d2
MD5 470002cc2e17221d3b4894ba3282225d
BLAKE2b-256 1aaa9b9d242ff9175cf837fcabc10c497f8e462d585473c510148703fe05bf87

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.27-cp310-cp310-win32.whl
  • Upload date:
  • Size: 110.7 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.2.27-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 bfe6fa701775eab08e8fe5a90b2c4e565da8f688442d130109b9870366122890
MD5 d9ebd1405cc150b8403edec9eb491e42
BLAKE2b-256 4993db99295d2bf1d8ed249676ccfdea78889c12b5db47bf9afaf81b6ef86ca2

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.27-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.2.27-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bd302527dc8372674b604beb8f2a81443269c22c0d1ce13abb24d74e5a29273e
MD5 60110f40e4ab21cef086a88081f5ee7d
BLAKE2b-256 e17e3d08dbf8eac23b92c0e88e9379982be2281f6f5015f8643014875415609b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.27-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8521d6bec9b7e064681a84f09b92d97be1110735ccafdc408626ba28424c7e59
MD5 fe7a3c616a2e92481d9abf82451f9948
BLAKE2b-256 e57273d77c63575d226b7b8dcef4d9c51725fd3dbb1e944fcf52c9b6e3b51bd4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.27-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.5 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.2.27-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cc4e3a554c0e568ff3cbb8e7fd6a5532038cea323bb5edc84eaf9202c4374c0a
MD5 8c6107a2eae3d7c3557b34b57bc9e06a
BLAKE2b-256 f9c2af58a06b910beb57b639faac8a15a8e01d06085baa40fb33b466433b63b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.27-cp39-cp39-win32.whl
  • Upload date:
  • Size: 110.8 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.2.27-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c810bc12406b733cc7fdbe808636d21fc33c9b22586acb03929580194095cc00
MD5 119e995e2e1d1be6c9fc03960cb538f1
BLAKE2b-256 c5cb2e525aac1f161196f8fb2b2c527a4e1eb70c5a036028948514c254e883bc

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.27-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.2.27-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7fe22a52a8ba8a97f88814784671b29016bc9f5feb7f2fd5c3ab578c3a128113
MD5 b94fc9fa82a319bebe14f4bd05e1984d
BLAKE2b-256 777aa59a78d34f006085b9360cd283305669a1303eeb70f88ac1d0a387481c0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.27-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5e560e733b90d93b756a88cf99a9578249a8c3f8dc6ae574fe4c6bbfcfc3cd90
MD5 0a9438f30ea2992b4f38d6e324bf606c
BLAKE2b-256 bdd0013017b535594180eeb67bb55d29ed3d8f102b82869c46eda6e02396681a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.27-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 113.0 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.2.27-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a64576f33e6a543d20ad2e5135a32e787453390132aa1c97b30597a58599ff9e
MD5 9ff6e4f9408439c27dc11cd5e3d5478d
BLAKE2b-256 d7f3592629c68ec4e0c3e346251fe6eddbeaaf69b91e13777f2384993ce6cd12

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.27-cp38-cp38-win32.whl
  • Upload date:
  • Size: 111.3 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.2.27-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2cb85b62a701ddc187ce6197703c227de384fe660a963723af0e69c8f69eba86
MD5 f43db8bcde941516f8c5f5a4838e5b5e
BLAKE2b-256 cb0a9d3f646cd5f693258691cbfcd061be579bacb7cc3fedab346699492952a3

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.27-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.2.27-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e3bd2e82b82aee4b4e5f5e21e87f75d49ec3e8c3abd7bb3da0feff30654f5d7c
MD5 d088ddf7183a5eeb81aae63cbb648b5e
BLAKE2b-256 16a7d388883e357dae2907c516325ae9040ae61a3fe656d6c49cfa436d802529

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.27-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e00d8bdc61feb63982f5ca628c77e856bb16a01e3a4543cd6cf66ecd79c67555
MD5 99371b7d6432db6cb2cb3118a19e7362
BLAKE2b-256 4b40f80ef1f2c2d60d22749c5a892b212cf90814ec3fe2a0fa45904c19cb8efa

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