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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.519-cp39-cp39-win32.whl (116.1 kB view details)

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.519-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.519-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.519-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.519-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 597b4f25c23a27280139c5efb23cc938ae9f66c358f0a59f85893ac4517a789d
MD5 a5a9013375a238b2eedb93b9833e7f53
BLAKE2b-256 bc62d2e2db9dd0d6051dfbf5c55997cdac35f124d8255bac7e2398fd894b041f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.519-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.519-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 27b232f2c641af19309e3aea423d14d5b78f044ecdd1ae92d0cc9c4e320bb9ef
MD5 8c9fe2d2ad85abae3a75651718d67a6b
BLAKE2b-256 0e9edf63fb554b7458ac1e1a472d76ff6e465a3dc9b2aa591f6f2e5a45a2a2b7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.519-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.519-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 13273568ca62406c518b4c7438f4378436f6e624018528efaf903f8eaa5003c9
MD5 c99705d1724fd7453fb4f0f129207012
BLAKE2b-256 8dc702af8ddb9c1388dda2148136f004e3a8718843c58405d31156de65fbfe5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.519-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7718ae8d9d0b1798292e5681f89aaf8c1893d5948ce87cc576ae2bec248129c7
MD5 2c4905d29c89ca8442c17dbfb96204c3
BLAKE2b-256 285f748aa3a977adbf47ed27d09fb370849eacf910dee19addd9170a664a9f2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.519-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 68fa1ace9d904fb6077587b8e1b9427e3615cbf331039ef4511175aa5aa97cb6
MD5 2bf06ac6823c86ceab8d13ba5420b61b
BLAKE2b-256 9347c064bf1a4a545810cc831b1c58b44c23b93abfdb9b6b2c8dc5b3ee07a345

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.519-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.519-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 076eb1f24161dc01ffaeee7384072158128479a441a023876fd2e44c3c979e0b
MD5 ed4fd4cc7f0196900aa5309ddf47abc7
BLAKE2b-256 91a045900a7f4ded9fee3bbd7353754b6ad061f0211c82293f986dbd2be2a713

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.519-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.519-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a23298dc254f1f466bbfd989a01025211992e157249126fd5d724a4f30f069cc
MD5 45485898a0ee1a3ee5e4fcc8a17cbab3
BLAKE2b-256 f94ee1ed46e6fab5945d30ac2ec050e02a70711de62695f7c4c015628b9dcc7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.519-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 57b46b0a07cef1804c39763bb9a68969c003c93f95d6f81a2c6a417fffd15717
MD5 46507223ec7f17332bb2a8b29f42522a
BLAKE2b-256 7c9787b6be314ae418ac7de37a6fc17b23e99478f2aa1565b67e68bbe91573f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.519-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f759dc602e8d4e61af5078bafde46443cad89dc60280b119f12f0775226a6de4
MD5 140ab9a8210989322bd356e32c58bc7b
BLAKE2b-256 ab796620518245b470588e7cf2dde09e01f83144e316f4e22e8c4df2abd2468f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.519-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.519-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 aa1eafe5c68957063bee15a6285e65b01a142d3ce6e165b308fcea802bdf63c3
MD5 45810b359bcc92008bab912e5a919bc0
BLAKE2b-256 05a4acb079b9ca556165e41e7e66e0ca56fc1f97eafa7bdd1ff78e8254e7c5ae

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.519-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.519-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1ac02d9395b9f1f7db3140e9d6acd1bed021190b20f21c4dda3fc0a784ca1045
MD5 7af5dfafe3fd5a0d377b87f959c31a0e
BLAKE2b-256 be006ece11e211583dfff9227ac31652f0616081d6aea8935a5c4d2fe5b92f5c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.519-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d1ffe0dc7fef5de77a85e47aa479a801512e293058a6bb1d9c6f1c14ecf1fd5e
MD5 cd8ab86da1ecf47dca52da312c5bbdb9
BLAKE2b-256 019141ecbf70ea2ae3041a0f6a03a49d958d41043b7eee23e2ac3470f672adf4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.519-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.519-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6e04c6cbbe59dac246bb348d4662fae56844a2576ecac344ed7cbe269d6cfa62
MD5 5f148ff0b66f2df4949587c9fad264f5
BLAKE2b-256 d75c85d8c0fe0f6bdf64c9d53f9f339a4bfc510c3328cdac7a209d33fb7cc42a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.519-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.1 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.519-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d4572cdf5d10ec9ba29104deb7705dd0a6ce6e90ef3e8af380de6e7163717b19
MD5 09258c259fa95d6f39a7c98ff5ca17aa
BLAKE2b-256 3c4d5c35980736da370cd8f1b369d5ed0e78aaec4ddcb67ee935ca8a7ec447cc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.519-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.519-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3423c302b415808537d5b4ab44097b0f62e29805e5a882c478e7d69f2f7139eb
MD5 7b337c5f216dd375a7263cd56b58e07e
BLAKE2b-256 631de57119d2068a266b46dc7a775816dda0f21938a58ed80c6b22cb2dc1e2cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.519-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dfbd65238cb9f9af7d12236f1327aa66b48a1ad890b321e225ca7810420c27f6
MD5 cb1e6f56973c1e9a7fcbc0c693438726
BLAKE2b-256 48b2ace7ea48df54e538ad3c58601a18e227c820c9dd89c021f55c270540779c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.519-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.519-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 04c4615d8b3178f524c2c32fc7dce268dac7b12bb16b1ba832f86c659a9c1d65
MD5 6586922b422cef1af9abc319426e8207
BLAKE2b-256 a4aeeef03f11abc6baf73254d0a799b574de2b3ec5e63c4f39b51bff9edaeb71

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.519-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.519-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 58d81e4f6cb95ff0d2fbe0401a26b1fd7b8d2e47802df6e708654f484dbe000a
MD5 426ca01917249ba3937f57d2f44cf962
BLAKE2b-256 1a5a4fb407c926e9e67099dd0a3534f1308e5760c451b45b4071fd9fea996b62

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.519-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.519-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 60831ad1a763816a09f49ce0c9de7eda8aa8a7a95e4793176f72eabfbbce2ad2
MD5 aeb9ea8474ab121ef1c482d26c5ee90f
BLAKE2b-256 03ee5c608bd960d4cc4bed7faf2cc9a58697d2d864381f24463a7f145aa25342

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.519-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a0e53096b30cfb20b3c7dbcdfa49c6e1f7421bf8141ef2fe136f9268491a4e48
MD5 105a614525eade7e16ca03bcb07d40b9
BLAKE2b-256 0bb60b1a404fbafa4f9da119c96dda955679ec0fcfaabbd85ed7f36942394c6a

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