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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.578-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.578-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.578-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.578-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a1719c8fec65cbe8aa652d84f4d5fc638a8868462d8d27a6ddac149b6ef43bff
MD5 6cb8f563844bbfdf4ae8f04ccc6615ed
BLAKE2b-256 d2f98174662577857d0d08a674b9a4d8d12d21a393805b84590d6553396cda11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.578-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.578-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 71d3195d3ac918ba8f652da5c6d3265e9b9ef7119c2eaad3a7af92d37f33afad
MD5 db3d759965c09053ccd13f007622e09e
BLAKE2b-256 b560c05b469efefc15262faf6889965b5db66934c4abd89aefb8126ebd4cc71b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.578-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.578-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c0837761197b08fc170ab91763c2627d0789a281e33e333166efb0891767e109
MD5 3a83c840eb0c4a584b54ff456177675b
BLAKE2b-256 2bbc10ec1fbe8a32476efc13ecd8478aca0cec57287416ad881c58150e9787a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.578-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 125f5345a9c5aa264e6791401d6c66518deee43564b6412af1d575f20af230ff
MD5 04e3e4bb871a3fc678e6b76dc0524fbd
BLAKE2b-256 4aff1ae9edc1740ab31a14c88f9ba66b0293c2e54c1cc49684a0bd31cbb269a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.578-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 63d0461e83e1e3885c93fde796ca571f7fd041bc1b36a09642fc1905f685791b
MD5 3981fe92c1e76b3fd646f16dc4635c08
BLAKE2b-256 8a8e3c9b7c75bc32d2f0d68e667c9f99532292801d4e4bb6dfa120fc7470d2ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.578-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.578-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e3bc789c8f2014b4e4ef1f84ac0ae14f2602644d729ffa186f38374066350788
MD5 eb7082ff520667d8a697c72bd8a3240f
BLAKE2b-256 fe351bdb1e165c3afa90c092333345aeab92c69b0899e2b3867f51796a7b3305

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.578-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.578-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ac20da29b4dd9ca222eef45d8b31f7b7516e4b47b31020858ec13a93ed4a4cd0
MD5 8e7975ac696ef1b89d90e53b164cbf2e
BLAKE2b-256 6a4e65b351d7256b5225fa2f3d25a6e0f2115ec1933fe6a8ce56c342e2b30a15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.578-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c7f5fc3b4b364696253440893f48892b275ea2d63fd0b42922ddee033cc65778
MD5 f5a28c8075bdfd86b99dde02725a2de9
BLAKE2b-256 24154252a2fd1af7d530ef391b47dde85089f172edb49bbd5996bcf35029ff39

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.578-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0d0dd32fea855b7c4c9b26981631dae6933623db584629c8cb7d086907940f11
MD5 fc2b8af68eb9a4d921a1fb73fc037e36
BLAKE2b-256 e84b7a7ac54b95f8b29b0b1a60968e1958dfe6d41b8e38a09cb27ec2728a7eaf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.578-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.578-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3a3cf6bc92b33b919e5295263a1990895a64ba4d55a8abe7cc2eb7a02eb57dea
MD5 d86a711dade1386b274f1f36fc866bce
BLAKE2b-256 e788f82f727e1c06493306fc4ca2bc6241660e1988d058494a48333ca50cc925

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.578-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.578-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cce1f6e67283c52de288e983930bf0e1cb629f91039a667dfc3fe49ce5b6ff8a
MD5 b2c26a3c31f75ca8d18428a1daa8d433
BLAKE2b-256 c1eec0d4d5e4ff689c60c8c8baeb24dfcb9c8c369cef3ae527f74b277f4acc92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.578-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2e79ce525c05ce35d51dad5b1d3c975b8dd5e87d43ae9b923580c8e62c47d228
MD5 b5c345b21c1b7cf3c4f560f63ba0badc
BLAKE2b-256 b8fff192ee35f6765e7bc71166f6f9d8f13d8170497cf1c4e8b73bb0720ba44a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.578-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.578-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a45aacaa6e94a4f0c424b1f45c8729079f8529e45346949de0567081d4365c6c
MD5 5120f373e6ecdc1edd0124b0a8edadec
BLAKE2b-256 6092219dc6a92a380159fd0c9d4f25e4c638d4dc4e6bba10e5b6c07f7cae03b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.578-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.578-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 da892d1d2148a7b48677bd1c614cc1db40a99be83775242f6ae7f1640d819150
MD5 af544bd2ac1cf2bac5478ceff4d2be6b
BLAKE2b-256 6a4387c1794f88130584784d673f03659e3920b3733f6c581aac168119e27d4a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.578-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.578-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 357088d5589c73e868f405adff0e76f696223df44914a0d9f0678f80b3906540
MD5 e977e4b91a99c48616dbedbd920bf042
BLAKE2b-256 32524da213d7b679d50e35866d5fff4b2d7132a7047d8b7cc48d11b8aa2d2ffa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.578-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5ac563b9a3501c2f52410dd088d5cbe7b4ff8ad2d4561c0b7df1abcfb8e3e29e
MD5 ee41b1b8ebc35d2110ba99a5ff28e5f1
BLAKE2b-256 20afa3082f6e5d2f163185bff2773815b94e1a15f280f3e7914d73ca518dfff8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.578-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.578-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 86b243421faab242a8b2c788e3887ee0a92e044f148256ff9cc24c7a9993196f
MD5 4df56ed59cdcdf96ba779d33b5498752
BLAKE2b-256 e359e4ce77dddb71a4efd6882c8148b5b6025b9f55a8e43328f07420bff248e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.578-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.578-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e3288627092f8c49ef8eeadf99874c5b385ef1c21866a2c04a94f09cfe5480ef
MD5 b0ec06fd1964eaecaee91164111ed841
BLAKE2b-256 bb88d419de37aa0b0fffc685515823cb80ba3b076f711baf8963b508336c9a4c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.578-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.578-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c2fc3d1c0caf16e890dfeb8d2fb75f9fc6eceac2634cc0c089fc5d1925f275a8
MD5 9c13955979c49a01cd13e2a65aec8a7b
BLAKE2b-256 d8a43f3d95bf8538db9b82cda8f973e05315818e407b968b35d82d69357c84c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.578-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 21104dbe32052a2869705c562b0de4d8656bcb84cd58a8c871a31a3dc778ba91
MD5 ff9daf78b4a309efd90af0dcb3e73d2e
BLAKE2b-256 887b79f26f320f063e1cad22866cc5afca435ceaae037315de3d0823fa1cc38e

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