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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.922-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.922-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.922-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.922-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fb45303364da2b8cafc9fc3f5dd1b8e521b8923054dd7060888827b655f31e9c
MD5 2af46bc95fa4d6ff1d92394cfc7ce0b6
BLAKE2b-256 b2af4feeb8009fd6f5ffde017877f2f10eea47542c01942ebeeeadad635abb84

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.922-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.922-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e3c5496ce68b82b6bbdfb296d815a84ed9a6a7fd4d5ad9f943dc4477c89a0713
MD5 91ade7bfb6573df14323f37f8b7e30cf
BLAKE2b-256 cafd977ca9f66623fd1d3a9096902706e5aa06bebb3a648372148a55f831c3c8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.922-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.922-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 16ab7c69442144b601aaa7bdafe4442248b6d22841ad27143630c91dfc62a510
MD5 bc460b21567554226b37ab2028c22f1b
BLAKE2b-256 56f353e7e7e32feaaa21821b1c2a20fed2bd59579c9910d5a76475b64090c126

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.922-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d3051e7399fae54fe309c2e08b136f464886fc3ad9ccc1700fd4bde5d9768184
MD5 60b4be9fca72b112906c50e40b004db0
BLAKE2b-256 b3d9f2176b28760239e4775dea5d53426a063d3c2695563175ce8df1a4b8d922

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.922-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a16f7e3062547126f681cc223df108c0c95f59a177802f861299490a5aceae0e
MD5 862e5fbbd159d98253435b72e8b3d488
BLAKE2b-256 227a01baa7ba7e200ed49fd73db13105c69efc6bda9f516787bfb0e5098b0422

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.922-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.922-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1659fc17fa1da0729e24d69bae9eb89413be834d09924005ea033e55302decd7
MD5 2beaf73da2a58502106a57010960359f
BLAKE2b-256 131f7a8ac58a39f17b6bbcbe5205491a511c37657385182e3d8ac2a2e4d8a657

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.922-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.922-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ec2d6804224fb3bf7e7f7cc5449ebb9374780f42973edc951e0057257151af2e
MD5 6063abd345efc3c7eeb98a3b4409934d
BLAKE2b-256 670e1e4b841649b63c1635668c694167896fed5692eebb77e190dd8380c352e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.922-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b67d437e8f85bb05d329566579ceb64219684b3d6d05c5ca8807766ea0bd659c
MD5 3c499fa24becd8b39133fb7b2b0502ea
BLAKE2b-256 4e8e46c13b4d323caa00ad7bf1b08d064a050a9aea3fe98a9e1cfe9900572b43

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.922-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bfa694db27bd572d946fb0fe92b5b64f580e43e8853c55e83592ee3e8475ec1d
MD5 95ce83ff0ceb9ba4db9357dca1fa582d
BLAKE2b-256 efaa926ff68eafe1d8c557b658eabe33fa9a216ce0530d1acbce8df1c365ffc6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.922-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.922-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 50c2e81594df0c5f2a83b38ba04229a5ad1eed7f74976facce4bfbf1c7e3b9dd
MD5 2f04090f207981a4d6b4ef016c9781fe
BLAKE2b-256 15265bd0a60dd691ddb7f9577200cb0518237ffc8b3dd6f3dcd9fe3e2df7d91f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.922-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.922-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b844acfb5120ea7395d28f07b91e645c88239fef90388ade0e93cc18de33767f
MD5 3f6207c816a3e43c76b82fcdb412ef5f
BLAKE2b-256 80593b1bf095c841f27529facde50669a5eb6605d8c6c343085fd773043eb561

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.922-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 544f75eff7523f4406a716dbc79eb4c3138eaa1c6215b98f42936dafc63cb0c7
MD5 aadb6d8243a3819283b504e2a2b60bb1
BLAKE2b-256 5b26dddb321b015baf8abdf3ea46e38e0c3530740b067a71b12d5a40d00d102a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.922-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.922-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8575620af1e101393a27bb1d248331dfa8ccd1e19671bb0235fbad0efda53008
MD5 f6d9409189cb0ee924f90d6536cb990e
BLAKE2b-256 40ec4ec34afd74bcf114963208019873781a72c1c03376e807dd3752d6b0d09b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.922-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.922-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9290dd13f86492eb4b9f4493ec9486289f95016e17baba91e394b174ed0a1e58
MD5 61338fa808de9c482af265d9b0a37178
BLAKE2b-256 beab4874b06f8aa563159ba378bce7899151dead08b4f5b3f04ed2451dba1c02

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.922-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.922-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bb10b443399b247b66f188963879cf25dd6a501e85d1ecaf6c6d089e29de4dba
MD5 d92af1072d494a2891cab2829dd13540
BLAKE2b-256 66049e983c30b38be5974d9da048df7d37cb6dc4688bdc8a2fff500565664907

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.922-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e4e7390b5542add2beefe4808c0a02ca732c05215b335cdd4352ac974ed23dca
MD5 de8d273c23c4105fd79f893a6c4d2fc2
BLAKE2b-256 7feb53474bf90b3fa0682e3ef804cb4266039c96ae6e97d9687310a7d7d238f1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.922-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.922-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f7767ac3e955e2ff8611f1292ad0b786b7a920a203dbfdedd2f58c66962589a1
MD5 ce03136c30185b22559f08642a73c474
BLAKE2b-256 b7f4256625b6f9cf064df50d6dbaf26077ae180dc8df8299cd3544019415a122

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.922-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.922-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7024119d85df4b43eaab55db34be0a5a0259a40a441002f919050976e7ebacf6
MD5 faec06525011fdaf5790f5ed589aab2f
BLAKE2b-256 80c8f3cd14a9a50b601e71f8b6be0805a80c5d93a9bf6a25221ba6b83ba6f48a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.922-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.922-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0c191d70dd2fed68be6bdebf53ce1e320b0f4cdc45a05fdca901a85fb8dbca0c
MD5 c014c6f80fd42975f6f51e3215553877
BLAKE2b-256 ce0148a1cc181fd2e7e2af392a9625347589a15253ebbd2acc3dfeaafd03660f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.922-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8199e7c3a2536842e98493c2adf3f8aff721f038d736e417f3b65eacbe7db703
MD5 6f3b91ff418c93c606d05c6bb5dc4805
BLAKE2b-256 3a98cbcf70a0b979865085fb14d573d9af55ab9fd82ede17a437f63d9d8e282a

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