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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.881-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.881-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.881-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.881-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1d94e539637ae9b9af8f5e0a5337d7ad674fb292e436c0d1ac0698de383251a2
MD5 eb5d25688728c03c5f0390259b39ecb7
BLAKE2b-256 6c2a8cd383d5c25649b3291417ebbfa505ea4ccac4680034b0ed64ee229c7c46

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.881-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.881-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 fc778ae918c210bcb5c6155ce7b85601c34592e0e1aa5dba8d9694ab930802e6
MD5 6fa08cfcceb06ccb31f2d7dbf55028e8
BLAKE2b-256 df696adfcc64496ae6966dbe2c955f0fd15fa394db19793781c8ec19793ef558

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.881-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.881-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7414ecd84a1c8d4f3c2e03dc0f051068ad8c30f74f8d97098cf7f0946f7fc85d
MD5 b4b2778566b72ee659d97966a3da3c91
BLAKE2b-256 274278665b8b90b98810a84d7bf9db2980ce1ee08bf67aeb21a94199c3c68fce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.881-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 057bf27a2ad10694ede80fc0cde13acce9c879540c32dba900592f4378be5436
MD5 10e2801f135031b90f8064623287c78d
BLAKE2b-256 c8c6f9382be27531dc1cc010f9c9faffcbad9282709f8bbf38f5fe6af8eeb255

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.881-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ecc21d880de068ffa2f4b87077421de982b56577093006be1b9dec1f3b5ca3bc
MD5 c76cb7295038550673119be3ac1aa9bd
BLAKE2b-256 9ee57e26ddb430796950a5550d10dfa4e7107075b5718b25d461fa2fe522ee83

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.881-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.881-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d51e132f364581a82cf92634de0e6868a5f6deac2f6e481c07462c0db71015ff
MD5 a77d72835f7253343c141b669d5f12a4
BLAKE2b-256 ef44ed32b506a5702b2afafb905a9eb1647a49be3db832ca5d6c5c4cdda1c468

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.881-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.881-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 595e35719c4705098ec50f41a0b782dd2d1867a9c08ed9db1c35a365b673b5b5
MD5 2ee9f474500de9dfe9503022b8cb7919
BLAKE2b-256 9d85f625d0efed10d22fe831774a02236ebb72fb90530375daa50fb6be09a4c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.881-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8f637809a9b89f3bbf6bdd0f55f9ec31a27996cc20a760f2d826bd79ae8f9c3e
MD5 5eb9d1d0ad8065a567333dc61d3cbf2d
BLAKE2b-256 e510bc2bd65baa19ad2a38f90ee46722a269c8fcef056b5e656dab028a6aebde

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.881-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b47c4a94e9f22b968d075985318fa3f6d2e4d0217a27b7cad84e7a58fdceb5cd
MD5 03e9972fe741730b8f71a613bedceded
BLAKE2b-256 da6fe26805edd08e76a35986d6c7e26a247adbc931579a7dc35cfb594a4a7fa2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.881-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.881-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 475a439c8a222c8a741d35dae4d76f3efdc88376f3775bd4d252c7b38fa34fb5
MD5 f2edc848ddafef537cf080a354fafd1d
BLAKE2b-256 1eb72e8d5e3f961184d0d49406e15977b8aad718c1557b5bd76af912dc444a4b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.881-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.881-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 36cf886711465d4f3af797554c32997e4d7f82b6f81854bf812d1d0cd789990c
MD5 1bfbe1919f74b324bc8dc954bc8b5130
BLAKE2b-256 8665352a1e4d302bb0a490f16dc08c1cddd1ab507c1d31d5173cd848d1e29cb6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.881-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8894555d6d08d43466e88c7c3d00616984d058b8b9ee16bf5c1e8190475641aa
MD5 5569b687bd9021467af5c708fc5a22ee
BLAKE2b-256 4dd27ec60c181b09a978869dbefef64de4090ccf930cd35665f46dc6112fc39b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.881-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.881-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ecf91399727972fcb773f0c844e3ad197b2bdbe433dfab956d30dd18bcf550d3
MD5 5d60a9362a9d3c7407a58b6afb0310d4
BLAKE2b-256 8f4eb2f8cba8e01a00b1af6ab3edf65760606e860f4eb35304335ac2c84cc7a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.881-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.881-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e6dba6ff82b6606d53c6cc8674f4c41fd0b148966e27a40dcb0a8d09bd0e1b95
MD5 5cbbacb2603f49f4d53cee8188d7adb9
BLAKE2b-256 40a3ee2089fa3d12dcdb687f2a8bbdd5ac42f53fd54ea5c6d31542fae386caea

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.881-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.881-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e892c86ecc2f34d82177e4aced35f8f4bef33d6c7254bb3f41bc4f30d056a7d7
MD5 31998a391bb1b5708af1fb2f786fb198
BLAKE2b-256 146e36eaac149ae860382507b43c9d8a81615b68c7a29b634d7362b2c873e59a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.881-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 71e88d744f3403b5be090dfc98db888f9606dbe02fa4717e63f86b07fe815847
MD5 80e178e0f2bd8d525594e7c7147d2e43
BLAKE2b-256 b0166141ac3b6de5e8c29f74a1f9145868d9235093bb53ef8c2a319fa7656510

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.881-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.881-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5d5e68c62b9fd136cd06237df2f23da8bc8d2de1200f67fa392fea45acf3ad9c
MD5 850841b0f87ba8a7ecbca42628b3cd46
BLAKE2b-256 c7e085f2c7767e06717bc0e48b37e8784d6ea9fa39b67ff6bde04779b9252228

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.881-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.881-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a24f0ab6cfadf7d130d7ba6595444b861db487863b0921dc0a5d06d2747045a9
MD5 2f2a8b4b89ef97e16d9835add1520a1d
BLAKE2b-256 fb35c0c3327d7321e2bc02717729f7a84225c9d22894b3e062add498a8b4880d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.881-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.881-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 45c97268cf9973cb83eb03b29ec1575d9d6e231b584357f8459dcfe6230a2a8e
MD5 9dff5b40f49f975afad26516982939d0
BLAKE2b-256 eda8b8adedd1948844ecaa73ff86ea9b1df03fc61e1006daa36be0a9bd28f74f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.881-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8298db7aa9517dc71263fcf7f860d9397d900d20da555a835b2f46e553980c60
MD5 49f62561ad15f2ad617904a009297ec0
BLAKE2b-256 a18400a4da5dcb02d46f766a26ebd088fa3ad606f4e08d6fc0a5a6d3d9539885

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