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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.866-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.866-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.866-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.866-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7484b4506f7a81eb738ea2e73108f79be3ac3655bb26be52e63cab0bc35e4eec
MD5 c62f58f50e441e1cc70dc2959587c8c4
BLAKE2b-256 99005f9d8d77719c42015fdde8a0ae6786c0bc05f77570d88f6b55186dd1e0fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.866-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.866-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b37cce9d1e7b92d4944d86cdb4f6eee30b0ac6e88553802945eb31c1658d201f
MD5 ce5352796d8a1954d0a32d5acf0432e9
BLAKE2b-256 b050e0e2bb0634919d25bd5d3483df3f1c025c56e96f805039289c3f294017a3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.866-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.866-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 274038d276eb7e0bcebe90b97d11252f7ba2a1d5e14bae0afa51bbd7a3165fdb
MD5 70d96e3ad3cbb567e41c194021a93e6a
BLAKE2b-256 2e7fe9f00627ed717c66d748f6ac95d54022b45505a2421291681f603c0f06c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.866-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6ec34d42ce755d7f8f25ced46b2548b9aae0a82c9e7d262737109c64cb06dd75
MD5 69f02aa2d77941f9d8b4aadb49e26028
BLAKE2b-256 ed40d94e6cdcb26ec9770b51d7a7cfd6f2c219e8934df109e35b064567cd881f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.866-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7987cc885529784d24ae5d4ca640a2088b781dd906687f1e869ba615e7002db5
MD5 f08ec48ecb875f0b8cb82feb8a36887b
BLAKE2b-256 70a46425be6d103fe86d8ac8c3db2142dae30f4c956c93a6dd6c37d411f39081

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.866-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.866-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8f347b69a1f6454b0f572fbe06cea6e7cd0c8e11c366219bcdbeedc600defcd6
MD5 a67eef625840d1175ff37f145d0c1d42
BLAKE2b-256 17995d67338dc68c83a186f9fd70a5d37260a336734c3314b2737213419da280

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.866-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.866-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a7e538be9ccaec3ad5a475a0641d388519fb5a0fb4942033c088099a62bf6f32
MD5 121dfb2a008e7b3f213f82d0bd5e73f2
BLAKE2b-256 bcabe720abcf8155957071de38f41c06b153e45348898a320955884bb91f945e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.866-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d98bfca2ec7049b7fa64fb9bdd2c2c6584850ac20d5c719fbed93c287e92b4da
MD5 edba164107edf10bd1e36672c21f64b3
BLAKE2b-256 04afaa837715b9fd7f3c60e2d422b30792d48764e1a74372a7368a88ad6d633c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.866-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 65c5452d993af8925898e718d4d6ac91a439388458af382ae6ed361346ea2606
MD5 47b62f8f70213a0edd72e4ba5dfdfe82
BLAKE2b-256 13b5437de91fa957f720484f8722144bf896b8c371c032c99744444c35ef7dd9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.866-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.866-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d607cd51900969459fcb2e5c79135427e3913b7b19d3c5624e996fd12a06a7d4
MD5 63c2da106e8ea85b70b7a57370b41333
BLAKE2b-256 b9513f2cf8ef881deafe6173371379b24127062319c6b461411f1b0560858262

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.866-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.866-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a645a9cbedd940506adc079983351119e1eb7138ae04c7363e12d12950d4f88d
MD5 c1e6a146c0d06fda69f1ad96390650c0
BLAKE2b-256 b68c05ce1e02c32a0fafdf4205e597c12e108d9cbe8208e7f71f93de2c85d964

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.866-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 17b73671064afd819557a0a26dfb189a5525b0a72cc2718ee35d84b0688e12c5
MD5 79afc218a55a0f447b665c28f83fb898
BLAKE2b-256 b143304884a6aa964059ab7e5fc9f52230143f9c3bdadcd6f3e57dc6fd5727c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.866-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.866-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c49a68cbd8c4c9b4853e171f4e7d141aa4029b2a02dfbbf9baa2c4432efa6fa2
MD5 61f1351a061b627909581441d713adfb
BLAKE2b-256 41da78a3eff251876109ce44e8dc3ade558f442443ea03dd22cf49e0c4844586

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.866-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.866-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 cdb17ecf3ab301c25b91145dc9fae909dffebb1c78fe538453f0a9ede8a26047
MD5 3284eca19bc0cea36d437075788e6e75
BLAKE2b-256 ec8864027eb9a56e457bcba3f077ff8987f8f9879ec661bfe99464bae7d7d231

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.866-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.866-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7d794259d04f54835e9943988b7e22df03491b73f9b8a5a3ae20c4372ec9bdcc
MD5 16bb95ac78c05ff8bb9b51c82c803e52
BLAKE2b-256 1efe939983495bd98b6a724199fdc5974b667022366ee711258074a51372a6d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.866-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 88974f877f43e18b3878ca785b339a08497c28dce25a7ec208db85f6602bcb23
MD5 e6c00e850d18504668d211af05687c46
BLAKE2b-256 c1d7776d03ff5821c76efd48e3d65ec7ac74b2fbdd106b583dfb41d1c6326e62

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.866-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.866-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3248ecbad36ad5a2f7ff1b93abe62cc5c6667b4ec962a34871f5d135f21de6be
MD5 a86903a5395e591304373da8d2393441
BLAKE2b-256 874077a61adc2de823cbd81ad8921aea0fb2ddcb46d7fc16a83a691accdab5bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.866-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.866-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6bf539b77b6989d0215cef45a238ebc83a183fb8aeef96478a35e7f25c037bc4
MD5 3a3092c120f075a17f98fb53bc00549a
BLAKE2b-256 573c57b86bfad44741bf76acef19d8c2293c3b963583e8a1b6b5e8e827e913e7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.866-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.866-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f978638ba19badc59ccae0a163425100ab245afb772ed9239dc278dcc9bed611
MD5 87e569f1b037bedca699a448e93c9766
BLAKE2b-256 cf49a20af72a0da780e3eeed1622b56714e530e2e52228d7c2ed9c4d8869fb39

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.866-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7525625cc3c013b661d57ec83d8ba69a339d53309aa11e11c585d4e99de50561
MD5 4fc95ca17a536920516aa507f9300149
BLAKE2b-256 33014d16f0a47d9baa8a44f386c7e04cab5a09d06a9d3d5c933f042dc53ff7ec

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