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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.250-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.250-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.250-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.250-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b7e2f2c993875959e3b6308902f3e713006bb70a4e1a43ad725eec6b56a31236
MD5 24fd775ddefb2e1905d1b1a36fb0ce46
BLAKE2b-256 1db87a3ada5a502818f09bd679893363f1848208e0126df3f6fbfaca5704e9ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.250-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.250-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ebfba41aaec6f2dd735b945605463320e2d963adafaa0484a38bb2f1813b3b59
MD5 69f100bb64894d25c279a4939b3d808d
BLAKE2b-256 81d0f8094d48a3db7efff277359d9966f15f2e610d4a6c255672ec46113b0ac7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.250-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.250-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4bbf38e21c9981085c6f4b3234b9d8fa5a844e3f018a108d72ff1037ead643b2
MD5 df13848b8a3ea7915e5909b060fd97c6
BLAKE2b-256 d6b6dbfb37132046a14faeb103b379b3c7c145135614667adbd000e15556c2d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.250-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 76660f15e5c5b2a3c9b55c8cdbae42f0d0bcc452c17d27d38931e2f9ce7d390c
MD5 7fbdc6d54c24761f78c54734ddbbc9f2
BLAKE2b-256 f74c2f1097be0f7de2cda997be0c5ee104bbb4e72bdd832d0b7d01d5040e4555

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.250-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b78c622386e0e2c9c1c634411918fc998ce019c6bd110f5b76539d62ffd470e0
MD5 b61ad6cff8505417c90c4d432548ba4c
BLAKE2b-256 599c460addad7641304c332966a697b83114870afb24f35b2cee1f0eed102cf1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.250-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.250-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0ba3a96b56effd22a6b7207037232f1a1269db80c63636698c9861355e6bebdc
MD5 b5c955594c107c429b92a03f6e53521a
BLAKE2b-256 c19da71645662c28ec0e090afd688e32107cb72d7d22f6dfb7f1e2b6723aa773

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.250-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.250-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ac50bc267558d0c9e0314a7701b2427833331fd59c69926fb6de11e3c8618a91
MD5 b487519edc75e5e2e69dd1c39b9944da
BLAKE2b-256 b6efb2b2d7a34e77134421095423bac52d2af5f1b330bd380d46cb7525c97464

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.250-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1b5b70707eb8bb337b1df5df8d445e45eb706d7f8d0720a87f791022747d61d7
MD5 8e69f15d762f8f35d5a7a018b33f7a92
BLAKE2b-256 0fa716f5e54a2c9272bb94c3fbc6ebbe7b916e58918cd52261a4431a4d6794ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.250-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3540fe5d782459be8b4601b1bdebafd6bb7067b642157bd9882001e49eb1d1fb
MD5 5f8f1c45ea02e86d78a45d178c72efce
BLAKE2b-256 0d163b8e296f7c3b9b18fbbdb8171e73f0b043a7b7664d316f60767afa2b40e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.250-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.250-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3054c9fcfde9c208e329c7d2e00c7707bd4d6f7db065ea02b3e2f966976d8e81
MD5 df0ed8f7f3bacba7a731625bb9281e6a
BLAKE2b-256 a0a804637d404bf73266247fe53ed83e7de8ce89df6c50e0a9a3f52a398492e3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.250-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.250-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 80ab7bab52b8d2786289a471315f9ab2af04334334d21f9d97bcae081a04ae9a
MD5 153b7fa31911eb2fc53265099b3e1809
BLAKE2b-256 c56d3d8bc932f3bed4bc6a62768a084c7446076b9c9ead6eeeffc978b77511d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.250-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4839003fbe43ed43bd84b900dc77548ae27a774f0777495e8ac9a64a429aa598
MD5 eae98953b6ab77f349a65b63c00060cd
BLAKE2b-256 f0a9b08cbabbe135fb8873e6a3f721110d79bfdb375cb18817c72028f04e3a5a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.250-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.250-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0543e49a20682fb9508e4ede54c972f75069a406eba184c74ff9ca1fc7028bda
MD5 2584a3fe492fc49d62e69607f0e9b2a3
BLAKE2b-256 2608ec7c647c40c15ab0507bb619a1e6603bfd5d3f59563b4f9ac5ec4f04b207

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.250-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.250-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 38b163f97b66b9af969b5b49d4f399c1228dfa1eeddbff95475d7eb20ce6f74c
MD5 013be4383928ad658f8303d3f4c43183
BLAKE2b-256 5e22516dac4657cacefc2b8d17675aae481101d746961a0bac41fc03c8bd8735

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.250-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.250-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 03456e76aa0ce1aaa62c2f9e5053af8989074fd0d7272c7fdabdc0b6ffcf635c
MD5 41cf3e45f216ed59b43428c57b6c1a00
BLAKE2b-256 2baf02717a2039ebdc4ccd6be204603b5fcf5a411e468f46d3fef499a481336f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.250-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e9e7aec4f9614aa0e3bd001e37d2cdb867988df8cb56077e31c58ece67d14399
MD5 e634428dc9244ed763409f94e607ee90
BLAKE2b-256 c5cabffcf1d2ff763cb74aec7dfce67a0fbcd951cae6c5f7aaeace08d2ddcd2b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.250-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.250-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b335c31e9b1cfec3666ebcdeb78e4fa45405716a301098cf942bd2ed8cf5d24a
MD5 47003d19d54076d0631adc5534314e3c
BLAKE2b-256 381cd53d0293659038ac617c589c69ceb574cb05bf5fd6f0eb4f2501eb4a39c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.250-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.250-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 dab1cd44bb4ca4a327bdece73be0b6b8d560b2d300b0f35607a93f97ad9c9ccc
MD5 9d6828fc09cdb2a4480113b1e4e4c243
BLAKE2b-256 79eb5ab4ce4b50aeb9a6a0d6bc406e2fdaf6d0308f163e0cc238a4c8966dd9bd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.250-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.250-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1f52ed82091fe3049cc78446fa8e0ad695567ba5e306f38047211930f80c8ea9
MD5 faa1e8318390d232705c3e8c02785b09
BLAKE2b-256 784bce0210eaf004dad9706f48facdaf921daed069bb2c31be4ad90d9455708d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.250-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1a83032bd7325a5ed1c9879ca2d58a544e5ec5a3e5b771ee50899813113b557d
MD5 adb85c7cf2f9c8c2f59b2213d4251105
BLAKE2b-256 422a7a9564ada3115859fd365dd5b4c707b732566e8d0f0d4a7c29959ad05d8a

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