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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.152-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.152-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.152-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.152-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0d95f75ca450ceb6549fdc5a4bde0b1a96fa87120ecd2474a953ffe4722f35ba
MD5 e0ec3c9b88b590b7722ffc75d150b2b1
BLAKE2b-256 1610c2e5903724787d36a5e267b91b5e52061b714a6168e9b65b93890d6ce4ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.152-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.152-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 26bdea8ba21e91f96ebf705b4a688474ad1bca655f4118010d48b3cc29ded041
MD5 fce03140d6f3bfe4d7a79200293aa253
BLAKE2b-256 8ea6b03347f5cc56073120666f5071c9c8825f360cb0533406cf8cd8665345e5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.152-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.152-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4a181db709815b6164ab1af700fb5996ddef9000b138ae8dfcc7bc907987e6e9
MD5 0242975df6c563e285d66b468c06f99a
BLAKE2b-256 052bdc558f7dd455aef3ccd7aab273600237e40b2ce599fafcaa34712094b73b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.152-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1257ca96e73a805eadf2245900f29c68ea3d87eab352a7366d1a1469ff20d811
MD5 1d9b9c508a04c964c904db18ef29b16f
BLAKE2b-256 0dc1c7dee3c58a12deaab7d21e08b3ba98e2a8957ea660ea96d482d4fe6ae387

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.152-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f63cc6c4ef21b42583dbbe1a51206b5ebc4942720c158305cc778968db30f2cf
MD5 fee5542148fc18cda82b1d0dbdecc47b
BLAKE2b-256 fd8d72c35c2a5e8207d822c464bf2c0255b850d7cec5e993079b9817710c5648

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.152-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.152-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 388cea191aa4c4bb4e6f7278afee9bccc926e33b246b0e4ed524dfc1b031e6c7
MD5 e5ff179a9beb625011f4e4e53056c17d
BLAKE2b-256 f30421c8f89ff95874e4ce23249e1f3905bc5f758469e9b04ef0cf5739f15ca5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.152-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.152-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6e8826a0ee6e3b96a2481ef61a980e7c6a520708e1d041eecac352926bf57cea
MD5 cfb1b132167a00b2cd2a9dcaf2e43370
BLAKE2b-256 a1217c3c88f7ab98609af699b39f124149cd784d9766901823a1b56e1d00ee9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.152-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e5e2bff73d82e849f4b07b657fa9ce50d4049350408719014258d97b08eabbc9
MD5 03bae0afcf698f814a0062596fe71018
BLAKE2b-256 5e9ce89064743fdc068bd68fc9dff70014de7c13029e4231cf2721b74471489c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.152-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 353d246c5918152f110dd989fd4e17fff3074409a547ecd0befe2e23b223748d
MD5 7555acbc6cf38de19121241371313832
BLAKE2b-256 b17b922281d74d11bbb9cc59fd4c2d1872cfb192bc717a4ee5443fa2a0b92b97

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.152-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.152-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9cfba3ab9542e02ef7b37e394c803b9e52debfadefc34d800261f8dc3e56ecb0
MD5 27ec2e8c6b1f94a647ae8b49e5b596ea
BLAKE2b-256 b6d2471d5495f2a3a851d7805291ed5e08d55b2aa9f7c465ebc44eedc4f7df74

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.152-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.152-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9638a1f0660ef6df6908dba0d46cfed02c7aec17ab2bfbd0c4f7555d6d5fb2de
MD5 668d004292722586bb3bebd276e7a9c8
BLAKE2b-256 dafb7751bd3274ee1f8793624c78dc4da54d5fabd6105f6d65aa8df95a0fd5bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.152-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 76dcb021dc4c197f5c000a089fba5af0737bcc8b833267becd20fc9c9cd76a4e
MD5 9c5a18e30a3c6b2154038144763b9ba9
BLAKE2b-256 c2e8f81e98a171b37237bd21115b82a1f400efa612a6a203e6801ae2a84a7e1a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.152-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.152-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b5b5df4a4e7f1561d026624326a4318562032735df67fbc8004e906edbbbc193
MD5 fdda1761c5061550ee2cad04c59d9a89
BLAKE2b-256 15e8b27e51309bca76d52c1ac080996b6047fdf2e8f72f95f0cfdcfbbfe9a69a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.152-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.152-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 85c28a340324b6d14de901980009d0e9d39510f84c3e7996e04ca489c2eb59d8
MD5 0e00e53b1c7bc61a85c554971fe0e233
BLAKE2b-256 9929190f30064b3175729a4d5671aac0b553ff4ddef66b5270a4f7228a80c2f4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.152-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.152-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 500f1eac83446e6743d797345820a93f6d0b0d147ffcdc9f4417eadf3212c588
MD5 ad153716abd80d543b56cf1feb1e3c69
BLAKE2b-256 8370659fd617a8cdfb12c11cd4ddcd9fedf9a1401ab04ad8bf2e0e175c2d849b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.152-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 df98f42cfb19527c399f6321a7016b433de5d6c64e2ec11a3dd3d900ab6e163b
MD5 6436672e3ee4c9503fc48a7ed566ff03
BLAKE2b-256 6b978fca79404fa56cb81b1fde41d9b9133f45004d4eb58c748a6e2345278bea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.152-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.152-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f30d7d6a3f92abcf878695c27e59c879d7dd52263231c536786697f4008297c1
MD5 b8a4754b0b2b7c1e872b426106a1cda3
BLAKE2b-256 0c4e6c80e85d66b06fd93e28a68f8d92079f194605baf9a3df8794b022f948b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.152-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.152-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7b958dd7936620e33913b046e056217673110ff89c50bebffc3764e40f0c8692
MD5 b74ab8e6b9afd08428f2f5d1d090cf1f
BLAKE2b-256 39224aeade5b5032d73c7166eb10412a5719d5b3a297134c230776016295bf63

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.152-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.152-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 842218a455b58605ae4e6e8813364f587d31faeaeeee07d87d3f96e3098c917f
MD5 4f69633e8cda4a00f64876ca8fd51d58
BLAKE2b-256 d5778d1c31fecba88a476ecc2a8de518ca1dd279306bb55ab0a7bb625cc23b7d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.152-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f456beefa2f8fadb80805e2c50d2ee2e87daee3a58f00ca1bd0c432d2e4ce601
MD5 fb11f2fc0f23b2d3956069dd4d4b82eb
BLAKE2b-256 99cd710c53a612d1b87a86734534159cba78b008862cb071c54e68c64ab61671

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