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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.966-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.966-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.966-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.966-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5926a2afedf6f87de1818f26e5589656628c9cdc57a274342cc2b2239b7ae72f
MD5 9b79276384547ceb32722b4ba3f51462
BLAKE2b-256 2f0669ce8a9c94175413d0a5d28e28c63d24e09e6be96b512bd2d0f6bc2bf6b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.966-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.966-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f67bf73f045bb340736e7f232d9503914eafcc95ead4f0d37dae3cf2b160b6bc
MD5 f0bf054397e569395296ef68331269f5
BLAKE2b-256 16133e8e68c2686fa079af5071d06ddb12bfe0fe87bd8de83c6d3bd77838d52f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.966-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.966-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5037c78ce47ac69ace028d20dd6ae1d84300fd53b10f96c28b4bae74ac14e84d
MD5 0f4435f64a319b347112c2a685361627
BLAKE2b-256 2988c5387b15ad83c3bddcbb96ea23f1b771654fef6e1278f691303b3becb575

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.966-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5b672312723b1f569214a5d6f1482b336842ff31b57826f77d2be9bce1efee78
MD5 276558dcf9fffb5e9db8051e4f89bbee
BLAKE2b-256 2bbbfa0f4fa6973e6e762ed7f61893db2a27dc4c0f16653ff7682765c720d412

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.966-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8f9ab70534666b9243fd6bc5268e6663c8899e6755c8a234a31a7d5814ace816
MD5 56ed96ed187e31199984d525d0cfdc78
BLAKE2b-256 ade893ccd115b8ed39aa70b369fd3adc634b3ec82f2f8531a3c06467c7c308ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.966-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.966-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 38dbf9b39c584949751306391d732d2120ca1c4cd92339563001ce22bd4052f6
MD5 1ead57d4cb850b9d87144f8a6f711eb5
BLAKE2b-256 398e83394658ebe24ef8d9d8ec5d06bebcb13d4c8d9456c3daedcb602eb6324b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.966-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.966-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 81e10ce4b53daaca290d8257ad1ab7c55bbf2786027caf2fe612f67d59e39fb4
MD5 9da7b64a7655c73bf82fda0d80031cf8
BLAKE2b-256 a26050ab8dd84e8f854e5730ebffb2b976d311ff0b612f4a9b2a34d9664dad06

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.966-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0be6a91e0978d8c8fa68ff4c4e3ce093778b62b8e3615bf909fa41e132609442
MD5 fc0699f515b98b43300427d04caf7be7
BLAKE2b-256 9c36608dcf39c50b9119b6518871c246a7e143086da2e99a50789161b7617fd2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.966-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 26ea2b7041bde0701eb8647737aa224a89bd5e67accb5319f529cc16d8ddbb18
MD5 4209b1ec0d6f0de4630306b55294718a
BLAKE2b-256 9a52181b30b643c99694f5ef6291425221ac62223e973a5ecf883009915e4694

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.966-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.966-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 bbf69ad418c0311c3ee3226a61d345fb8402952a8e9bbf9da9be2ce4366847ac
MD5 be7472ab5cc8d53fe1536fc04f84eda2
BLAKE2b-256 5437400728eaea897af968fc0c75e47d6398d5a08dce142fb4d0e5a6635caf61

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.966-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.966-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1395eb9d22cd705279016b37ac2f1881602c56dd353f9efdbe1ec9ec5181946d
MD5 7f964fff77ae8cfe5eb21e323a5d61fa
BLAKE2b-256 c7fa995359598b387467db87a74e2506c6363362a882a2c2b211381bea1ec226

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.966-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1366eba3fba29dbd801a518c0c792f63f2d051458582d9a0778999e3005e62bb
MD5 586ba2775e9748cbc843a5702bc8651f
BLAKE2b-256 be96658fcd5e6df03c54e08171ea01415aafe93fec84fc5f1e371cd9889efb75

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.966-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.966-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 481eeee47606d08cbc98fb5649820d57926fd03dee58d20e77bc768320a9b732
MD5 b03561ccc96fadfdc0af1a4e21050ab6
BLAKE2b-256 00e59767e0a012d750ac9a0dbe347d4e85977a8b44257bd3652a6696cabf9295

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.966-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.966-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 4124b9be6061a0138c42eb42b99c35a0c87c2dc723f28c5afbb334eebe3575d4
MD5 d5f29d375521298f9f2a3c5ca36f8ef9
BLAKE2b-256 bc36a39a6a585954f2a0387fbc7bc6a442b315c1a042e8f8cb3567d2ff494f37

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.966-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.966-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b5ec0bec068ab5c9a69e7b00a49cf85fef5e6c3c355fa2ef7e204dbc1cd4ef5f
MD5 9c4e4d471b55c0f513f91891a5e6f97c
BLAKE2b-256 a567305551794946d876bd3856a6c5019f817179968578562c7d911f72e1d237

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.966-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c1ba800c01333dcaf45e62f6becc9155b0b5762e0c6a20c64cfe7a04196d0dd7
MD5 82ece654e7d541f7d5594d3eb4fbfad6
BLAKE2b-256 ecfb8c74465e80d29a6d27413ba16f978c689a9a5581c6d014a8ea95f1c7e5a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.966-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.966-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 df7336211691aa39f0325cbe4ce249c01be97e7b1ecb6490c6784a2c76ec9a92
MD5 221d6c3ae8a78bc081c3efca584c977f
BLAKE2b-256 040ae04ed060c888dc3a937a49bbb3ce44254ea91740dae9b3399d16f430bac5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.966-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.966-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 38b0d85a50482218bb7bfb8dc57f9199d82de8c0ed4836bd0e66abcf61aa76bd
MD5 e117dacb39e873d3a112cde1d131b5cc
BLAKE2b-256 c63ad5a83490bfd3414b7d30a7b7c398ff082d3081f789a39fabc20b2e23f29b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.966-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.966-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f2ab0650f769b2347e3cc7b5dc68040cf9595d6e3f9f7a342e6f037acaed6238
MD5 9f7ae311c98390535ff8229897747d03
BLAKE2b-256 cf62ba4bef9bb63a5ef4631de668d1102b8ae15ceba49b38b381e24537ecc83c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.966-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2d158c6604a4c738c853b371a26c3b74b24d47be0154f3b709b67703dbfad19a
MD5 e5945583d864f7daa0b61aaa8390e53d
BLAKE2b-256 bc2d0c553ccd9e53d1498588c7e65972cafe9ca0d31fde166340428bd8170330

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